首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Android >

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

2012-03-13 
移植ntfs-3g到android参考了一篇帖子http://blog.csdn.net/wuxiwang/article/details/5958265#comments编

移植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需要内核支持

热点排行