linux 掛載NTFS移動硬碟

來源:互聯網
上載者:User

標籤:

[[email protected] ~]# fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          25      200781   83  Linux
/dev/sda2              26       17417   139701240   83  Linux
/dev/sda3           17418       19457    16386300   82  Linux swap / Solaris
Disk /dev/sdb: 320.0 GB, 320072932864 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb4   *           1       38914   312571192+   7  HPFS/NTFS

然後掛載該分區/dev/sdb4  到/mnt目錄下,卻發現檔案系統不能識別
[[email protected] ~]# mount /dev/sdb4 /mnt/
mount: unknown filesystem type ‘ntfs‘

此時需要安裝
fuse-ntfs-3g-2009.4.4-1.el5.rf.x86_64.rpm
下載連結: http://pkgs.repoforge.org/fuse-ntfs-3g/fuse-ntfs-3g-2009.4.4-1.el5.rf.x86_64.rpm
[[email protected] ~]# rpm -ivh fuse-ntfs-3g-2009.4.4-1.el5.rf.x86_64.rpm   --nodeps
warning: fuse-ntfs-3g-2009.4.4-1.el5.rf.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing...                ########################################### [100%]
   1:fuse-ntfs-3g           ########################################### [100%]

安裝完成之後:再次通過mount.ntfs-3g  /dev/sdb4  /mnt 即可掛載成功,對該分區進行操作
[[email protected] ~]# mount.ntfs-3g  /dev/sdb4 /mnt/
The disk contains an unclean file system (0, 0).
The file system wasn‘t safely closed on Windows. Fixing.
[[email protected] ~]# mount
/dev/sda2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdb4 on /mnt type fuseblk (rw,allow_other,blksize=4096)
[[email protected] ~]# df -H
Filesystem             Size   Used  Avail Use% Mounted on
/dev/sda2              139G    36G    97G  27% /
/dev/sda1              200M    13M   177M   7% /boot
tmpfs                  3.1G      0   3.1G   0% /dev/shm
/dev/sdb4              321G   162G   159G  51% /mnt

成功掛載,其餘的問題就不在此贅述了。


linux 掛載NTFS移動硬碟

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.