WARNING: This page is archived and not updated. Please bear in mind any information may be incorrect and any code may not work. Use at your own risk.
James Gardner: Home > Blog > 2007 > Mounting a Partition

Mounting a Partition

Posted:2007-05-05 18:24

I wanted to have a partition which could be mounted, read and written to by the user james. When I've mounted other filesystems in the past I've simply been able to specify a gid in /etc/fstab but I realised today that different filesystems have different options and gid isn't supported by the ext3 filesystem. Instead I had to add this line:

/dev/hdd4   /home/james/files   ext3   defaults,users   0  0

and then as root after mounting the partition run:

chown -R james /home/james/files

This way all the files had the correct permissions and everything worked fine.

All the options for different filesystem are described towards the end of:

man mount

This fstab guide explains some of the other options available.

(view source)

James Gardner: Home > Blog > 2007 > Mounting a Partition