Re: [Hampshire] External Drive Permissions.

Top Page

Reply to this message
Author: Bob Dunlop
Date:  
To: hampshire
Subject: Re: [Hampshire] External Drive Permissions.
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