Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Weird thing about fstab
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
george_mercury
n00b
n00b


Joined: 04 Jul 2004
Posts: 31
Location: Slovenia

PostPosted: Thu Jul 15, 2004 1:42 pm    Post subject: Weird thing about fstab Reply with quote

i!
I've just bought a new harddrive, Western Digital 160GByte ATA100. I've made a single 160GByte partition on it; primary with ext3 filesystem; I've booted with gentoo LiveCD, ran fdisk /dev/hdc and made the partition. That I wrote mke2fs -j /dev/hdc1

That worked as usually. Then I modified the fstab by adding the following line:

/dev/hdc1 /mnt/hdc1 ext3 defaults,umask=000 0 0

Then I booted to gentoo and got an error at boot:

mount: wrong fs type, bad option, bad superblock on /dev/hdc1, or too many mounted filesystems.

The same error occurs if I write mount -a. However, If I write mount -t ext3 /dev/hdc1 /mnt/hdc1 it mounts without a problem. The partition is ext3, so it cannot be wrong fs type. Bad option - I don't see one. Bad superblock - I don't know what that is. And it can't be too many mounted filesystems, because I've tried removing other partitions, and I would still get the same error. So does anyone have an idea what is wrong?

George Mercury
Back to top
View user's profile Send private message
huw
Apprentice
Apprentice


Joined: 13 May 2002
Posts: 220
Location: UK

PostPosted: Thu Jul 15, 2004 2:15 pm    Post subject: Re: Weird thing about fstab Reply with quote

george_mercury wrote:

does anyone have an idea what is wrong?


EDIT: Yes:

Code:
umask=000


This is not a valid mount option for Ext2/3 file systems.

HTH


Huw


Last edited by huw on Thu Jul 15, 2004 3:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
hollywoodb
Apprentice
Apprentice


Joined: 05 Nov 2003
Posts: 259
Location: MN, U.S.A.

PostPosted: Thu Jul 15, 2004 2:47 pm    Post subject: Reply with quote

does "mount /mnt/hdc1" work?

try messing with fstab options, go slim at first (ditch the umask for now) and see if it works...
_________________
Those who would trade freedom for security deserve neither.
Back to top
View user's profile Send private message
huw
Apprentice
Apprentice


Joined: 13 May 2002
Posts: 220
Location: UK

PostPosted: Thu Jul 15, 2004 2:51 pm    Post subject: Reply with quote

hollywoodb wrote:
does "mount /mnt/hdc1" work?


It won't. This command uses the mount options in /etc/fstab. So it will try and use the umask option which IS NOT A VALID OPTION for Ext3 file systems.

hollywoodb wrote:

try messing with fstab options, go slim at first (ditch the umask for now) and see if it works...


alternatively just remove the incorrect option as I pointed out above.
Back to top
View user's profile Send private message
huw
Apprentice
Apprentice


Joined: 13 May 2002
Posts: 220
Location: UK

PostPosted: Thu Jul 15, 2004 3:00 pm    Post subject: Reply with quote

That's not supposed to be a personal attack. BTW. Just clarifying my 1st post which obviously wasn't clear enough :wink:

Huw
Back to top
View user's profile Send private message
george_mercury
n00b
n00b


Joined: 04 Jul 2004
Posts: 31
Location: Slovenia

PostPosted: Thu Jul 15, 2004 3:02 pm    Post subject: Reply with quote

I love you huw! You were right, it was the umask=000 parameter that was causing problems. I've noticed just one more thing. When I mounted ( with mount command ) annother partition, type reiserfs, it generated a couple of warnings. Now, one caught my attention:

warning: - it is in slow mode for debuging

Does reiserfs have some debuging mode that I am unaware of? ( is this causing my PC to run slower as it should? ).

Anyway, thanks for the help, as I was just about to give up ( spent the whole night trying to figure out what the matter was ).

George
Back to top
View user's profile Send private message
huw
Apprentice
Apprentice


Joined: 13 May 2002
Posts: 220
Location: UK

PostPosted: Thu Jul 15, 2004 3:07 pm    Post subject: Reply with quote

that will be due to the missing notail option.

Apparantly adding this increases the performance of reiserfs. However there's no mention of this here: http://www.namesys.com/mount-options.html

Huw
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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