Second NTFS drive keeps mounting as root if i mount it to /mnt/

System:
  Kernel: 5.16.2-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=3bf66fc0-89ba-4f98-b6f6-81b2ff1ff168 rw rootflags=subvol=@
    quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
    systemd.unified_cgroup_hierarchy=1
    resume=UUID=fd7e8027-710d-411d-82b6-505a4c2b5304 loglevel=3
    nvidia-drm.modeset=1
  Desktop: KDE Plasma 5.23.5 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11
    vt: 1 dm: SDDM Distro: Garuda Linux base: Arch Linux
Machine:
  Type: Laptop System: Micro-Star product: GL62M 7REX v: REV:1.0
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Micro-Star model: MS-16J9 v: REV:1.0 serial: <superuser required>
    UEFI: American Megatrends v: E16J9IMS.31A date: 07/11/2017
Battery:
  ID-1: BAT1 charge: 36.0 Wh (94.5%) condition: 38.1/42.4 Wh (89.9%)
    volts: 12.1 min: 10.8 model: MSI BIF0_9 type: Li-ion serial: N/A
    status: N/A
  Device-1: apple_mfi_fastcharge model: N/A serial: N/A charge: N/A
    status: N/A
CPU:
  Info: model: Intel Core i5-7300HQ bits: 64 type: MCP arch: Kaby Lake
    family: 6 model-id: 0x9E (158) stepping: 9 microcode: 0xEA
  Topology: cpus: 1x cores: 4 smt: <unsupported> cache: L1: 256 KiB
    desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB L3: 6 MiB
    desc: 1x6 MiB
  Speed (MHz): avg: 3188 high: 3214 min/max: 800/3500 scaling:
    driver: intel_pstate governor: performance cores: 1: 3170 2: 3214 3: 3162
    4: 3206 bogomips: 19999
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf
    mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled
  Type: mds mitigation: Clear CPU buffers; SMT disabled
  Type: meltdown mitigation: PTI
  Type: spec_store_bypass
    mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1
    mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional,
    IBRS_FW, STIBP: disabled, RSB filling
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: Intel HD Graphics 630 vendor: Micro-Star MSI driver: i915
    v: kernel bus-ID: 00:02.0 chip-ID: 8086:591b class-ID: 0300
  Device-2: NVIDIA GP107M [GeForce GTX 1050 Ti Mobile]
    vendor: Micro-Star MSI driver: nvidia v: 495.46
    alternate: nouveau,nvidia_drm bus-ID: 01:00.0 chip-ID: 10de:1c8c
    class-ID: 0302
  Display: x11 server: X.Org 1.21.1.3 compositor: kwin_x11 driver:
    loaded: modesetting,nvidia display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1013x285mm (39.9x11.2")
    s-diag: 1052mm (41.4")
  Monitor-1: eDP-1-1 res: 1920x1080 dpi: 142 size: 344x194mm (13.5x7.6")
    diag: 395mm (15.5")
  Monitor-2: HDMI-1-2 res: 1920x1080 hz: 60 dpi: 92
    size: 528x297mm (20.8x11.7") diag: 606mm (23.9")
  OpenGL: renderer: NVIDIA GeForce GTX 1050 Ti/PCIe/SSE2
    v: 4.6.0 NVIDIA 495.46 direct render: Yes
Audio:
  Device-1: Intel CM238 HD Audio vendor: Micro-Star MSI driver: snd_hda_intel
    v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a171 class-ID: 0403
  Sound Server-1: ALSA v: k5.16.2-zen1-1-zen running: yes
  Sound Server-2: PulseAudio v: 15.0 running: no
  Sound Server-3: PipeWire v: 0.3.43 running: yes
Network:
  Device-1: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi
    v: kernel bus-ID: 02:00.0 chip-ID: 8086:24fb class-ID: 0280
  IF: wlp2s0 state: down mac: <filter>
  Device-2: Qualcomm Atheros QCA8171 Gigabit Ethernet
    vendor: Micro-Star MSI driver: alx v: kernel port: d000 bus-ID: 03:00.0
    chip-ID: 1969:10a1 class-ID: 0200
  IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: enp0s20f0u6c4i2 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Wireless-AC 3168 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 1-10:7 chip-ID: 8087:0aa7 class-ID: e001
  Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter>
Drives:
  Local Storage: total: 685.61 GiB used: 320.96 GiB (46.8%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: RBU-SNS8152S3256GG5
    size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 01.R scheme: GPT
  ID-2: /dev/sdb maj-min: 8:16 vendor: Crucial model: CT480M500SSD1
    size: 447.13 GiB block-size: physical: 4096 B logical: 512 B
    speed: 6.0 Gb/s type: SSD serial: <filter> rev: MU03 scheme: MBR
Partition:
  ID-1: / raw-size: 229.37 GiB size: 229.37 GiB (100.00%)
    used: 181.29 GiB (79.0%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 576 KiB (0.2%) fs: vfat dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 229.37 GiB size: 229.37 GiB (100.00%)
    used: 181.29 GiB (79.0%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-4: /var/log raw-size: 229.37 GiB size: 229.37 GiB (100.00%)
    used: 181.29 GiB (79.0%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
  ID-5: /var/tmp raw-size: 229.37 GiB size: 229.37 GiB (100.00%)
    used: 181.29 GiB (79.0%) fs: btrfs dev: /dev/sda2 maj-min: 8:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/sda3 maj-min: 8:3
  ID-2: swap-2 type: zram size: 7.68 GiB used: 2.8 MiB (0.0%) priority: 100
    dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 59.0 C pch: 55.0 C mobo: 27.8 C gpu: nvidia
    temp: 52 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 261 Uptime: 2m wakeups: 2 Memory: 7.68 GiB
  used: 3.66 GiB (47.6%) Init: systemd v: 250 tool: systemctl Compilers:
  gcc: 11.1.0 clang: 13.0.0 Packages: 1921 note: see --pkg apt: 0
  pacman: 1913 lib: 503 flatpak: 8 Shell: fish v: 3.3.1 running-in: konsole
  inxi: 3.3.12
Garuda:
  System install date:     2021-11-26
  Last full system update: 2022-01-25
  Is partially upgraded:   No
  Using TLP:               No
  Windows dual boot:       No/Undetected

The automount mounts my drive to:
/run/media/[username]/[drive]
but several programs like wine have a problem with this, for example if i wanted to make a wineprefix it would throw a million errors, not related to it being on an on a separate drive but because its mounted in the weird path. Im trying to mounft in to:
/mnt/[drive]
automatically with fstab or manually but i cannot change the ownership to my user from root..
I know that NTFS does not have permission management and thats why its getting mounted as root, and cannot be changed to my user with chmod.

I need help with this, its tiring, thank you.

The options on how an NTFS drive is mounted with user permissions must be specified in the options you add to /etc/fstab.

Read the Arch wiki's entries that pertain to fstab.

1 Like

Yes, ive done that, this is what my fstab line looks for the drive im trying to mount, the drive is not external:
UUID=1C6E65DE6E65B0E6 /mnt/2SSD ntfs rw,nosuid,nodev,user_id=1000,group_id=1000,allow_other,user,blksize=4096 0 0

i cant see what im doing wrong..

Your formatting is incorrect, see my example below:

UUID=7C1A71921A714A62 /mnt/7C1A71921A714A62 ntfs-3g nofail,noatime,rw,user,uid=1000,gid=1000,dmask=022,fmask=133,windows_names,auto 0 0

Obviously, you need to substitute your drives UUID in my example.

4 Likes

Oh boy your right, it works now, thanks a lot, im gonna need to go over fstab one more time haha

2 Likes

Also, if you're running a linux kernel v5.15+ then 'native' ntfs support is built-in to the kernel. I switched my mount from ntfs-3g in /etc/fstab to ntfs3. So, now, this is what my entry looks like:

UUID=[UUID OF HD]          /mnt/ntfs          ntfs3          rw,nosuid,nodev,relatime,nohidden,sys_immutable,acl,uhelper=udisks2,umask=0022,uid=1000,gid=1000,iocharset=utf8,user 0 0

ymmv

1 Like

Good point, that was from an old NTFS load line of mine. I haven't used an NTFS drive in ages so things change.

Thanks.

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.