1,kelsen@kelsenlinux:~$sudofdisk-l|grepNTFS
出现如下硬盘信息:
/dev/sda1*1191215358108 7HPFS/NTFS
/dev/sda51913637435840983 7HPFS/NTFS
/dev/sda663758337157677667HPFS/NTFS
/dev/sdb115099409576867HPFS/NTFS
/dev/sdb251001019840957717 7HPFS/NTFS
/dev/sdb3101991945774372917 7HPFS/NTFS
2,kelsen@kelsenlinux:~$sudontfs-3g/dev/sdb1/media/sdb1
出现如下信息:
$LogFileindicatesuncleanshutdown(0,0)
Failedtomount''/dev/sdb1'':Operationnotsupported
MountisdeniedbecauseNTFSismarkedtobeinuse.Chooseoneaction:
有三种选择方案:
Choice1:IfyouhaveWindowsthendisconnecttheexternaldevicesby
clickingonthe''SafelyRemoveHardware''iconintheWindows
taskbarthenshutdownWindowscleanly.
Choice2:Ifyoudon''thaveWindowsthenyoucanusethe''force''optionfor
yourownresponsibility.Forexampletypeonthecommandline:
mount-tntfs-3g/dev/sdb1/media/sdb1-oforce
Oraddtheoptiontotherelevantrowinthe/etc/fstabfile:
/dev/sdb1/media/sdb1ntfs-3gdefaults,force00
3,sudomount-tntfs-3g/dev/sdb1/media/sdb1-oforce
4,sudomount-tntfs-3g/dev/sdb2/media/sdb2-oforce
5,sudomount-tntfs-3g/dev/sdb3/media/sdb3-oforce
补充:
3,4,5我执行完后,虽然也是报错,但强制双击硬盘盘符可以进入,然后就挂载上罗~~
Choice1:IfyouhaveWindowsthendisconnecttheexternaldevicesby
clickingonthe''SafelyRemoveHardware''iconintheWindows
taskbarthenshutdownWindowscleanly.
Choice2:Ifyoudon''thaveWindowsthenyoucanusethe''force''optionfor
yourownresponsibility.Forexampletypeonthecommandline:
mount-tntfs-3g/dev/sdb1/media/sdb1-oforce
Oraddtheoptiontotherelevantrowinthe/etc/fstabfile:
/dev/sdb1/media/sdb1ntfs-3gdefaults,force00
下载本文示例代码