Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Autofs can't see ext3 partition on external hard drive
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
swingarm
l33t
l33t


Joined: 08 Jun 2002
Posts: 627
Location: Northern Colorado

PostPosted: Thu May 27, 2004 7:57 am    Post subject: Autofs can't see ext3 partition on external hard drive Reply with quote

For some reason I can't get autofs to see my ext3 partition on my external firewire harddrive. I also have a fat32 partition on the drive which autofs sees just fine. If I manually mount the ext3 partition it's ok. Here is my auto.master file:
Code:

# $Id: auto.master,v 1.1 2000/08/08 17:53:33 achim Exp $
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
#/misc  /etc/autofs/auto.misc
#/home  /etc/autofs/auto.home
/external       /etc/autofs/auto.external --timeout 30
/cd             /etc/autofs/auto.cd

Here is my auto.external file(which the firewire drive works thru):
Code:

firewire1       -fstype=vfat,user,umask=007     :/dev/fwhd1
firewire2       -fstype=auto,user,umask=007     :/dev/fwhd2
usb     -fstype=auto,user,umask=007     :/dev/usbhd1

I keep getting this:
Code:

bash-2.05b# ls /external/firewire2
ls: /external/firewire2: No such file or directory

I 've tried using "auto" in place of "ext3" in my auto.external file with no luck. If it matters I'm using udev but I don't think it has anything to do with this problem.
Back to top
View user's profile Send private message
swingarm
l33t
l33t


Joined: 08 Jun 2002
Posts: 627
Location: Northern Colorado

PostPosted: Thu May 27, 2004 9:36 pm    Post subject: Reply with quote

Ok, I found the problem but fixing it is another thing:
Code:

May 27 15:30:24 Fred automount[2098]: attempting to mount entry /external/firewire2
May 27 15:30:24 Fred automount[2203]: lookup(file): looking up firewire2
May 27 15:30:24 Fred automount[2203]: lookup(file): firewire2 -> -fstype=auto,user,uid=0,gid=100 ^I:/dev/fwhd2
May 27 15:30:24 Fred automount[2203]: expanded entry: -fstype=auto,user,uid=0,gid=100 ^I:/dev/fwhd2
May 27 15:30:24 Fred automount[2203]: parse(sun): gathered options: fstype=auto,user,uid=0,gid=100
May 27 15:30:24 Fred automount[2203]: parse(sun): core of entry: /dev/fwhd2
May 27 15:30:24 Fred automount[2203]: do_mount /dev/fwhd2 /external/firewire2 type auto options user,uid=0,gid=100 using module generic
May 27 15:30:24 Fred automount[2203]: mount(generic): calling mkdir /external/firewire2
May 27 15:30:24 Fred automount[2203]: mount(generic): calling mount -t auto -s -o user,uid=0,gid=100 /dev/fwhd2 /external/firewire2

May 27 15:30:24 Fred kernel: EXT3-fs: Unrecognized mount option "uid=0" or missing value
May 27 15:30:24 Fred automount[2203]: >> mount: wrong fs type, bad option, bad superblock on /dev/fwhd2,
May 27 15:30:24 Fred automount[2203]: >>        or too many mounted file systems
May 27 15:30:24 Fred automount[2203]: mount(generic): failed to mount /dev/fwhd2 (type auto) on /external/firewire2
May 27 15:30:24 Fred automount[2098]: attempting to mount entry /external/firewire2
May 27 15:30:24 Fred automount[2205]: lookup(file): looking up firewire2
May 27 15:30:24 Fred automount[2205]: lookup(file): firewire2 -> -fstype=auto,user,uid=0,gid=100 ^I:/dev/fwhd2
May 27 15:30:24 Fred automount[2205]: expanded entry: -fstype=auto,user,uid=0,gid=100 ^I:/dev/fwhd2
May 27 15:30:24 Fred automount[2205]: parse(sun): gathered options: fstype=auto,user,uid=0,gid=100
May 27 15:30:24 Fred automount[2205]: parse(sun): core of entry: /dev/fwhd2
May 27 15:30:24 Fred automount[2205]: do_mount /dev/fwhd2 /external/firewire2 type auto options user,uid=0,gid=100 using module generic
May 27 15:30:24 Fred automount[2205]: mount(generic): calling mkdir /external/firewire2
May 27 15:30:24 Fred automount[2205]: mount(generic): calling mount -t auto -s -o user,uid=0,gid=100 /dev/fwhd2 /external/firewire2
May 27 15:30:24 Fred kernel: EXT3-fs: Unrecognized mount option "uid=0" or missing value
May 27 15:30:24 Fred automount[2205]: >> mount: wrong fs type, bad option, bad superblock on /dev/fwhd2,
May 27 15:30:24 Fred automount[2205]: >>        or too many mounted file systems
May 27 15:30:24 Fred automount[2205]: mount(generic): failed to mount /dev/fwhd2 (type auto) on /external/firewire2

Basically it doesn't like the 'umask=007' line so I changed it to 'uid=0,gid=100' and I get the same error. All I want is to be able to let me as a regular user read and write to the drive. Do I need to make an fstab entry for it even though I'm using autofs?
Back to top
View user's profile Send private message
swingarm
l33t
l33t


Joined: 08 Jun 2002
Posts: 627
Location: Northern Colorado

PostPosted: Fri May 28, 2004 3:26 am    Post subject: Reply with quote

Well I think I found out a couple of things(please correct me if I'm wrong):

1. You can't pass umask, uid, and gid to ext3 or reiserfs partitions

2. Autofs mounts linux partitions as owner root/group root and rwxr--r--(I think that's right)


So I went ahead and chmod my firewire2 directory to rwxrwxr--(My user is a member of the root group, I may change that) and it seems to stick even when I unplug my firewire drive and reboot my computer.
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