On Thu, Mar 24 at 05:42, Mike Burrows wrote:
...
> sudo mount -t vfat /dev/sda1 /media/mybook -o rw,uid=1000,gid=1000
...
> can't help thinking there is a better way of doing this in fstab...

Well on a Gentoo box I'd put the following in /etc/fstab

/dev/sda1  /mnt/myboot  vfat  noauto,user  0 0


The "user" option allows any user to mount the device and ownership of vfat
files will be mapped to that user.  Note the mapping only happens with vfat
and similar file systems, ext[234] file systems retain the ownerships
recorded on the file system.

Replace "vfat" with "auto" to mount most file system types automatically.

-- 
        Bob Dunlop

--
Please post to: Hampshire@mailman.lug.org.uk
Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
LUG URL: http://www.hantslug.org.uk
--------------------------------------------------------------

Reply via email to