`
caoruntao
  • 浏览: 480996 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

Red Hat Enterprise Linux 5 使用心得(一)NTFS卷轴的挂载和可读写设置

阅读更多
转:http://hi.baidu.com/56908268/blog/item/3143c3957bcaf541d0135e60.html

如何挂载一个NTFS格式硬盘到linux系统?需要下载一个支持NTFS的补丁。

 

 

一、NTFS卷轴的挂载

一 检测你的内核版本和CPU型号

#uname -r -p
#2.6.18-128.el5xen i686
我的内核版本号为:2.6.18-128.el5xen CPU类型为:i686

二   去官方网站上下载内核对应的RPM包

现在你可以根据你得到的相应的参数,去http://www.linux-ntfs.org 上下载相对应的版本了。
我的内核是
2.6.18-128.el5xen   下载 2.6.18-128.el5xen

kernel-module-ntfs-2.6.18-128.el5xen-2.1.27-0.rr.10.11.i686.rpm


准确找到合适版本的支持插件(否则会出现安装完后无法进行下面的操作!)

三 安装Rpm
[root@localhost   安装目录下]#   rpm   -ivh   kernel-module-ntfs-2.6.18-8.el5xen-2.1.27-0.rr.10.11.i686.rpm
Preparing...   ###########################################   [100%]
1:kernel-module-ntfs-2.6.###########################################   [100%]

安装必须不报错!

四 将ntfs模块加载到内核中
[root@localhost  
安装目录下 ]#   /sbin/modprobe   ntfs

查看ntfs是否被正确的加载
[root@localhost   Download]#   dmesg   ¦   grep   NTFS
NTFS   driver   2.1.27   [Flags:   R/W   MODULE].
NTFS   volume   version   3.1.

如果出现下面的信息应该是被正确的加载了。

五 Mount查看下原来硬盘的分区

[root@localhost   安装目录下 ]#   fdisk   -l

Disk   /dev/hda:   251.0   GB,   251000193024   bytes
255   heads,   63   sectors/track,   30515   cylinders
Units   =   cylinders   of   16065   *   512   =   8225280   bytes

Device   Boot   Start   End   Blocks   Id   System
/dev/hda1   *   1   2550   20482843+   7   HPFS/NTFS
/dev/hda2   2551   30514   224620830   f   W95   Ext'd   (LBA)
/dev/hda5   2551   7649   40957686   7   HPFS/NTFS
/dev/hda6   7650   20397   102398278+   7   HPFS/NTFS
/dev/hda7   20398   20410   104391   83   Linux
/dev/hda8   20411   30514   81160348+   8e   Linux   LVM

Mount   windwos下的/dev/hda6分区

[root@localhost   Download]#   mkdir   /media/windows
[root@localhost   Download]#   mount   -t   ntfs   /dev/hda6   /media/windows/

查看是否被mount上来

[root@localhost   Download]#   df   -h
Filesystem   Size   Used   Avail   Use%   Mounted   on
/dev/mapper/VolGroup00-LogVol00
74G   20G   50G   29%   /
/dev/hda7   99M   12M   82M   13%   /boot
tmpfs   710M   0   710M   0%   /dev/shm
/dev/hda6   98G   29G   70G   29%   /media/windows

这样可以在RHEL5下显示NTFS分区格式下的文件了。


二、redhat enterprise linux 5挂载可读写的NTFS盘


NTFS-3G是一个开源软件,支持在Linux, FreeBSD, Mac OS X, NetBSD, Haiku操作系统下读写NTFS格式的分区。它能快速且安全的操作Windows XP, Windows Server 2003, Windows 2000 以及Windows Vista文件系统,除了完全的文件属主和访问权限,它支持所有符合POSIX标准的磁盘操作。linux 内核 2.6.0 以上才可以用 NTFS-3G。使用前请先用uname -a检查你的linux版本。

 

两步安装:

1.安装fuse,地址:http://sourceforge.net/projects/fuse/files/fuse-2.X/

要安装稳定版本,ntfs-3g才能认到,这里下载了fuse-2.7.4.tar.gz

下载解压后,用终端进入fuse的目录,然后输入命令

# ./configure

# make

# make install

# /sbin/modprobe fuse

期间系统会对程序进行编译。

 

2.安装ntfs-3g.地址:http://ntfs-3g.org/index.html

目前最新的稳定般为: ntfs-3g-2009.4.4 下载http://ntfs-3g.org/ntfs-3g-2009.4.4.tgz

   解压后,用终端进入ntfs-3g的目录,然后输入命令

   # ./configure

   # make

   # make install

 

开始挂载(以C盘为例):

   # mount -t ntfs-3g -o umask=0000 /dev/sda1 /mnt/C

 

卸载:

   # umount /mnt/windows/C

 

 

自动挂载文件系统: (每次手动挂载很麻烦,可设置为开机自动挂载可读写的NTFS磁盘)
在/etc目录下有一个文件fstab,在它的文件中加入以下代码:
/dev/sda1                /mnt/C       ntfs-3g   ntfs utf8,umask=0222   0 0
/dev/sda5                /mnt/D       ntfs-3g   ntfs utf8,umask=0222   0 0
/dev/sda6                /mnt/E       ntfs-3g   ntfs utf8,umask=0222   0 0
/dev/sda7                /mnt/F       ntfs-3g   ntfs utf8,umask=0222   0 0
/dev/sda8                /mnt/G       ntfs-3g   ntfs utf8,umask=0222   0 0


这在文件就是实现自动挂载的参数设定。在系统启动时,会自动根据这个文件中的设置,自动挂载你的文件系统。
分享到:
评论

相关推荐

    Red Hat Enterprise Linux 4 (版本介绍及安装)

    Red Hat Enterprise Linux 4(简称 RHEL 4)是 Red Hat 公司于2005年2月15日在LinuxWorld展览会上正式发布的一款企业级操作系统。它是在 Red Hat Enterprise Linux 3(2003年10月22日发布)之后的一个重要更新,标志...

    Red Hat Enterprise Linux 6 64位安装

    Red Hat Enterprise Linux (RHEL)作为一款商用级别的Linux发行版,在企业级应用中占据着举足轻重的地位。本文将详细介绍如何在虚拟环境中安装Red Hat Enterprise Linux 6 64位版本,并对其中的关键步骤进行深入解析...

    Red Hat Enterprise Linux (RHEL) 5.5 正式版 BT 高速下载

    最近,Red Hat 对旗下面向企业用户的 Linux 系统 Red Hat Enterprise Linux (RHEL) 进行了更新,推出了 5.5 版本。RHEL 5.5 支持新的硬件平台,升级了既有的软件包,以及对虚拟化方面进行了增强。  根据 RHEL 5.5...

    Red Hat Enterprise Linux 5 Deployment Guide

    Red Hat Enterprise Linux 5 是 Red Hat 公司开发的一款企业级 Linux 操作系统,基于 Linux 内核,提供了一个稳定、安全和高效的平台 для企业级应用程序。Red Hat Enterprise Linux 5 提供了一个完整的操作系统,...

    Red Hat Enterprise Linux 7.7 64位版 下载

    Red Hat Enterprise Linux 7.7 下载。介绍就不说了,网上一大堆的。 贴个hash吧: 文件名称: rhel-server-7.7-x86_64-dvd.iso 文件大小: 4.19 GB (4,501,536,768 字节) MD5: FAA7D8DD79085ECAE05B94E6180D9CBD SHA1:...

    yum源,系统版本:Red Hat Enterprise Linux Server release 6.8 (Santiago)

    Red Hat 系统使用 CentOS的yum源配置文件,CentOS-Base.repo,Red Hat Enterprise Linux Server release 6.8 (Santiago)测试可用, release 6.5, release 6.9应该也可以

    Red Hat Enterprise Linux7-9系统镜像下载

    文件里面包含了Red Hat Enterprise Linux7-9系统镜像下载(官方镜像)

    Red Hat Enterprise Linux 最新7.5版

    Red Hat Enterprise Linux 7.5版 百度网盘下载两个文件后解压

    Red Hat Enterprise Linux 5 安装手册

    Red Hat Enterprise Linux 5 安装手册详细介绍了红帽子企业版的安装过程,图片清晰,简单易懂,保证按此操作能顺利安装,让你轻松掌握Red Hat Enterprise Linux 5 安装过程。

    Red Hat Enterprise Linux 8.0安装(全网最详细版)

    Red Hat Enterprise Linux 8.0安装(全网最详细版)

    Red Hat Enterprise Linux Server 7.2(网盘资源)

    Red Hat Enterprise Linux 7.2 发布,该版本带来一些新的特性和功能,主要集中在安全、网络、系统管理方面。同时在加强了企业开发工具和基于 Linux 容器的应用部署。该版本还兼容新的Red Hat Insights。 世界领先的...

    Red Hat Enterprise Linux 5 Online Storage Reconfiguration Guide

    Red Hat Enterprise Linux 5 在线存储重新配置指南 本指南旨在帮助用户了解如何在线重新配置 Red Hat Enterprise Linux 5 中的存储系统。在线存储重新配置指南涵盖了 Red Hat Enterprise Linux 5 中的存储系统配置...

    Red Hat Enterprise Linux 5基础教程 ppt

    本书以Red Hat公司最新推出的Red Hat Enterprise Linux 5为对象,由浅入深、循序渐进地对Linux操作系统的使用方法做了详细的介绍。本书共分为11章,内容涉及Linux操作系统简介和安装、图形桌面系统的使用、办公软件...

    Red Hat Enterprise Linux 5 教程.doc

    "Red Hat Enterprise Linux 5 教程" 本篇教程旨在指导读者如何安装和配置 Red Hat Enterprise Linux 5 操作系统,以满足公司的网络整改需求。通过本教程,读者将学习如何在 VMware 中安装 Linux Red Hat Enterprise...

    Red Hat Enterprise Linux 5的安装Red Hat Enterprise Linux 5的安装Red Hat Enterprise Linux 5的安装

    根据提供的信息,我们可以总结并详细解释关于Red Hat Enterprise Linux 5 (RHEL 5)的安装过程和技术要点。 ### Red Hat Enterprise Linux 5 的安装 #### 安装准备工作 1. **硬件要求**: - **硬盘空间**:至少...

    HPE 3PAR Red Hat Enterprise Linux 和Oracle linux 实施指南.pdf

    《HPE 3PAR Red Hat Enterprise Linux 和 Oracle Linux 实施指南》是一份详细介绍了如何设置HPE 3PAR StoreServ Storage与Red Hat Enterprise Linux (RHEL) 或 Oracle Linux主机之间通信的专业文档。该指南旨在帮助...

    Red Hat Enterprise Linux 5 Global File System

    Red Hat Enterprise Linux 5 全局文件系统是 Red Hat Enterprise Linux 5 中的一种集群文件系统解决方案,旨在提供高可用性和高性能的文件系统存储解决方案。下面是相关知识点的详细解释: 什么是 Red Hat Global ...

    Red Hat Enterprise Linux 5 International Language Support Guide

    本指南是 Red Hat Enterprise Linux 5 用户和管理员的必备指南,旨在帮助他们更好地理解和使用 Red Hat Enterprise Linux 5 的国际语言支持。 知识点: 1. Linux internacionalización:在 Linux 操作系统中支持...

    Red Hat Enterprise Linux 7部署Oracle+12c+RAC+最佳实践

    Red Hat Enterprise Linux 7是一个功能强大且稳定的操作系统,对于企业级数据库的部署具有重要意义。Oracle 12c RAC(Real Application Clusters)是Oracle公司的一种高可用性集群解决方案,能够提供高性能和高可用...

    Red Hat Enterprise Linux 7 7.1 发行注记

    Red Hat Enterprise Linux 7.1 是一个基于 Linux 内核的操作系统,旨在为企业提供稳定、安全和高性能的解决方案。该版本基于 Linux 内核 3.10,提供了许多新的功能和改进,如增强的安全性、改进的性能和支持更多的...

Global site tag (gtag.js) - Google Analytics