如何在linux下挂载NTFS格式的U盘或硬盘。
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何在linux下挂载NTFS格式的U盘或硬盘。相关的知识,希望对你有一定的参考价值。
相信小伙伴们都有过这样的烦恼,就是在linux服务器上传文件过慢,而且还影响远程操作这样的问题当然可以通过,接入本地硬盘来解决,但是当你插入硬盘,mount 挂载的时候,就会出现报错错误的大概内容就是无法挂载ntfs格式的分区,其实解决方法也很简单:
[[email protected] ~]# fdisk -l
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 25 200781 83 Linux
/dev/sda2 26 17417 139701240 83 Linux
/dev/sda3 17418 19457 16386300 82 Linux swap / Solaris
Disk /dev/sdb: 320.0 GB, 320072932864 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb4 * 1 38914 312571192+ 7 HPFS/NTFS
然后挂载该分区/dev/sdb4 到/mnt目录下,却发现文件系统不能识别
[[email protected] ~]# mount /dev/sdb4 /mnt/
mount: unknown filesystem type ‘ntfs‘
此时需要安装
rpm包已经上传 需要的可以直接下载
fuse-ntfs-3g-2009.4.4-1.el5.rf.x86_64.rpm
[[email protected] ~]# rpm -ivh fuse-ntfs-3g-2009.4.4-1.el5.rf.x86_64.rpm --nodeps
warning: fuse-ntfs-3g-2009.4.4-1.el5.rf.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:fuse-ntfs-3g ########################################### [100%]
安装完成之后:再次通过mount.ntfs-3g /dev/sdb4 /mnt 即可挂载成功,对该分区进行操作
[[email protected] ~]# mount.ntfs-3g /dev/sdb4 /mnt/
The disk contains an unclean file system (0, 0).
The file system wasn‘t safely closed on Windows. Fixing.
[[email protected] ~]# mount
/dev/sda2 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sdb4 on /mnt type fuseblk (rw,allow_other,blksize=4096)
[[email protected] ~]# df -H
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 139G 36G 97G 27% /
/dev/sda1 200M 13M 177M 7% /boot
tmpfs 3.1G 0 3.1G 0% /dev/shm
/dev/sdb4 321G 162G 159G 51% /mnt
成功挂载!!!
本文出自 “三极行者” 博客,请务必保留此出处http://namesam.blog.51cto.com/12364721/1943501
以上是关于如何在linux下挂载NTFS格式的U盘或硬盘。的主要内容,如果未能解决你的问题,请参考以下文章
Linux之NTFS、FAT32、exFAT 各种格式硬盘挂载整理