Linux下掛載NTFS分區和掛載分區的方法

來源:互聯網
上載者:User

Linux下掛載NTFS分區和掛載分區的方法
如果你的磁碟格式為NTFS就按照以下步驟如果不是就直接跳下一步
首先去下載個 NTFS-3G
:http://www.tuxera.com/community/ntfs-3g-download/
然後把下載好的壓縮包上傳到root檔案夾內

列如:檔案名稱為:ntfs-3g_ntfsprogs-2013.1.13.tgz


解壓:tar zxvf ntfs-3g_ntfsprogs-2013.1.13.tgz
進入解壓檔案夾:cd ntfs-3g_ntfsprogs-2013.1.13
運行:
./configure
make
make install
到這裡已經安裝完成

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
查看分區資訊:fdisk -l

如:
[root@PC ntfs-3g_ntfsprogs-2013.1.13]# fdisk -l
Disk /dev/vda: 21.5 GB, 21474836480 bytes
16 heads, 63 sectors/track, 41610 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000acae9

   Device Boot      Start         End      Blocks   Id  System
/dev/vda1   *           3         409      204800   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/vda2             409        8731     4194304   82  Linux swap / Solaris
Partition 2 does not end on cylinder boundary.
/dev/vda3            8731       41611    16571392   83  Linux
Partition 3 does not end on cylinder boundary.

Disk /dev/vdb: 64.4 GB, 64424509440 bytes
255 heads, 63 sectors/track, 7832 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x5f72ecd9

   Device Boot      Start         End      Blocks   Id  System
/dev/vdb1               1        7832    62910508+  42  SFS     (我需要掛載的ntfs格式分區)

然後到/etc/fstab
開啟fstab在添加一段自動掛載的代碼
/dev/vdb1 /www ntfs-3g defaults 0 0

如果你的不是 ntfs格式呢就加你磁碟格式就好了
如:
/dev/vdb1 /www ext3  defaults 0 0

解釋:
/dev/vdb1 為你的分區名稱 在上步可以查看
/www 為需要掛載到檔案夾


 
本文摘自 wdlinux論壇,轉載請註明!

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.