Packages need for ntfs external drives

What packages are needed for ntfs? I have the following installed and I'm not sure why I can't get my ntfs drives to mount

kmod-fs-ntfs
kmod-scsi-core
kmod-usb-core
kmod-usb-storage
ntfs-3g
ntfsprogs_ntfs-3g

These wikis are OpenWrt and a good starting point.
https://wiki.openwrt.org/doc/howto/usb.essentials
https://wiki.openwrt.org/doc/howto/usb.storage

Depending on your device you may fins that NTFS is slow compared to EXT and other FS and does not compare performance wise to a real NAS.

I understand that, the problem I'm having is if I format the drive with ext4 I can mount it. If I format it with ntfs, I can't mount it/see it at all.

[71221.088579] usb 1-1: new high-speed USB device number 6 using orion-ehci
[71226.208688] usb 1-1: device descriptor read/64, error -110
[71240.843539] usb-storage 1-1:1.0: USB Mass Storage device detected
[71240.850385] scsi host4: usb-storage 1-1:1.0
[71241.850823] scsi 4:0:0:0: Direct-Access     FLASH    Drive SM_USB20   1100 PQ: 0 ANSI: 0 CCS
[71241.863140] sd 4:0:0:0: [sda] 32497664 512-byte logical blocks: (16.6 GB/15.5 GiB)
[71241.872005] sd 4:0:0:0: [sda] Write Protect is off
[71241.876834] sd 4:0:0:0: [sda] Mode Sense: 43 00 00 00
[71241.877877] sd 4:0:0:0: [sda] No Caching mode page found
[71241.883254] sd 4:0:0:0: [sda] Assuming drive cache: write through
[71241.895912]  sda: sda1
[71241.903040] sd 4:0:0:0: [sda] Attached SCSI removable disk
[72593.100069] usb 1-1: USB disconnect, device number 6
[72661.930068] usb 1-1: new high-speed USB device number 7 using orion-ehci
[72667.050176] usb 1-1: device descriptor read/64, error -110
root@LEDE:~# block mount
block: /dev/ubiblock0_0 is already mounted on /rom
block: /dev/ubi0_1 is already mounted on /overlay

I've tried with another drive and with dmesg I get this but it also doesn't show up in block mount

[72681.964654] sd 5:0:0:0: [sda] Attached SCSI removable disk
[72820.166441] usb 1-1: USB disconnect, device number 7
[72835.853832] usb 1-1: new high-speed USB device number 8 using orion-ehci
[72836.006537] usb-storage 1-1:1.0: USB Mass Storage device detected
[72836.013354] scsi host6: usb-storage 1-1:1.0
[72837.014821] scsi 6:0:0:0: Direct-Access     Seagate  Desktop          0130 PQ: 0 ANSI: 4
[72837.025661] sd 6:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[72837.034136] sd 6:0:0:0: [sda] Write Protect is off
[72837.038965] sd 6:0:0:0: [sda] Mode Sense: 2f 08 00 00
[72837.039500] sd 6:0:0:0: [sda] No Caching mode page found
[72837.044885] sd 6:0:0:0: [sda] Assuming drive cache: write through
[72837.070169]  sda: sda1
[72837.077076] sd 6:0:0:0: [sda] Attached SCSI disk
root@LEDE:~# block mount
block: /dev/ubiblock0_0 is already mounted on /rom
block: /dev/ubi0_1 is already mounted on /overlay
root@LEDE:~# lsusb
Bus 001 Device 008: ID 0bc2:3300 Seagate RSS LLC
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I actually never got it to work either. I use FAT32 when I need windows compatibility and as I have a real NAS can avoid the 2GB file sige issue.

You may also wish to search the OpenWRT forum where you may find more answers.

I've never seen ntfs show up until it's mounted, I don't know why that is, but it will mount manually, kmod-fs-ntfs is read only, so if you want to read/write you'll need to mount it with ntfs-3g similar to the instructions here.

@RangerZ @mike

I've searched every guide both from my previous topic on here and the various guides I've been able to find regarding the packages for ntfs. At this point I don't think the router I'm using with lede likes ntfs for some reason. It works in stock firmware but since I don't want the stock firmware and instead am going with lede, I'll be using ext4 instead. I'll be using the device for something else instead since it doesn't like ntfs.

Well, as long as you have the correct packages it will work on any router provided it has the space, and you have the correct packages for ntfs, here's the packages related to usb that I use fwiw, maybe you'll see something you haven't installed yet -

kmod-usb-core
kmod-usb2
usbutils
kmod-usb-storage
block-mount
kmod-fs-ntfs
ntfs-3g
kmod-fs-vfat
kmod-fs-ext4
kmod-fs-hfsplus
e2fsprogs
fdisk

kmod-usb3 is already in the kernel for my wrt1200 (mvebu), so no need for me to install, I don't know if that's true across all devices though.

block mount doesn't seem to recognize the file system, but it probably works if you mount it specifically:
mkdir /mnt/sda1
mount -t ntfs /dev/sda1 /mnt/sda1

The main partition may be called sda2 or something else, though. You can find out if you install fdisk and do
fdisk -l /dev/sda

For better performance you should try mounting with
mount -t ntfs -o noatime,big_write /dev/sda1 /mnt/sda1

Hi,

This is kinda frustrating for me.
I've tried to get all above mentioned packages installed as well has the mounting hit suggested by @Per to no luck. The block-mount does not detect my ntfs HDD on the WRT1200AC router.
How far should I keep digging?

Thanks in advance.

Don't install kmod-fs-ntfs, it's redundant if you have ntfs-3g. Other than that, I have these packages:

block-mount
kmod-usb-core
kmod-usb-ohci
kmod-usb-storage
kmod-usb2
libusb-1.0
usbutils
ntfs-3g
ntfs-3g-low

That's from my .config for the image builder, so they may not all be standalone packages.

Also, check if the device has been recognized at all. cat /sys/kernel/debug/usb/devices should contain something like this:

T:  Bus=02 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  3 Spd=12   MxCh= 0
D:  Ver= 2.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0bc2 ProdID=ab38 Rev= 1.00
S:  Manufacturer=Seagate
S:  Product=Backup+ Hub BK
S:  SerialNumber=NA8TFC9C
C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms

You need to find out where it stops:

  1. Is the disk recognized by the USB driver? (cat /sys/kernel/debug/usb/devices)
  2. Is it recognized as a disk (available under /dev as /dev/sda, /dev/sdb or similar)
  3. Are the partitions recognized? (fdisk -l /dev/sda)

Thanks @Per for your insight. I did manage to mount the drive.

ive gotten this to work but the filesystem is very slow. i have a decent cpu on the r6220 and its still pretty slow. just updated to 18.06.4 (i think?) and now i have to set it up again and i can get sda to show up but not sda1 and sda2 etc. it used to show up on its own. i could get it to work im sure but if the native files system is faster i would rather just format and copy the stuff back over. just wondering if you can format a disk on the router itself. ill look into. seems like, at the point im at, the thing i need to do is the fstab part. sorry i dont much about linux but i can follow a guide, but seems like last time thats what got it to show up the sd1,sd2, partitions

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