Sunday, November 10, 2013

Automount NTFS Filesystem with usbmount on plug-in USB Storage Devices

First step. Install usbmount package on Raspbian with below command
sudo apt-get -y install usbmount fuse ntfs-3g
After install usbmount package.
Problem about default configure of usbmount.
It cannot automount NTFS Filesystem.
Modify configure of usbmount for mount NTFS Filesystem on /etc/usbmount/usbmount.conf with Editor. 

Find this line
FILESYSTEMS="vfat ext2 ext3 ext4 hfsplus"
Change to
FILESYSTEMS="vfat ext2 ext3 ext4 hfsplus ntfs fuseblk"
And Restart OS for force take effect.
sudo shutdown -r now
Finish Step.
Test plug-in USB Storage Devices with NTFS Filesystem.
It can automount on /media/usb0
For change default path of automount usb devices (/media/usb<number>)
Modify /etc/usbmount/usbmount.conf with Editor again.

Find this line
MOUNTPOINTS="/media/usb0 /media/usb1 /media/usb2 /media/usb3 /media/usb4 /media/usb5 /media/usb6 /media/usb7"
It can change to other location, if you want.
Sequence of mountpoint left to right.

device 1 -> /media/usb0
device 2 -> /media/usb1
...

If it don't umounted usb device and unplug it, mountpoint is not umount.
It cannot use this mountpoint on other device.
Please umount mountpoint before unplug usb device.

No comments:

Post a Comment