NTFS partitions mount as root instead of user as set in /etc/fstab

Posted by G1bs0n on Ask Ubuntu See other posts from Ask Ubuntu or by G1bs0n
Published on 2012-11-03T06:44:58Z Indexed on 2012/11/03 23:18 UTC
Read the original article Hit count: 352

Filed under:
|
|
|

I recently upgraded a server to Ubuntu 12.04 with a fresh install and my NTFS partitions won't mount as user at boot but I can mount them as user manually from the console with $ sudo mount -a. Using ntfsfix reports no problems and chkdisk sees nothing wrong under Windows 7. Are the drives not ready to be mounted at boot and default to root instead of user for some reason?

Here is my /etc/fstab:

UUID=E4E6B30CE6B2DDCC  /media/Bowles        ntfs-3g defaults,uid=1000,gid=1000,umask=022  0  0
UUID=A040C42340C3FDD2  /media/Burroughs     ntfs-3g defaults,uid=1000,gid=1000,umask=022  0  0
UUID=EA022C73022C46C3  /media/DoctorGonzo   ntfs-3g defaults,uid=1000,gid=1000,umask=022  0  0
UUID=BA425A384259FA19  /media/Geist         ntfs-3g defaults,uid=1000,gid=1000,umask=022  0  0
UUID=E87CFAE57CFAAE06  /media/DouglasAdams  ntfs-3g defaults,uid=1000,gid=1000,umask=022  0  0

Here is the output of ls -l after boot:

drwxr-xr-x 1 xbmc xbmc   4096 Oct 31 21:46 Bowles
drwxrwxr-x 1 root users  8192 Oct 31 21:46 Burroughs
drwxrwxr-x 1 root users  4096 Oct 28 21:45 DoctorGonzo
drwxrwxr-x 1 root users 12288 Oct 31 19:56 DouglasAdams
drwxrwxr-x 1 root users  4096 Nov  3 01:03 Geist

If I unmount and mount again with $ sudo mount -a from console, the output of ls -l:

drwxr-xr-x 1 xbmc xbmc  4096 Oct 31 21:46 Bowles
drwxr-xr-x 1 xbmc xbmc  8192 Oct 31 21:46 Burroughs
drwxr-xr-x 1 xbmc xbmc  4096 Oct 28 21:45 DoctorGonzo
drwxr-xr-x 1 xbmc xbmc 12288 Oct 31 19:56 DouglasAdams
drwxr-xr-x 1 xbmc xbmc  4096 Nov  3 01:03 Geist

Update

I was fooling myself, I had a custom udev rule set up to auto-mount file systems by label for USB drives, borrowed from here, but didn't update the rule to accommodate for my additional hard drives. Updating the rule to auto-mount only drives after /dev/sde solved my problem. Thank you again for your reply cartoonist.

© Ask Ubuntu or respective owner

Related posts about 12.04

Related posts about ntfs