15
3
I want to mount a supplementary ext4 data disk drive with specified rwx permission for a certain user. The mount point is inside the home of such a user and it's owned by the user. I added the new data disk in /etc/fstab
in the standard way:
/dev/hda /home/user/new_disk ext4 defaults,errors=remount-ro 0 1
Anyway when the new partition is mounted, the ownership of the mount point change from user.group to root.root and so the user has no write permissions there. I can change manually the ownership of the mount point so the user can write there, but the problem reappear at each rebooting.
I've even tried to add the disk in the fstab
in the following way:
/dev/hda /home/user/new_disk ext4 umask=0077,uid=1000,gid=1000,errors=remount-ro 0 1
But in this case the system gives me an error because the volume has ext4 format. I want to either:
- mount the ext4 drive already with specified user permission, or
- change the ownership of the mount point at each startup after the disk has been mounted.
1
There's a similar question on Ask Ubuntu.
– Cristian Ciupitu – 2014-08-01T12:32:16.953Who will be mounting the disk? Should the user himself be able to mount it? – holgero – 2012-12-15T21:42:45.280
I think that if I use the words "user,users" in the mounting options of fstab, the user would be able to mount the disk. – green69 – 2012-12-16T11:41:41.617