很多安装软件会存储在USB硬盘里面,在Windows系统中,则意味着,该USB硬盘驱动必须使用NTFS格式,因为FAT32格式的最大文件大小是4GB。然而,这里又会碰到新问题,因为在RHEL5中,默认不支持NTFS格式,换一句话说,就不能挂载文件格式为NTFS的USB硬盘。不过这里有个权益之计(work around),被称作'ntfs-3g', 要使其生效,必须安装下面RPM包。
NOTE:
使用的版本必须和Linux kernerl module相匹配,可以用uname -r来查看kernel版本,第一项,kernel module必须和你的kernel相匹配。
<p style="padding-bottom: 0px; margin-top: 0px; margin-bottom: 0px; vertical-align: baseline; padding-top: 0px;"># uname -
<p style="padding-bottom: 0px; margin-top: 0px; margin-bottom: 0px; vertical-align: baseline; padding-top: 0px;">2.6.18-308.16.1.el5
fuse-kmdl-2.6.18-308.16.1.el5-2.7.4-8_12.el5.x86_64.rpm
fuse-2.7.4-8_12.el5.x86_64.rpm
fuse-libs-2.7.4-8_12.el5.x86_64.rpm
fuse-ntfs-3g-1.1004-1.el5.rf.x86_64.rpm
<p style="padding-bottom: 0px; margin-top: 0px; min-height: 8pt; margin-bottom: 0px; height: 8pt; vertical-align: baseline; padding-top: 0px;">
下载 fuse & ntfs-3g
:
fuse: get it from http://www.atrpms.net/dist/el5/fuse/<br style="font-family: KaiTi_GB2312; font-size: 18px;" />ntfs-3g: get it from http://dag.wieers.com/rpm/packages/fuse-ntfs-3g/
安装 fuse部件
:
# rpm -ivh fuse-2.7.4-8_12.el5.x86_64.rpm \
> fuse-kmdl-2.6.18-308.16.1.el5-2.7.4-8_12.el5.x86_64.rpm \
> fuse-libs-2.7.4-8_12.el5.x86_64.rpm
安装 fuse-ntfs-3g
:
# rpm -ivh fuse-ntfs-3g-1.1004-1.el5.rf.x86_64.rpm
插入USB硬盘驱动到LINUX服务器中,并挂载
。
# mount.ntfs-3g /dev/sda1 /media/ntfs
<p style="padding-bottom: 0px; margin-top: 0px; min-height: 8pt; margin-bottom: 0px; height: 8pt; vertical-align: baseline; padding-top: 0px;">
<p style="padding-bottom: 0px; margin-top: 0px; margin-bottom: 0px; vertical-align: baseline; padding-top: 0px;">挂载的分区,比如说:/dev/sda1, 必须加载到这样的分区中。
<p style="text-align: left;">Linux中挂载NTFS格式的硬盘 http://www.linuxidc.com/Linux/2013-08/88721.htm
<p style="text-align: left;">CentOS 6.3 下用ntfs-3g挂载Windows NTFS分区 http://www.linuxidc.com/Linux/2012-09/70787.htm
<p style="text-align: left;">Gentoo Linux下读写NTFS格式分区(ntfs-3g解决NTFS只读不可写的问题) http://www.linuxidc.com/Linux/2012-02/52947.htm
<p style="text-align: left;">在Linux下使用NTFS-3G挂载NTFS分区的U盘及移动硬盘 http://www.linuxidc.com/Linux/2014-06/103189.htm
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。