centos下如何掛載ntfs分區檔案裡的centos鏡像檔案

來源:互聯網
上載者:User

在centos下掛載ntfs分區想必大家都比較熟悉了吧,這就是利用我們的ntfs-3g

安裝方法   1     yum install fuse ntfs-3g -y

註:fuse為小核心,ntfs-3g是我的需要的,-y表示同意安裝,沒有-y  的話也沒有影響,只不過安裝的時候他會提示你是否同意,以及安裝的路徑等。

安裝方法2.  

ntfs-3g下載頁面:http://www.tuxera.com/community/ntfs-3g-download/

安裝步驟:

wget http://tuxera.com/opensource/ntfs-3g-2010.8.8.tgz

tar zxvf ntfs-3g-2010.8.8.tgz

cd ntfs-3g-2010.8.8

./configure

make

make install

二選其一即可。

3.建立掛載點 如  mkdir /mnt/winc

4.掛載ntfs分區     fdisk -l 查看需要掛載的分區[dg@localhost ~]$ sudo fdisk -l

[sudo] password for dg:

Disk /dev/sda: 500.1 GB, 500107862016 bytes

255 heads, 63 sectors/track, 60801 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 4096 bytes

I/O size (minimum/optimal): 4096 bytes / 4096 bytes

Disk identifier: 0x2aec8857 Device Boot  Start   End  Blocks  Id System

/dev/sda1   *           1        1722    13824000   27  Unknown /dev/sda2            1722       17198   124312576    7  HPFS/NTFS /dev/sda3           17198       31964   118612992    7  HPFS/NTFS /dev/sda4           31965       60802   231633920    f  W95 Ext'd (LBA) /dev/sda5           31965       45111   105596928    7  HPFS/NTFS /dev/sda6           45111       55554    83887072+   7  HPFS/NTFS

Partition 6 does not start on physical sector boundary./dev/sda7           55554       60802    42148832+  83  Linux

Partition 7 does not start on physical sector boundary.

比如我要掛載/dev/sda3

就用命令 mount  -t  ntfs-3g  /dev/sda3   /mnt/winc

如果想自動掛載就要修改設定檔fstab   ,

命令    vim /etc/fstab

進入後就是這樣  我是修改了  /dev/sda3  儲存退出就行了

# /etc/fstab

# Created by anaconda on Mon Aug 27 00:40:07 2012

#

# Accessible filesystems, by reference, are maintained under '/dev/disk'

# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info

#

UUID=c5cef94d-8c10-418a-90ac-beb1d9acaebe /                       ext4    defaults        1 1

tmpfs                   /dev/shm                tmpfs   defaults        0 0

devpts                  /dev/pts                devpts  gid=5,mode=620  0 0

sysfs                   /sys                    sysfs   defaults        0 0

proc                    /proc                   proc    defaults        0 0

/dev/sda3               /mnt/winc              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.