[GUIDE] How to mount USB external harddisk(support NTFS and multi disks)
Comment @ 1st June 2011: In Android 3.1 stock kernel or Tiamat kernel, it has usb-hosting function enabled.So just install hellcat82’s apk and ignore this guide, you could get your NTFS disk mounted.
All Thanks to Roebeet who has enabled usb hosting on xoom.
see the detail at here
But it didn't support NTFS partition at this time, so i write this guide for ntfs supporting.
( hellcat82 has written a tool to simplify mounting NTFS drives
, no need to push any file to android anymore. By just installing one apk, you will get everything. Let's give cheers to hellcat82! )
one microUSB male to USB-A female OTG cable.
one powered USB hub with USB-A male connector.
usb external harddisk.
Kernel: root your xoom and enable USB hosting mode by Roebeet‘s hack
. or update kernel to Tiamat Xoom 1.1.6
which integrated Roebeet‘s hack.
NTFS supporting: NTFS-3g compiled by farazite
, the newest version is on page 2 of that post
Script Tool:gscript lite, downloadable from market.
2. push ntfs-3g supporting files to xoom
comment: ntfsvolume.apk is not compatible with xoom, so we can just use ntfs-3g and umount_force. at this moment, there is a bug in umount_force which can only dismount one partition, if we mount more than one ntfs partition, then we can not dismount all partitions totally.
adb push ntfs-3g /system/xbin
adb push umount_force /system/xbin
adb shell chmod 755 /system/xbin/ntfs-3g /system/xbin/umount_force
3. Connecting Xoom,USB hub and USB disk
4. Mounting USB disks
use gscript lite to mount disk(s), or you can test this script via adbwireless, because we have no room to connect xoom and PC now.
mount -o remount,rw /
ln -s /mnt/ntfsdisk /ntfsdisk
ntfs-3g /dev/block/sda1 /mnt/ntfsdisk
sda1 is the first partition of the first disk,
sdb1 is the first partition of the second disk.
and so on.
if you want to mount the second disk, the reference script is
ln -s /mnt/ntfsdisk2 /ntfsdisk2
ntfs-3g /dev/block/sdb1 /mnt/ntfsdisk2
PS:if the partition of your disk is FAT16/32, then you needn't doing anything , it will be auto mounted by Roebeet's hack.
5. Dismounting USB disks
I mounted one USB flash disk(512MB), one 2.5 inch hard disk(120GB), one 3.5 inch hard disk(2TB)
the ntfs partition can be read and written without problem.