在fedora core 4_0 加载ntfs和fat32分区详述 linuxsir_org.htm
来自「linuxSir 网站的精华文章」· HTM 代码 · 共 365 行 · 第 1/2 页
HTM
365 行
<P>地址:
http://prdownloads.sourceforge.net/linux-ntfs/kernel-module-ntfs-2.6.11-1.1369_FC4-2.1.22-0.rr.6.0.i686.rpm
</P>
<P>在这里选一个镜像下载:</P>
<P>安装kernel ntfs模块:<BR>
<DIV class=codeblock><CODE>[root@localhost beinan]# rpm -ivh
kernel-module-ntfs*</CODE></DIV><BR><FONT
color=blue><B><BR>2.判断哪个分区是NTFS格式,加载NTFS分区;<BR></B></FONT><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>我们已经把kernel
ntfs的模式安装好了,现在进入NTFS的分区的加载过程;通过上面的查看,我们知道/dev/hda1是NTFS格式的;<BR><FONT
color=blue><BR>1]我们要建一个挂载点的目录,比如是在/mnt/目录下建一个winc的目录:<BR></FONT><BR>[root@localhost
beinan]# mkdir /mnt/winc<BR><FONT color=blue><BR>2]把/dev/hda1 挂载到
/mnt/winc中,这样我们如果查看/dev/hda1磁盘内容时,就会在/mnt/winc中找得到;<BR></FONT><BR>
<DIV class=codeblock><CODE>[root@localhost beinan]# mount -t ntfs -o
nls=utf8,umask=000 /dev/hda1 /mnt/winc</CODE></DIV>
<P></P>
<P><FONT color=red>注:</FONT>-t ntfs 说明文件系统的格式是ntfs的;-o是选项
,选项有什么呢?有nls=utf8 ,意思是Native Language
Support(本地语言支持)是utf8,也就是大家常说的语言编码;Fedora core 4.0
默认的语言编码就是utf8的,这样能显示出中文来;umask=000表示所有的用户组都可读可写,但因为NTFS在Linux中写入不安全,所以只能读,不能写入;如果想写入,只能自己编内核来实现;但意义并不是太大;</P>
<P>是不是挂载好了呢?<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</CODE></DIV><BR>看来是挂载好了;我们进入 /mnt/winc就知道是不是有内容了;<BR>
<DIV class=codeblock><CODE>[root@localhost beinan]# cd
/mnt/winc<BR>[root@localhost beinan]# ls</CODE></DIV><BR><FONT
color=blue><BR>3]如何开机自动加载NTFS文件系统的分区;<BR></FONT><BR>我们要根据磁盘的位置,上面我们看到了是/dev/hda1,对不对?所以我在/etc/fstab文件中找加如下的一行;<BR>
<DIV class=codeblock><CODE>/dev/hda1 /mnt/winc ntfs
umask=000,nls=utf8</CODE></DIV><BR><FONT
color=blue><BR>4]如何将这个磁盘分区放在GNOME或者KDE的桌面上呢?<BR></FONT><BR>在KDE下,只需要点一下鼠标,在桌面的空白处按鼠标右键就可以找得到了;不多说了,太简单;
<P></P>
<P>在GNOME下也是极简单的:</P>
<P>比如我是以beinan这个用户登入的系统,想在放在 beinan 这个用户的GNOME桌面上;<BR>
<DIV class=codeblock><CODE>[beinan@localhost ~]$ ln -s /mnt/winc/
~beinan/Desktop/winc</CODE></DIV><BR><B><BR>三、FAT32文件系统的分区的加载;<BR></B><BR>通过fdisk
-l ,我们也知道了 /dev/hda2是FAT32格式的;<BR>
<DIV class=codeblock><CODE>/dev/hda2 766 2805 16386300 c W95 FAT32
(LBA)</CODE></DIV>
<P></P>
<P>Linux对FAT32的支持是可读可写的,所以没有必要再安装什么模块之类的;<BR><FONT
color=blue><B><BR>1.我们要建一个挂载点的目录,比如是在/mnt/目录下建一个wind的目录:<BR></B></FONT><BR>
<DIV class=codeblock><CODE>[root@localhost beinan]# mkdir
/mnt/wind</CODE></DIV><BR><FONT color=blue><B><BR>2.挂载 /dev/hda2
到/mnt/wind上<BR></B></FONT><BR>
<DIV class=codeblock><CODE>[root@localhost beinan]# mount -t vfat -o
iocharset=utf8,umask=000 /dev/hda2
/mnt/wind/</CODE></DIV><BR>看一下是不是挂载好了?<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</CODE></DIV><BR>看来是挂载好了;应该进去看看;<BR>
<DIV class=codeblock><CODE>[root@localhost beinan]#cd
/mnt/wind<BR>[root@localhost beinan]#ls -lh <BR>drwxrwxrwx 3 root root
8.0K 7月 27 11:45 抓图<BR>drwxrwxrwx 2 root root 8.0K 8月 12 10:21
测试文件<BR>drwxrwxrwx 4 root root 8.0K 7月 27 11:45 电脑硬件<BR>drwxrwxrwx 5 root
root 8.0K 7月 27 11:45 网际快车</CODE></DIV><BR>中文支持没有问题;这是我机器中的;<BR><FONT
color=blue><B><BR>3.如何开机自动加载fat文件系统的分区;<BR></B></FONT><BR>我们要根据磁盘的位置,上面我们看到了是/dev/hda1,对不对?所以我在/etc/fstab文件中找加如下的一行;<BR>
<DIV class=codeblock><CODE>/dev/hda2 /mnt/wind vfat
umask=000,nls=utf8</CODE></DIV><BR><FONT
color=blue><BR>4]如何将这个磁盘分区放在GNOME或者KDE的桌面上呢?<BR></FONT><BR>在KDE下,只需要点一下鼠标,在桌面的空白处按鼠标右键就可以找得到了;不多说了,太简单;
<P></P>
<P>在GNOME下也是极简单的:</P>
<P>比如我是以beinan这个用户登入的系统,想在放在 beinan 这个用户的GNOME桌面上;</P>
<P>
<DIV class=codeblock><CODE>[beinan@localhost ~]$ ln -s /mnt/wind/
~beinan/Desktop/wind</CODE></DIV><BR><B><BR>四、对于文本文件乱码处理;
<P></P>
<P></B><BR>比如我们看到有些文本文件内容是乱码,我们可以用gedit 打开,然后另存为utf8格式就OK了;</P>
<P><B>后记:</B>虽然写的详细,但我不敢保证所有初学者都能会操作,但我感觉80%初学者还是按步骤操作不会有问题;</P>
<P>正在修订之中;欢迎提出点意见和建议;谢谢~</P>
<P><A href="http://www.linuxsir.org/main/?q=node/41">《Linux
查看磁盘分区、文件系统、使用情况的命令和相关工具介绍》</A><BR><A
href="http://www.linuxsir.org/main/?q=node/81">《实例解说 fdisk 使用方法》</A><BR><A
href="http://www.linuxsir.org/main/?q=node/23">《在Fedora core 4.0
加载NTFS和FAT32分区详述》</A><BR><A
href="http://www.linuxsir.org/main/?q=node/80">《合理规划您的硬盘分区》</A><BR><A
href="http://www.linuxsir.org/main/?q=node/82">《系统引导过程及硬盘分区结构论述》</A><BR><A
href="http://www.linuxsir.org/main/?q=node/40">《Fedora Core 4.0
HAL配置即插即用移动存储(USB及1394)的实践》</A></P></DIV>
<DIV class=links>By 北南南北 at 2005/08/12 - 11:14 | <A
href="http://www.linuxsir.org/main/?q=taxonomy/term/26">FC/RH/CentOS</A> |
<A href="http://www.linuxsir.org/main/?q=taxonomy/term/25">基础知识</A> | <A
title=共享你有关本文的思想和意见。
href="http://www.linuxsir.org/main/?q=comment/reply/23#comment">参与评论</A> |
10186 阅读</DIV></DIV><A id=comment></A>
<FORM action=?q=comment method=post>
<DIV><INPUT type=hidden value=23 name=edit[nid]> </DIV></FORM><!-- end content -->
<DIV id=footer>
<CENTER><A href="http://www.linuxsir.org/"><IMG
src="在Fedora core 4_0 加载NTFS和FAT32分区详述 LinuxSir_Org.files/logo.jpg"></A>
<BR><A href="http://www.miibeian.gov.cn/"><FONT color=blue
size=3><B>闽ICP备06025536号</B></FONT></A><BR>
<SCRIPT language=JavaScript
src="在Fedora core 4_0 加载NTFS和FAT32分区详述 LinuxSir_Org.files/cyberpolice.htm"></SCRIPT>
<BR><A href="http://www.linuxsir.org/main/?q=node/78"><FONT color=blue
size=3><B>© 2002-2006 LinuxSir.Org</B></FONT></A><BR></CENTER></DIV></TD>
<TD id=sidebar-right>
<DIV class="block block-block" id=block-block-2>
<H2 class=title>基础知识</H2>
<DIV class=content>
<UL>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/23">安装配置</A>
<LI><A
href="http://www.linuxsir.org/main/?q=taxonomy/term/1/25/">基础入门</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/22/">硬件解决</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/21">软件管理</A>
<LI><A
href="http://www.linuxsir.org/main/?q=taxonomy/term/35/48/">重要资源</A>
</LI></UL></DIV></DIV>
<DIV class="block block-block" id=block-block-4>
<H2 class=title>软件应用</H2>
<DIV class=content>
<UL>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/30">网络工具</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/32">图形图像</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/31">音乐视频</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/49">字体中文</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/33">软件其它</A>
</LI></UL></DIV></DIV>
<DIV class="block block-block" id=block-block-5>
<H2 class=title>网络服务器</H2>
<DIV class=content>
<UL>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/27">文件服务器<A>
<LI><A
href="http://www.linuxsir.org/main/?q=taxonomy/term/28">Web服务器</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/29">邮件服务器</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/37">数据库应用</A>
<LI><A href="http://www.linuxsir.org/main/?q=taxonomy/term/50">服务器其它</A>
</LI></UL></DIV></DIV>
<DIV class="block block-comment" id=block-comment-0>
<H2 class=title>最新评论</H2>
<DIV class=content>
<DIV class=item-list>
<UL>
<LI><A
href="http://www.linuxsir.org/main/?q=node/140#comment-630">http://www.linuxsir.org/main/?q=node/140#comment-630</A><BR>38
min 49 sec 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/226#comment-629">投影机</A><BR>1
day 3 hours 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/10#comment-628">压缩:</A><BR>1
day 4 hours 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/178#comment-627">不行</A><BR>1
day 8 hours 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/158#comment-626"></A><BR>2
days 16 min 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/42#comment-625">太感谢了</A><BR>2
days 4 hours 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/222#comment-624">错了</A><BR>2
days 18 hours 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/222#comment-623">q</A><BR>2
days 19 hours 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/222#comment-622">有些道理</A><BR>2
days 19 hours 前
<LI><A
href="http://www.linuxsir.org/main/?q=node/219#comment-621">"内置的摄像头也能用这个吗?"</A><BR>3
days 8 hours
前</LI></UL></DIV></DIV></DIV></TD></TR></TBODY></TABLE></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?