LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mounting fat drives in fstab.. (https://www.linuxquestions.org/questions/linux-newbie-8/mounting-fat-drives-in-fstab-101965/)

subnet 10-09-2003 02:47 AM

Mounting fat drives in fstab..
 
I have 2 fat drives (dualbooting windows) i want to mount correctly in fstab so my one user and root will have access on startup, so i dont have to mount these again....

What do i write in fstab???

daveo 10-09-2003 02:53 AM

Re: Mounting fat drives in fstab..
 
Quote:

Originally posted by subnet
I have 2 fat drives (dualbooting windows) i want to mount correctly in fstab so my one user and root will have access on startup, so i dont have to mount these again....

What do i write in fstab???

I don't know what distro you're using, but try something like:

/dev/hda1 /mnt/disk2 vfat auto,users 0 0

Means:

Mount hardisk 1 at partition 1 at mountpoint /mnt/disk2 with filesystem fvat, automatically at boot, and users are able to mount this device.

Hope this helps,

yapp 10-09-2003 03:59 AM

Here is an example for /etc/fstab:

Code:

/dev/hda6      /mnt/hd/games      vfat    auto,owner,rw,uid=0,gid=306,umask=0022,fmask=0133,dmask=0022,noexec  0  0
the 'uid' and 'gid' are the user-id, and group-id numbers. Use "id <username>" to get the value of a certain user, or inspect /etc/passwd and /etc/group yourself.

The umask the inverse of a file mask. (it's a mask :p)
0 = all allowed
1 = no execute (file) or browse (directories)
2 = no write
4 = no read
2 + 4 = 6 = no read+write ;)

the fmask and dmask doesn't seam to work though :( for some reason, the files at the vfat drive are always marked as executable. (that's why I have the 'noexec' flag enabled too)

"man fstab" (console), or "man:fstab" (konqueror) could be a great help too :)

subnet 10-10-2003 03:02 AM

Well i think ill try both of the solutions on 2 differents fat drives...

thx for the help guys..


All times are GMT -5. The time now is 03:41 PM.