Windows XP Windows 7 Windows 2003 Windows Vista Windows教程綜合 Linux 系統教程
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟件教程
 Windows教程網 >> Linux系統教程 >> Linux教程 >> 如何在linux下掛載ntfs文件系統分區

如何在linux下掛載ntfs文件系統分區

日期:2017/2/7 14:37:33      編輯:Linux教程
 

# rpm -qa | grep fuse

fuse-2.7.4-8.el5

說明已經安裝fuse

安裝ntfs-3g, 系統默認的軟件庫更新不到ntfs-3g,可以自己下載編譯安裝。
下載網址:http://www.tuxera.com/community/ntfs-3g-download/

# tar -zxvf ntfs-3g-2010.5.22.tgz
# cd ntfs-3g-2010.5.22
# ls
aclocal.m4 config.h configure.ac INSTALL m4 README
AUTHORS config.h.in COPYING install-sh Makefile src
autogen.sh config.log COPYING.LIB libfuse-lite Makefile.am stamp-h1
ChangeLog config.status CREDITS libntfs-3g Makefile.in
compile config.sub depcomp libtool missing
config.guess configure include ltmain.sh NEWS
#./configure
#make
#make install

完了之後就可以正常mount ntfs 文件了
# mount -t ntfs-3g /dev/sda2 /mnt/D
# ls /mnt/D

設置開機自動掛載文件系統

編輯/etc/fstab 文件,在其中加入想要加載的分區即可,如果不知道是哪個分區,可以使用fdisk -l

# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 3825 30724281 7 HPFS/NTFS
/dev/sda2 3826 29322 204804652+ 7 HPFS/NTFS
/dev/sda3 * 29323 31871 20474842+ 83 Linux
/dev/sda4 31872 60801 232380225 5 Extended
/dev/sda5 31872 32125 2040223+ 82 Linux swap / Solaris
/dev/sda6 32126 34674 20474811 83 Linux

如上,我要掛載的是windows下面的D盤,即是/dev/sda2 ,如果想掛載C盤,即是/dev/sda1

在/etc/fstab 文件中添加一行:

/dev/sda2 /mnt/D ntfs-3g defaults 0 0

/mnt/D這個文件是我在根目錄下建來專門掛載D盤的,你也可以新建在別的地方.

Copyright © Windows教程網 All Rights Reserved