You are not logged in.

#1 2021-01-03 06:38:53

mrturcot
Member
Registered: 2014-09-03
Posts: 11

[SOLVED] HDD mounting as root

Hey this might be dumb but I'm banging my head here but my HDD only mounts as root. I've set my fstab to

/dev/sda1               /mnt/hdd1       ntfs            noatime,rw,user         0 2
/dev/sdb2               /mnt/hdd2       ntfs            noatime,rw,user         0 2

When I'm back from a reboot, drives are mounted "lsblk"

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda           8:0    0   3.7T  0 disk 
└─sda1        8:1    0   3.7T  0 part /mnt/hdd1
sdb           8:16   0   3.7T  0 disk 
├─sdb1        8:17   0    16M  0 part 
└─sdb2        8:18   0   3.7T  0 part /mnt/hdd2

cat /proc/mounts | grep /mnt/

/dev/sda1 /mnt/hdd1 ntfs rw,relatime,uid=0,gid=0,fmask=0177,dmask=077,nls=utf8,errors=continue,mft_zone_multiplier=1 0 0
/dev/sdb2 /mnt/hdd2 ntfs rw,relatime,uid=0,gid=0,fmask=0177,dmask=077,nls=utf8,errors=continue,mft_zone_multiplier=1 0 0

Directories unmounted

drwxr-xr-x  2 root root 4096 Jan  2 11:30 hdd1
drwxr-xr-x  2 root root 4096 Jan  2 11:30 hdd2

Directories mounted

drwx------  1 root root 4096 Dec 19 18:40 hdd1
drwx------  1 root root 4096 Dec 12 14:24 hdd2

From the documentation I've read seems its setup right. The "user" option in fstab should allow non-root users to mount filesystems.
I've also tried creating a mountpoint in my /home/user directory with same results as above.

Any help would be greatly appreciated.

Last edited by mrturcot (2021-01-03 06:52:58)

Offline

#2 2021-01-03 06:42:47

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] HDD mounting as root


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2021-01-03 06:51:54

mrturcot
Member
Registered: 2014-09-03
Posts: 11

Re: [SOLVED] HDD mounting as root

That did the trick, many thanks. I need to be more thorough.

Cheers

Offline

Board footer

Powered by FluxBB