Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Switch from XFS to ext3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Lasitus
Apprentice
Apprentice


Joined: 05 Oct 2002
Posts: 188
Location: Orlando, FL

PostPosted: Sat Oct 12, 2002 10:16 pm    Post subject: Switch from XFS to ext3 Reply with quote

Hello,

I did a test install of Gentoo to get a feel for it and see if I like it. I have now decided to replace my server with it. I started the bootstrap process with an XFS partition. I later read that it no longer is supported by the later kernels. I then stopped the process and restarted from the beginning, formatting it as ext3. It now says:

mount: wrong fs type, bad option, bad superblock on /dev/hda3, or too many mounted file systems

Is there anything special I need to do to get rid of the XFS format? I tried re-partitioning it and starting completely from scratch and still get this error.

Thanks in advance,

Lasitus
Back to top
View user's profile Send private message
medic
n00b
n00b


Joined: 08 Oct 2002
Posts: 7
Location: Johnstown, PA

PostPosted: Sun Oct 13, 2002 3:23 am    Post subject: Lasitus Reply with quote

I go the same error when mounting hda1 to /boot

to get around this, I used mount/dev/hda1 /mnt/gentoo/boot -t ext3

it worked for me
good luck
Back to top
View user's profile Send private message
Lasitus
Apprentice
Apprentice


Joined: 05 Oct 2002
Posts: 188
Location: Orlando, FL

PostPosted: Sun Oct 13, 2002 6:01 am    Post subject: Reply with quote

hmm, but does this mean there is a straggling XFS partition somewhere that should be taken care of?
Back to top
View user's profile Send private message
elzbal
Guru
Guru


Joined: 31 Aug 2002
Posts: 364
Location: Seattle, WA, USA

PostPosted: Sun Oct 13, 2002 6:16 am    Post subject: Reply with quote

Did you check the /etc/fstab file to verify the partition was being loaded as 'ext3' as opposed to 'xfs'?
Back to top
View user's profile Send private message
craftyc
Guru
Guru


Joined: 23 May 2002
Posts: 443
Location: Behind You.

PostPosted: Sun Oct 13, 2002 12:31 pm    Post subject: Reply with quote

If you still get problems you can zero out the partition by doing a "dd if=/dev/zero of=/dev/hdaX bs=512" Where X is the partition number.
_________________
Postcount ++
Back to top
View user's profile Send private message
Lasitus
Apprentice
Apprentice


Joined: 05 Oct 2002
Posts: 188
Location: Orlando, FL

PostPosted: Sun Oct 13, 2002 7:22 pm    Post subject: Reply with quote

The fstab file has only the temp mounts made by the live CD. I am starting from scratch. I tried deleting all the partitions and rebooting and remaking the partition, but XFS is still there somehow.

I havn't tried zeroing out the drive just yet.
Back to top
View user's profile Send private message
Lasitus
Apprentice
Apprentice


Joined: 05 Oct 2002
Posts: 188
Location: Orlando, FL

PostPosted: Sun Oct 13, 2002 9:31 pm    Post subject: Reply with quote

I now zeroed out the drive and it works.

Thanks for the help,

Lasitus
Back to top
View user's profile Send private message
alexmaz
n00b
n00b


Joined: 07 Jul 2002
Posts: 35
Location: Milano - Italia

PostPosted: Mon Oct 14, 2002 12:19 am    Post subject: Re: Switch from XFS to ext3 Reply with quote

Lasitus wrote:
I later read that it no longer is supported by the later kernels.


A little OT: XFS was merged with the main development kernel tree starting from 2.5.36, so it will surely supported in future kernels... :)

bye
_________________
Italy rejects war as an instrument of aggression against the freedoms of others peoples and as a means for settling international controversies
Back to top
View user's profile Send private message
elzbal
Guru
Guru


Joined: 31 Aug 2002
Posts: 364
Location: Seattle, WA, USA

PostPosted: Mon Oct 14, 2002 4:43 am    Post subject: Reply with quote

Quote:
A little OT: XFS was merged with the main development kernel tree starting from 2.5.36, so it will surely supported in future kernels...


Yeah. Much, much later kernels. :)

This is good news, though. I too started with a XFS partition that I had to roll back to ext3.
Back to top
View user's profile Send private message
chavez
n00b
n00b


Joined: 29 May 2002
Posts: 35
Location: Austin, Texas

PostPosted: Mon Oct 14, 2002 11:03 pm    Post subject: Re: Lasitus Reply with quote

medic wrote:
I go the same error when mounting hda1 to /boot

to get around this, I used mount/dev/hda1 /mnt/gentoo/boot -t ext3

it worked for me
good luck


The reason that you got this problem was because XFS places its superblock starting on the first logical sector of the partition. When you reformatted it with ext3, the mke2fs skips the first few sectors (presumably to leave space for lilo if it is applied to this partition).

Now if you did not specify the -t ext3 option of the mount, then the mount command probes the partition for known filesystem signatures.Since it starts at the first sector, it find the XFS signature and tries to mount it using XFS. XFS recognizes that other meta-data is incorrect or missing and fails the mount.

When you zeroed out the first sector, you essentially blew away the XFS signature and allowed the ext3 signatures to be recognized during the filesytem probe and thus your mount succeeds without having to explicitly use the -t ext3 option.
_________________
regards,

Luciano Chavez
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum