[SOLVED] auto-mount permission help wanted

Archived topics about LMDE 1 and LMDE 2
Locked
mack_mcash

[SOLVED] auto-mount permission help wanted

Post 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 :)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
altair4
Level 20
Level 20
Posts: 11426
Joined: Tue Feb 03, 2009 10:27 am

Re: auto-mount permission help wanted

Post 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.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
mack_mcash

Re: auto-mount permission help wanted

Post by mack_mcash »

Thank you, very much, for your quick reply and answer, altair4.

mack
Locked

Return to “LMDE Archive”