I have a number of drives internal and external. Some are partitioned. Most mount automatically at boot (all did at one point).
One partition is owned by root and therefore does not mount automatically. I know how to mount it as root.
I do not know how to take ownership of that partition as user X. I have tried changing permissions using the gui in Nautilus as root. They are not accepted and immediately revert.
The partition is NTFS. The other parition on that drive is owned by me as user and mounts automatically
Best Answer
Did you try
For example
sudo chown cyrex:cyrex
(User:Group)if the partition is called party, your user is called cyrex and it is in
/media
just do for example:sudo chown cyrex:cyrex /media/cyrex/party -R
(The R is for recursive so it affects all directory/files and subdirectory.As noted, the partition is NTFS so if is automatically mounted you need to make sure that the user that has permission is you. To do this follow this steps:
gnome-terminal
)id -u
. This should give you the user id you have which you will insert into fstab.sudo /etc/fstab
and search for the line that is mounting the ntfs partition.Assuming is something like this:
Add to it the umask, uid and gid masks like this
Save the file and just reboot or remount the unit.
Here:
id -u
.id -u
but you can check it withid -g
.See How do I use 'chmod' on an NTFS (or FAT32) partition? on more about using
chmod
/chown
on NTFS filesystems.