在fedora core 4_0 加载ntfs和fat32分区详述 linuxsir_org.htm
来自「linuxSir 网站的精华文章」· HTM 代码 · 共 365 行 · 第 1/2 页
HTM
365 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0039)http://www.linuxsir.org/main/?q=node/23 -->
<HTML lang=zh-hans xml:lang="zh-hans"
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>在Fedora core 4.0 加载NTFS和FAT32分区详述 | LinuxSir.Org</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<STYLE type=text/css media=all>@import url( misc/drupal.css );
</STYLE>
<STYLE type=text/css>@import url( http://www.linuxsir.org/main/modules/codefilter/codefilter.css );
</STYLE>
<STYLE type=text/css media=all>@import url( modules/taxonomy_context/taxonomy_context.css );
</STYLE>
<LINK media=screen
href="在Fedora core 4_0 加载NTFS和FAT32分区详述 LinuxSir_Org.files/menuExpandable3.css"
type=text/css rel=stylesheet>
<SCRIPT
src="在Fedora core 4_0 加载NTFS和FAT32分区详述 LinuxSir_Org.files/menuExpandable3.js"
type=text/javascript></SCRIPT>
<LINK href="在Fedora core 4_0 加载NTFS和FAT32分区详述 LinuxSir_Org.files/common.css"
type=text/css rel=stylesheet>
<STYLE type=text/css media=all>@import url( themes/chameleon/marvin/style.css );
</STYLE>
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV id=header><A title=Home href="http://www.linuxsir.org/main/"><IMG alt=Home
src="在Fedora core 4_0 加载NTFS和FAT32分区详述 LinuxSir_Org.files/logo.jpg"></A></DIV>
<DIV class=navlinks>
<DIV class=primary><A href="http://www.linuxsir.org/main/?q"><FONT
color=white>首页</FONT></A> | <A
href="http://www.linuxsir.org/main/?q=taxonomy/term/34"><FONT
color=white>事件</FONT></A> | <A
href="http://www.linuxsir.org/main/?q=taxonomy/term/1/25/"><FONT
color=white>文档</FONT></A> | <A
href="http://www.linuxsir.org/main/?q=taxonomy/term/35/48/"><FONT
color=white>资源</FONT></A> | <A
href="http://www.linuxsir.org/main/?q=search"><FONT color=white>搜索</FONT></A> |
<A href="http://www.linuxsir.org/bbs"><FONT color=white>论坛</FONT></A> | <A
href="http://www.linuxsir.org/main/?q=taxonomy/term/38"><FONT
color=white>贡献者</FONT></A> | <A
href="http://www.linuxsir.org/main/?q=node/3"><FONT color=white>关于</FONT></A> |
<A href="http://www.linuxsir.org/main/?q=user"><FONT
color=white>注册/登录</FONT></A></DIV></DIV>
<TABLE id=content>
<TBODY>
<TR>
<TD id=sidebar-left>
<DIV class="block block-block" id=block-block-1>
<H2 class=title>子站索引</H2>
<DIV class=content>
<UL>
<LI><A href="http://fedora.linuxsir.org/" target?_blank?>Fedora中文</A>
<LI><A href="http://debian.linuxsir.org/" target?_blank?>Debian中文</A>
<LI><A href="http://lfs.linuxsir.org/" target?_blank?>LFS 中文</A>
<LI><A href="http://slack.linuxsir.org/">Slackware</A>
<LI><A href="http://gentoo.linuxsir.org/">Gentoo中文</A>
<LI><A href="http://arch.linuxsir.org/">Arch 中文</A> </LI></UL></DIV></DIV>
<DIV class="block block-block" id=block-block-3>
<H2 class=title>重要资讯</H2>
<DIV class=content>
<UL>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/36">本站公告</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/34">新闻事件</A>
<LI><A href="http://www.linuxsir.org/bbs" target=_blank>本站论坛</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/38">贡 献 者</A>
</LI></UL></DIV></DIV>
<DIV class="block block-block" id=block-block-7>
<H2 class=title>项目索引</H2>
<DIV class=content>
<UL>
<LI><A href="http://www.fcitx.org/" target=_blank>小企鹅输入法</A>
<LI><A href="http://lumaqq.linuxsir.org/" target=_blank>LumaQQ</A>
<LI><A href="http://openq.linuxsir.org/" target=_blank>OpenQ</A>
<LI><A href="http://www.relaxbsd.org/" target=_blank>RelaxBSD</A>
</LI></UL></DIV></DIV>
<DIV class="block block-user" id=block-user-1>
<H2 class=title>站点导航</H2>
<DIV class=content>
<DIV class=menu>
<UL>
<LI class=leaf><A title=注册/登录
href="http://www.linuxsir.org/main/?q=user">注册/登录</A>
<LI class=collapsed><A
href="http://www.linuxsir.org/main/?q=aggregator">新闻聚合</A>
</LI></UL></DIV></DIV></DIV>
<DIV class="block block-aggregator" id=block-aggregator-feed-2>
<H2 class=title>LinuxSir.Org 论坛</H2>
<DIV class=content>
<DIV class=item-list>
<UL>
<LI><A
href="http://www.linuxsir.org/bbs/showthread.php?t=267213&goto=newpost">告别LINUX</A>
<LI><A
href="http://www.linuxsir.org/bbs/showthread.php?t=267212&goto=newpost">suse中国社区(论坛)已正式开放</A>
<LI><A
href="http://www.linuxsir.org/bbs/showthread.php?t=267211&goto=newpost">在文本编辑器中显示乱码</A>
<LI><A
href="http://www.linuxsir.org/bbs/showthread.php?t=267210&goto=newpost">archlinux用最新的ntfs-3g驱动读写ntfs分区</A>
<LI><A
href="http://www.linuxsir.org/bbs/showthread.php?t=267209&goto=newpost">实在是不行了~发帖请教一下,关于samba的中文问题~~~</A>
</LI></UL></DIV>
<DIV class=more-link><A title=查看此feed的最新消息
href="http://www.linuxsir.org/main/?q=aggregator/sources/2">更多</A></DIV></DIV></DIV>
<DIV class="block block-user" id=block-user-2>
<H2 class=title>最新注册</H2>
<DIV class=content>
<DIV class=item-list>
<UL>
<LI>babyvox963
<LI>wanglan0415
<LI>ShiningMoon
<LI>idomiles
<LI>yecllsl</LI></UL></DIV></DIV></DIV>
<DIV class="block block-user" id=block-user-3>
<H2 class=title>当前在线</H2>
<DIV class=content>0 users 和 206 游客 在线</DIV></DIV></TD>
<TD id=main>
<DIV class=breadcrumb><A href="http://www.linuxsir.org/main/?q=">首页</A> »
<A
href="http://www.linuxsir.org/main/?q=taxonomy/term/26">FC/RH/CentOS</A></DIV>
<H2>在Fedora core 4.0 加载NTFS和FAT32分区详述</H2><!-- begin content -->
<DIV class=node>
<DIV class=content>
<P><STRONG>作者:</STRONG>北南南北<BR><STRONG>来自:</STRONG>LinuxSir.Org<BR><STRONG>提要:</STRONG>本文主要介绍ntfs文件系统分区及fat32格式分区的挂载方法:简单的说就是让Linux能读取Windows系统下的分区;</P>
<P><B><BR>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<BR>正文:<BR>+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++<BR></B><BR><B><BR>一、最基本的几个命令;<BR></B><BR><FONT
color=blue><B><BR>1、查看磁盘分区情况的命令fdisk -l ;<BR></B></FONT><BR>比如:<BR>
<DIV class=codeblock><CODE>[root@localhost beinan]# /sbin/fdisk -l<BR>Disk
/dev/hda: 80.0 GB, 80026361856 bytes<BR>255 heads, 63 sectors/track, 9729
cylinders<BR>Units = cylinders of 16065 * 512 = 8225280
bytes<BR> Device Boot Start End Blocks Id
System<BR>/dev/hda1 * 1 765 6144831 7 HPFS/NTFS<BR>/dev/hda2 766 2805
16386300 c W95 FAT32 (LBA)<BR>/dev/hda3 2806 7751 39728745 5
Extended<BR>/dev/hda5 2806 3825 8193118+ 83 Linux<BR>/dev/hda6 3826 5100
10241406 83 Linux<BR>/dev/hda7 5101 5198 787153+ 82 Linux swap /
Solaris<BR>/dev/hda8 5199 6657 11719386 83 Linux<BR>/dev/hda9 6658 7751
8787523+ 83 Linux</CODE></DIV>
<P></P>
<P>通过上面的我们可以知道 /dev/hda1 是NTFS格式;/dev/hda2是FAT32格式;</P>
<P><FONT color=blue><B><BR>2、mount
命令;<BR></B></FONT><BR>就是磁盘分区的挂载命令,如果内核支持的话,mount 命令能挂载几乎所有的文件系统,比如
reiserfs;ext2;ext3;ntfs;fat32;jfs等等;在Linux系统中,我们常用的主要有reiserfs;ext3;ext3;在Windows系统中,我们主要用的是NTFS;FAT32;FAT等;<BR>
<DIV class=codeblock><CODE>mount 挂载磁盘分区的用法:<BR>mount -t 文件格式 -o 选项参数 磁盘分区
挂载点目录名</CODE></DIV><BR>这样说可能新手不太明白,什么是文件格式,什么是挂载点目录名,我们要把一个分区加载到Linux,是不是得有个存放在地方?比如我们把/dev/hda1
挂载到/mnt/winc目录中;首先我们要看是不是winc是否存在于/mnt目建录中;如果没有winc,我们必须建一个;当然挂载点目录名是自己随便起命名的,最好用英文;
<P></P>
<P>例子在后面举了,新手弟兄先知道有这回事就行了;<BR><FONT color=blue><B><BR>3、df -lh
磁盘使用情况的命令;这个重要吧;<BR></B></FONT><BR>
<DIV class=codeblock><CODE>[root@localhost beinan]# df -lh<BR>Filesystem
容量 已用 可用 已用% 挂载点<BR>/dev/hda8 11G 5.9G 4.5G 57% /<BR>/dev/shm 236M 0 236M
0% /dev/shm<BR>/dev/hda1 5.9G 3.2G 2.7G 55% /mnt/winc<BR>/dev/hda2 16G
8.1G 7.7G 52% /mnt/wind<BR>/dev/hda5 7.9G 5.8G 2.1G 74%
/mnt/slack</CODE></DIV><BR><FONT
color=blue><B><BR>4、文件和目录的权限;<BR></B></FONT><BR>这个在论坛中,我写过,有时间整理上来;知道umask=000是任何用户都能读写执行的就行了。有些东西慢慢就明白了,多执行几个命令就OK了。<BR><FONT
color=blue><B><BR>5、内核的版本;<BR></B></FONT><BR>
<DIV class=codeblock><CODE>[root@localhost beinan]# uname -a<BR>Linux
localhost.localdomain 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56 EDT 2005
i686 i686 i386 GNU/Linux</CODE></DIV><BR>通过上面得知我目前用的内核的版本是
2.6.11-1.1369_FC4<BR><FONT
color=blue><B><BR>6.获取root用户的命令是su<BR></B></FONT><BR>
<DIV class=codeblock><CODE>[beinan@localhost ~]$ su<BR>Password:
在这里输入您的root密码,即使输入了,也不会显示出来;我们要安装RPM包,要用到root的超级权限;<BR>[root@localhost
beinan]#</CODE></DIV><BR><B><BR>二、NTFS文件系统的加载;<BR></B><BR><FONT
color=blue><B><BR>1、我们要首先确认系统的内核;我们要根据系统的内核版本来下载支持ntfs的内核补丁;<BR></B></FONT>
<P></P>
<P>我们在前面已经通过fdisk -l 得知/dev/hda1 是NTFS分区;我们如何加载它呢?在Fedora core 4.0
中,系统默认是不支持NTFS加载的;我们只能安装第三方kernel的ntfs插件或者编内核来实现,相对于编译内核来说,插件是最方便的,也是最简单的;</P>
<P>
<DIV class=codeblock><CODE>[root@localhost beinan]# uname -a<BR>Linux
localhost.localdomain 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56 EDT 2005
i686 i686 i386
GNU/Linux</CODE></DIV><BR>一定要看仔细,是2.6.11-1.1369_FC4,是i686的,没有带smp字样的,smp是支持多处理器的内核,如果您用这样的内核,就要下载相应版本的smp的;
<P></P>
<P>我们到哪去下载呢?</P>
<P>kernel ntfs 项目在 http://linux-ntfs.sourceforge.net </P>
<P>Fedora core 4.0的kernel NTFS的RPM包在:</P>
<P>http://linux-ntfs.sourceforge.net/rpm/fedora4.html</P>
<P>根据上面内核的信息,我们要下载:2.6.11-1.1369_FC4 i686的,下载的应该是:</P>
<P>kernel-module-ntfs-2.6.11-1.1369_FC4-2.1.22-0.rr.6.0.i686.rpm</P>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?