Thursday, September 4, 2014

Mount ntfs formatted external harddisk on buffalo linkstation ls vl to read and write

When an external harddisk is connected to the usb port, the hard disk gets automatically mounted in read only mode.
When it is manually mounted, the mount options show it is mounted with rw option but actually it has no write permissions.

Solution: Install ntfs-3g.

1. Install the required package via ipkg,

root@LS-VL406:~# ipkg install ntfs-3g

Installing ntfs-3g (2009.4.4-1) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/stable/ntfs-3g_2009.4.4-1_arm.ipk
ntfs-3g: unsatisfied recommendation for kernel-module-fuse
Configuring ntfs-3g
Successfully terminated.


2. Tried to mount the disk using -t option. But it didn't work. Calling ntfs-3g directly worked.

root@LS-VL406:~# mount -t ntfs-3g /dev/sdb1 /mnt/usbdisk1/
mount: mounting /dev/sdb1 on /mnt/usbdisk1/ failed: No such device

root@LS-VL406:~# ntfs-3g /dev/sdb1 /mnt/usbdisk1/

However it was observed that the above command was taking over 80% CPU when I copied files from a local disk to the usb disk.
output of the top command while copying files,

Mem: 235884K used, 12648K free, 0K shrd, 54588K buff, 143488K cached
CPU:  43% usr  53% sys   0% nice   0% idle   0% io   0% irq   3% softirq
Load average: 1.11 0.51 0.24
  PID  PPID USER     STAT   VSZ %MEM %CPU COMMAND
 3200     1 root     R     2484   1%  84% ntfs-3g /dev/sdb1 /mnt/usbdisk1/