You are not logged in.

#1 2014-05-20 18:13:13

lepubel
Member
Registered: 2014-05-20
Posts: 3

[SOLVED] Can't write to rw mounted ntfs USB drive as root.

Hi there,
I'm trying to write to a usb drive but I can't write to it even as root with the drive mounted rw.  I've tried many incantations of mount, here is one that should leave everything wide open for writing:

[root@lenovo Downloads]# mount -t ntfs -orw,fmask=0,umask=0,uid=0,gid=0 /dev/sdc1 /mnt
[root@lenovo Downloads]# ls -ld /mnt
drwxrwxrwx 1 root root 28672 May 20 03:08 /mnt
[root@lenovo Downloads]# >/mnt/x
bash: /mnt/x: Permission denied
[root@lenovo Downloads]# mount|grep sdc
/dev/sdc1 on /mnt type ntfs (rw,relatime,uid=0,gid=0,umask=00,nls=utf8,errors=continue,mft_zone_multiplier=1)
[root@lenovo Downloads]#


Here is my fstab:
LABEL=arch_root         /               ext4            rw,relatime,data=ordered        0 1
LABEL=arch_home         /home           ext4            rw,relatime,data=ordered        0 2
LABEL=dropbox_part      /home/user/Dropbox    ext2    rw,relatime,user        0 3
LABEL=shared_partition  /home/user/a          ext2    rw,relatime,user        0 4

output of uname -a:
Linux lenovo 3.14.4-1-ARCH #1 SMP PREEMPT Tue May 13 16:41:39 CEST 2014 x86_64 GNU/Linux

Thanks

Last edited by lepubel (2014-05-20 21:04:38)

Offline

#2 2014-05-20 18:33:57

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Can't write to rw mounted ntfs USB drive as root.

Do you have ntfs-3g installed?
https://wiki.archlinux.org/index.php/Ntfs

I don't think it has anything to do with your fstab.
Try creating a directory in /mnt e.g. /mnt/foo and mounting it there.

Last edited by karol (2014-05-20 18:36:22)

Offline

#3 2014-05-20 18:49:00

lepubel
Member
Registered: 2014-05-20
Posts: 3

Re: [SOLVED] Can't write to rw mounted ntfs USB drive as root.

https://wiki.archlinux.org/index.php/US … ge_Devices  suggests sd_mod and usb_storage kernel modules.

# lsmod | grep -E '(sd_mod|usb_storage)'
usb_storage            49255  1
sd_mod                 37234  7
crc_t10dif              1135  1 sd_mod
usbcore               187240  11 udl,udlfb,uvcvideo,drm_usb,usb_storage,ohci_hcd,ohci_pci,ehci_hcd,ehci_pci,usbhid,xhci_hcd
scsi_mod              137184  3 usb_storage,libata,sd_mod

But, it looks like I already have them.

(BTW there looks like there's a typo on the web page mentioned above. It mentions usb-storage (with a hyphen).  I know that the kernel module tools convert - and _ but its just a bit confusing for greping.... live and learn.)

Offline

#4 2014-05-20 18:49:43

lepubel
Member
Registered: 2014-05-20
Posts: 3

Re: [SOLVED] Can't write to rw mounted ntfs USB drive as root.

Thanks karol, that fixed it!  (didn't notice until after my kernel mod comment).

Last edited by lepubel (2014-05-20 18:50:21)

Offline

#5 2014-05-20 20:58:58

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Can't write to rw mounted ntfs USB drive as root.

Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309


BTW, welcome to the Arch Linux forum :-)

Offline

Board footer

Powered by FluxBB