Page 1 of 1

[SOLVED] auto-mount permission help wanted

Posted: Mon Jul 23, 2012 7:52 am
by mack_mcash
Hi, all.

I used this method to auto-mount, from this thread:

Code: Select all

http://forums.linuxmint.com/viewtopic.php?f=50&t=106864

Code: Select all

[1] Find the correct UUID number for your windows partitions:

Code: Select all
    sudo blkid -c /dev/null

[2] Create permanent mountpoints for your partitions to live in, for example:

Code: Select all
    sudo mkdir /media/Data

[3] Edit fstab as root:

Code: Select all
    gksudo gedit /etc/fstab

[4] Add the following lines to the end of fstab, examples:

Code: Select all
    UUID=8C169E22169E0CF8 /media/Data ntfs defaults,umask=000,nls=utf8,windows_names 0 0

Substitute the correct UUID numbers from step [1] and the correct mountpoints from step [2].

[5] If you have already mounted these partitions manually through computer(icon) - unmount them.

[6] Run the following command that will test for errors and if there are none mount the partitions to their new home without requiring a reboot:

Code: Select all
    sudo mount -a
to auto-mount an NTFS-Data partition at boot time and this partition did indeed get mounted properly at boot; however, when I attempted to open any file, for example, a text file, it would not let me open it up because the file belongs to 'root'.

How, please, would I go about fixing this permission issue in order to use this data-partition, that is now mounted, as my own home with my files in it?

Thanks for any help with this,
mack :)

Re: auto-mount permission help wanted

Posted: Mon Jul 23, 2012 8:01 am
by altair4
That line in fstab will mount with owner = root but with read / write permissions to everyone ( umask=000 ).

If you run the following command:

Code: Select all

ls -dl /media/Data
It should come back with something like this:
drwxrwxrwx 1 root root 4096 Jul 22 17:55 /media/Data
If you want to replace root with you add a "uid=1000" to the list of options:

Code: Select all

UUID=8C169E22169E0CF8 /media/Data ntfs defaults,umask=000,uid=1000,nls=utf8,windows_names 0 0
But that shouldn't be necessary.

Re: auto-mount permission help wanted

Posted: Mon Jul 23, 2012 3:09 pm
by mack_mcash
Thank you, very much, for your quick reply and answer, altair4.

mack