<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[BIWEB开源PHP WMS系统创始人ArthurXF肖飞的blog]]></title> 
<link>http://www.bizeway.net/index.php</link> 
<description><![CDATA[网务通 - 网务公司发展之路]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[BIWEB开源PHP WMS系统创始人ArthurXF肖飞的blog]]></copyright>
<item>
<link>http://www.bizeway.net/read.php?</link>
<title><![CDATA[跟着ArthurXF学FreeBSD25——挂载命令mount的使用]]></title> 
<author>ArthurXF &lt;arthurxf@gmail.com&gt;</author>
<category><![CDATA[FreeBSD]]></category>
<pubDate>Sat, 30 Jun 2007 02:58:49 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?</guid> 
<description>
<![CDATA[ 
	FreeBSD的默认文件系统是ufs，如果要对其它文件系统的支持，就要在内核中增加相应的文件系统，然后重新编译内核，常用的MSDOS，CD9660在GENERIC内核(系统默认内核)中已有，而Linux的ext2fs没有，为了对ext2fs的支持，在内核中增加一行： <br/><br/>options "EXT2FS" <br/><br/><br/>重新编译内核，重启机器。 <br/><br/>可用fdisk /dev/wd0查看硬盘wd0的slice情况，对于FreeBSD的slice，还可用disklabel -r /dev/wd0s1命令来查看硬盘wd0的第一个slice的情况。进入/dev，查看硬盘设备，如还没有相应的，可用sh MAKEDEV建相应设备<br/><br/>这些工作之后，就可用mount命令了，例如： <br/>/mnt为目录，该目录必须存在<br/><br/>1.mount FAT/FAT32分区：(C盘为例)<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">mount -t msdos /dev/ad0s1 /mnt<br/><br/>或<br/>mount_msdos /dev/ad0s1 /mnt for 4.x<br/>mount_msdosfs /dev/ad0s1 /mnt for 5.x</div></div><br/><br/>2.mout Windows的扩展分区(FAT/FAT32)：<br/><br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">命令和1一样，只是要记住：扩展分区从s5开始，例如mount D盘,可用：<br/><br/>mount -t msdos /dev/ad0s5 /mnt<br/><br/>mount_msdos /dev/ad0s5 /mnt for 4.x<br/><br/>mount_msdosfs /dev/ad0s5 /mnt for 5.x</div></div><br/><br/>3.mount NTFS分区：(C盘为例)<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>mount -t ntfs /dev/ad0s1 /mnt<br/><br/>或<br/><br/>mount_ntfs /dev/ad0s1 /mnt<br/><br/>[注意]1.chinese/gbfs 的 ntfs 似乎有问题，不建议玩家级用户使用<br/><br/>注意2.：要让mount上的windows 分区(或CD-ROM)显示中文，需要升级你的ports，再安装gbfs:<br/><br/>#cd /usr/ports/chinese/gbfs<br/><br/>#make install clean<br/><br/>然后编译内核，注释掉options CD9660<br/><br/>options MSDOS<br/><br/>注意3.在5.1-current上不用安装gbfs,用： <br/><br/>mount_msdosfs -L zh_CN.GB18030 /dev/ad0sX /mnt <br/><br/>命令就可以支持FAT32分区上的中文文件名，当然，locale可以不用18030，zh_CN.eucCN, zh_CN.GBK都可以！</div></div><br/>4.mount Linux Ext2fs/Ext3fs:<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">在内核里面加入options EXT2FS，编译内核。<br/><br/>mount 的时候用mount_ext2fs 命令即可,ext3fs的mount也用mount_ext2fs</div></div><br/>5.mount 普通数据光盘：<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">mount_cd9660 /dev/acd0 /cdrom</div></div><br/><br/>6.mount ISO 文件<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>在5.x中如下<br/><br/>mdconfig -a -t vnode -f abc.iso -u 1<br/><br/>mount_cd9660 /dev/md1 /cdrom <br/><br/>4.8的版本 <br/><br/>vnconfig /dev/vn0 /home/xiaoche/a.iso<br/><br/>mount -t cd9660 /dev/vn0 /mnt<br/><br/>umount /mnt<br/><br/>vnconfig -u /dev/vn0</div></div><br/><br/>7.mount CD、VCD、DVD<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>播放CD、VCD、DVD不用先mount上。<br/><br/>如果你一定要mount上，可以这样：#mount _cd9660 -s 0 /dev/acd0 /cdrom</div></div><br/>8.mount 软盘：<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content"><br/>1.Format:<br/><br/># /usr/sbin/fdformat -f 1440 /dev/fd0<br/><br/>2. Run disklabel:<br/><br/># /sbin/disklabel -B -r -w /dev/fd0 fd1440<br/><br/>3.Create New FS:<br/><br/># /sbin/newfs_msdos /dev/fd0<br/><br/>4.Mount & Use<br/><br/>#mount_msdosfs /dev/fd0 /mnt</div></div><br/><br/>9.mount usb<br/><br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">确保内核中有如下项<br/><br/>device scbus<br/><br/>device da<br/><br/>device cd<br/><br/>在GENERIC中默认都有，如果没有，请编译内核。<br/><br/>大多数U盘用的是FAT 文件系统，所以用<br/><br/>mount -t msdos /dev/da0 /mnt<br/><br/>挂载</div></div><br/><br/><br/><br/>10.mount ZIP软盘： <br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">#mount_msdosfs /dev/afd0s4 /mnt/zip</div></div><br/><br/>说了这么多，就是没说在freeBSD系统多块硬盘怎么挂载，现在请看下面的：<br/><div class="quote"><div class="quote-title">引用</div><div class="quote-content">1.用systinstall 分区，测试，安装最小系统（已经格式化）<br/>2.newfs /dev/ad1s1 格式化命令（第一步未格式化才需执行）<br/>3.mount /dev/ad1s1 /disk1/ （挂载硬盘1到/disk1/目录下，该目录必须存在）<br/>4.vi /etc/fstab （加入/dev/ad1s1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/disk1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ufs &nbsp; &nbsp; rw &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; &nbsp; 1，这样开机重启就可以自动挂载了）</div></div><br/><br/>希望上面的知识能够让大家更加了解freeBSD。有什么疑问请加QQ：29011218或MSN：onenight11@hotmail.com交流。<br/><br/><br/>现在ArthurXF本人正在搞PHP等技术培训，如果想学习的人可以跟我联系。另外培训的招生简章在这个网址，想了解的可以去看看。加我QQ：29011218交流也可。<br/><a href="http://www.bizeway.net/read.php/285.htm" target="_blank">PHP培训招生简章</a><br/>Tags - <a href="tag.php?tag=freebsd" rel="tag">freebsd</a> , <a href="tag.php?tag=mount" rel="tag">mount</a> , <a href="tag.php?tag=%E6%8C%82%E8%BD%BD" rel="tag">挂载</a>
]]>
</description>
</item><item>
<link>http://www.bizeway.net/read.php?&amp;guid=0#topreply</link>
<title><![CDATA[[评论] 跟着ArthurXF学FreeBSD25——挂载命令mount的使用]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://www.bizeway.net/read.php?&amp;guid=0#topreply</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>