發新話題
打印

HELP automount vfat

HELP automount vfat

Hi, chings,
I just installed dual boot xp+FC9:
/dev/sda1   ntfs   (xp)
/dev/sdb1  /30G  vfat  (for data & exchange, created mount point /30G when installing)

When I login as user, the xp volume sda1 automount to desktop while the vfat /30G folder has a cross on it and can't open.
What I need is sda1 NOT automount for normal user but automount for root, and sdb1 always automount.
The mod of sdb1 is drwx------  root root, can't change even login as root.

Following are the fstab and mtab, please help how to change, thanks.

fstab:
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
UUID=e7d1a1f8-239b-48d6-b7fa-6de6c2c142e8 /opt                    ext3    defaults        1 2
UUID=cfe9d8bd-400b-40f8-b0c7-92c41c25d510 /tmp                    ext3    defaults        1 2
UUID=52abe47a-bf66-4885-8adf-d7c0c6ef0273 /var                    ext3    defaults        1 2
UUID=15b8edc3-1962-4fb6-9dbf-28df656a9048 /data                   ext3    defaults        1 2
UUID=488B-2E77          /30G                    vfat    rw,umask=0077,shortname=winnt 0 0
UUID=29374a37-8239-4aed-8437-c5fb434b8838 /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0

mtab:
/dev/mapper/VolGroup00-LogVol00 / ext3 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/sdb6 /opt ext3 rw 0 0
/dev/sdb5 /tmp ext3 rw 0 0
/dev/sdb3 /var ext3 rw 0 0
/dev/sdb2 /data ext3 rw 0 0
/dev/sdb1 /30G vfat rw,umask=0077,shortname=winnt 0 0
/dev/sda2 /boot ext3 rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
fusectl /sys/fs/fuse/connections fusectl rw 0 0
gvfs-fuse-daemon /root/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev 0 0
/dev/sda1 /media/disk fuseblk rw,nosuid,nodev,allow_other,blksize=4096 0 0

Tried to edit line 9 as:
/dev/sdb1 /30G vfat rw,users,umask=0077,shortname=winnt 0 0
and mount in command line, it response that it is already mounted. But I can't access it because permission denied.

TOP

A Fedora user. Note that in Fedora 9, there is no more 'Core', and no FC anymore.

Modify the fstab:
(change the line with /30G volume)
/dev/sdb1  /30G  vfat  defaults  0 0

Have a look at http://www.tuxfiles.org/linuxhelp/fstab.html

--
If you mean automount in Gnome, it should have nothing related with fstab. Try searching hal and automount in Google.

TOP

Acutually the /dev/sdb1 was mounted on /30G but denied access from normal user.
sudo ls /30G can see the contents but permission is drwx------.

I do the following:

(1)  mkdir /media/30g

(2) Within fstab, I replace the line
UUID=488B-2E77   /30G   vfat ........
with:
/dev/sdb1   /media/30g   vfat   rw,suid,dev,exec,auto,user,sync  0  0

(3) Within mtab, I replace the line
/dev/sdb1  /30G  vfat  rw  0  0
with:
/dev/sdb1 /media/30g  vfat  rw  0  0

-----------

After the above editing, upon normal user login, the sdb1 successfully mounted on desktop,
but the permission changed to : drwxr-xr-x  root root, still can't write to it.

Using sudo and root login still can't change to 777, any suggestion?
Do I still need to go for HAL?

I think initially the problem was caused by the mount point /30G created during installation, switching to /media/30g partially solved the problem.

TOP

Problem solved after googling and trial.

* change permission problem: I'm so stupid that trying to chown without umount the volume.

The solution:
(1) login as root, umount /media/30g
(2) chown username /media/30g
(3) within fstab, edit the /dev/sdb1 line as:
      /dev/sdb1  /media/30g  vfat  defaults,rw,nosuid,nodev,uhelper=hal,uid=500 0 0

After reboot and login as username, /media/30g mounted with permission:
drwxr-xr-x   username  root

Bingo!

TOP

發新話題