NTFS-3G + Ntfsprogs
NTFS-3G is a stable, full-featured, read-write NTFS driver for Linux, Android, Mac OS X, FreeBSD, NetBSD, OpenSolaris, QNX, Haiku, and other operating systems. It provides safe handling of the Windows XP, Windows Server 2003, Windows 2000, Windows Vista, Windows Server 2008 and Windows 7 NTFS file systems. A high-performance alternative, called Tuxera NTFS is available for embedded devices and Mac OS X.
The release notes and the software changes can be found on the Release History page. Subscribe here for new release notifications.
Download
The latest stable version is ntfs-3g_ntfsprogs-2012.1.15, released on January 22, 2012.
Installation
Linux: Most distributions include and use NTFS-3G by default. Please use that one unless it’s an old version. If you wish to install NTFS-3G from the source code then make sure you have installed the basic development tools (gcc compiler, libc-dev libraries). Then type:
./configure
make
make install # or 'sudo make install' if you aren't root
Non-Linux: Please see the OS specific installation and source packages above.
Usage
If there was no error during installation then the NTFS volume can be mounted in read-write mode for everybody as follows. Unmount the volume if it had already been mounted, replace /dev/sda1 and /mnt/windows, if needed.
mount -t ntfs-3g /dev/sda1 /mnt/windows
Please see the NTFS-3G Manual for more options and examples.
You can also make NTFS to be mounted during boot by adding the following line to the end of the /etc/fstab file:
/dev/sda1 /mnt/windows ntfs-3g defaults 0 0
---------------------------------------------------------
附: ( http://morgan363.iteye.com/blog/757224 )
问题:
# mount –t ntfs /dev/sdb1 /mnt/usb
mount: unknown filesystem type ‘ntfs’
这是由于CentOS release 5.3(Final)上无法识别NTFS格式的分区。
解决办法:
通过使用 ntfs-3g 来解决。
打开ntfs-3g的下载点http://www.tuxera.com/community/ntfs-3g-download/ ,将最新稳定(当前最新版本为ntfs-3g-2010.8.8.tgz)下载到CentOS,执行以下命令安装:
1) 编译安装 ntfs-3g:
# ./configure
# make
# make install (或 sudo make install)
2) 查看USB设备点
# fdisk -l
Disk /dev/sda: 154.7 GB, 154750418432 bytes
255 heads, 63 sectors/track, 18814 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 18814 151019032+ 8e Linux LVM
Disk /dev/sdb: 500.1 GB, 500107861504 bytes
255 heads, 62 sectors/track, 61781 cylinders
Units = cylinders of 15810 * 512 = 8094720 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 61782 488384000+ 7 HPFS/NTFS
3) 挂载NTFS分区
# mount –t ntfs-3g /dev/sdb1 /mnt/usb
在网上找了,方法一样安上 还是不能挂载,最后在官方站 找到方法了,如下:
mount -t ntfs-3g /dev/sda5 /mnt/windows
这样就可以挂载了,如果想开机启动 ,就挂载上的话,编辑/etx/fstat 文件
如下:
/dev/sda4 /mnt/windows ntfs-3g defaults 0 0
[root@NQ ntfs-3g-2011.1.15]# whereis ntfs-3g
ntfs-3g: /bin/ntfs-3g /usr/local/bin/ntfs-3g.secaudit /usr/local/bin/ntfs-3g.usermap /usr/local/bin/ntfs-3g.probe
[root@NQ ntfs-3g-2011.1.15]#
可以看到命令的位置,现在就来挂在NTFS分区
看一下我硬盘分区情况
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 6375 51200000 7 HPFS/NTFS
/dev/sda2 6375 12749 51200000 7 HPFS/NTFS
/dev/sda3 12749 19457 53886976 7 HPFS/NTFS
[root@NQ sda3]#
[root@NQ sda3]# /bin/ntfs-3g /dev/sda3 /mnt/move/sda3/
OK~
posted on 2013-07-29 16:05
回忆之城 阅读(130)
评论(0) 编辑 收藏 引用 所属分类:
unix/linux