在Redhat下掛載windows的ntfs的方法

來源:互聯網
上載者:User

   1、 首先們需要下載ntfs-3g 。

   http://www.tuxera.com/community/ntfs-3g-download/

2  、 然後解壓進行安裝

     [guo@guo ~]$ tar xvzf ntfs-3g_ntfsprogs-2012.1.15.tgz       [root@guo ~]#./configure
     [root@guo ~]#make

     [root@guo ~]#make install # or 'sudo make install'

3、下一步就是掛載ntfs了。

  之前先用fdisk -l 進行查看檔案 [root@guo mnt]# fdisk -l

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 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: 0xb753b753

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2550    20482843+   7  HPFS/NTFS
/dev/sda2            2551       14593    96735397+   f  W95 Ext'd (LBA)
/dev/sda5            8925       12043    25053336    7  HPFS/NTFS
/dev/sda6           12044       14593    20482843+   7  HPFS/NTFS
/dev/sda7            2551        7650    40960000   83  Linux
/dev/sda8            7650        8663     8138752   83  Linux
/dev/sda9            8663        8924     2096128   82  Linux swap / Solaris

Partition table entries are not in disk order

接下來就可以掛載了,然後在終端中輸入:

[root@guo mnt]# mount -t ntfs-3g  /dev/sda2 /mnt/sda2

當然這時候可能出現錯誤提示/mnt中沒有sda2 ,這時候可以在終端中輸入:

[root@guo mnt]# mkdir sda2

然後再運行:
[root@guo mnt]# mount -t ntfs-3g  /dev/sda2 /mnt/sda2

就成功了。

還可以使NTFS預設掛載,以便安裝在引導過程中,在/etc / fstab檔案的末尾添加以下行:
/dev/sda1 /mnt/sda1 ntfs-3g defaults 0 0


相關文章

聯繫我們

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