当前位置: 代码迷 >> Android >> 移植ntfs-3g到android解决方案
  详细解决方案

移植ntfs-3g到android解决方案

热度:121   发布时间:2016-05-01 22:10:03.0
移植ntfs-3g到android

参考了一篇帖子
http://blog.csdn.net/wuxiwang/article/details/5958265#comments
编译都通过了,但是mount的时候报错了

# ntfs-3g /dev/block/sda1 /mnt/sdcard
ntfs-3g /dev/block/sda1 /mnt/sdcard
Failed to read last sector (625137281): Invalid argument
HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,
  or it was not setup correctly (e.g. by not using mdadm --build ...),
  or a wrong device is tried to be mounted,
  or the partition table is corrupt (partition is smaller than NTFS),
  or the NTFS boot sector is corrupt (NTFS size is not valid).
Failed to mount '/dev/block/sda1': Invalid argument
The device '/dev/block/sda1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?

有做过的大侠出来说说呀

------解决方案--------------------
# ntfs-3g /dev/block/sda /mnt/sdcard
试试
或者直接挂mount -o loop /dev/block/sda /mnt/sdcard

fuse需要内核支持
  相关解决方案