- 論壇徽章:
- 0
|
[color="red"]1.mount FAT/FAT32分區(qū):(C盤為例)
mount -t msdos /dev/ad0s1 /mnt
或
mount_msdos /dev/ad0s1 /mnt [color="red"]for 4.x
mount_msdosfs /dev/ad0s1 /mnt [color="red"]for 5.x
[color="red"]2.mout Windows的擴(kuò)展分區(qū)(FAT/FAT32):
命令和1一樣,只是要記。簲U(kuò)展分區(qū)從s5開始,例如mount D盤,可用:
mount -t msdos /dev/ad0s5 /mnt
mount_msdos /dev/ad0s5 /mnt [color="red"]for 4.x
mount_msdosfs /dev/ad0s5 /mnt [color="red"]for 5.x
[color="red"]3.mount NTFS分區(qū):(C盤為例)
mount -t ntfs /dev/ad0s1 /mnt
或
mount_ntfs /dev/ad0s1 /mnt
[color="red"][注意]1.chinese/gbfs 的 ntfs 似乎有問題,不建議玩家級(jí)用戶使用
[color="red"]注意2.:要讓mount上的windows 分區(qū)(或CD-ROM)顯示中文,需要升級(jí)你的ports,再安裝gbfs:
#cd /usr/ports/chinese/gbfs
#make install clean
然后編譯內(nèi)核,注釋掉options CD9660
options MSDOS
[color="red"]注意3.在5.1-current上不用安裝gbfs,用:
mount_msdosfs -L zh_CN.GB18030 /dev/ad0sX /mnt
命令就可以支持FAT32分區(qū)上的中文文件名,當(dāng)然,locale可以不用18030,zh_CN.eucCN, zh_CN.GBK都可以!
[color="red"]4.mount Linux Ext2fs/Ext3fs:
在內(nèi)核里面加入options EXT2FS,編譯內(nèi)核。
mount 的時(shí)候用mount_ext2fs 命令即可,ext3fs的mount也用mount_ext2fs
[color="red"]5.mount 普通數(shù)據(jù)光盤:
mount_cd9660 /dev/acd0 /cdrom
[color="red"]6.mount ISO 文件
在5.x中如下
mdconfig -a -t vnode -f abc.iso -u 1
mount_cd9660 /dev/md1 /cdrom
4.8的版本
vnconfig /dev/vn0 /home/xiaoche/a.iso
mount -t cd9660 /dev/vn0 /mnt
umount /mnt
vnconfig -u /dev/vn0
[color="red"]7.mount CD、VCD、DVD
播放CD、VCD、DVD不用先mount上。
如果你一定要mount上,可以這樣:#mount _cd9660 -s 0 /dev/acd0 /cdrom
[color="red"]8.mount 軟盤:
1.Format:
# /usr/sbin/fdformat -f 1440 /dev/fd0
2. Run disklabel:
# /sbin/disklabel -B -r -w /dev/fd0 fd1440
3.Create New FS:
# /sbin/newfs_msdos /dev/fd0
4.Mount & Use
#mount_msdosfs /dev/fd0 /mnt
[color="red"]9.mount usb
確保內(nèi)核中有如下項(xiàng)
device scbus
device da
device cd
在GENERIC中默認(rèn)都有,如果沒有,請(qǐng)編譯內(nèi)核。
大多數(shù)U盤用的是FAT 文件系統(tǒng),所以用
mount -t msdos /dev/da0 /mnt
掛載
[color="red"]10.mount ZIP軟盤:
#mount_msdosfs /dev/afd0s4 /mnt/zip
本文來自ChinaUnix博客,如果查看原文請(qǐng)點(diǎn):http://blog.chinaunix.net/u2/68572/showart_1146504.html |
|