在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