標題: HELP automount vfat [打印本頁] 作者: 直擊報導 時間: 2008-10-10 01:45 標題: 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.
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. 作者: 得特星 時間: 2008-10-10 09:34
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
--
If you mean automount in Gnome, it should have nothing related with fstab. Try searching hal and automount in Google. 作者: 直擊報導 時間: 2008-10-10 15:33
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. 作者: 直擊報導 時間: 2008-10-10 21:52
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