Archive

NTFS Volume on Ubuntu 11.10…make it visible to all user

No Comments

Hello, first of all I’m not a Linux User, meaning I’m not an expert and maybe my post may sound to the “experts” very stupid or obvious.
However, I’ve installed Ubuntu 11.10 on my home laptop and  started to play with it.
In my machine I had a partition (created previously in win7) that I would had liked to use as “data repository”.

If I was the Administrator I could see the disc and all the files inside, but when I logged as a “standard” user the volume was not visible and  I couldn’t open  from media folder, even if I gave to the user the right permission on the folders with chmod

I was really surprised and I felt very stupid…but finally i found the problem.
The disc wasnt’ following the “normal” permission on Linux, because  it was formatted as NTFS. I had to adjust the permissions from the mount options (in fstab if you configured it to mount it automatically).

Below the steps I had followed:

sudo blkid -c /dev/null

and I got this

/dev/sda1: UUID="94C8D394C8D3734A" TYPE="ntfs"
/dev/sda2: UUID="8f5dcee3-7f6d-4f70-975c-10ee27f0df87" TYPE="ext4"
/dev/sda3: LABEL="Data" UUID="8A9E788D9E787393" TYPE="ntfs"
/dev/sda5: UUID="edeb8f21-ac3c-4044-a066-64e160196884" TYPE="swap"

 

My driver was /dev/sda3. I had so to create in MEDIA folder the new reference and then assign in the fstab

 

sudo umount /dev/sda3

After unmounted the driver, I created the folder in the right place:

sudo mkdir /media/Data2

Once opened the Fstab file with the command:

gksu gedit /etc/fstab

I added the following line to the file and saved:

UID=8A9E788D9E787393   /media/Data2  ntfs defaults,gid=46,umask=0000  0  0

The umask=0000 would allow anyone to read/write/execute files on that partition (I could use 2 to turn off write permissions for ‘others’. eg; umask=0002)

Once finished with the file I mounted back the volume and everything was fine…

sudo mount -a

Once again, I’m not a linux “expert”…I just hope that this post can hep someone…

Blue Taste Theme created by Jabox