FreeBSDæ¯æNTFSæ ¼å¼ç¡¬ç
FreeBSDæ¯æNTFSæ ¼å¼ç¡¬ç
??????????????????????NTFS-3g?????????????????
uname -a
???
FreeBSD mail.nou.cn 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49 UTC 2010 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
???????amd64??????????
????????GENERIC????????????????????/usr????
# cd /usr/src/sys/amd64/conf
# mkdir /root/kernel
# cp GENERIC /root/kernel/zxkernel
# ln -s /root/kernel/
# cd /root/kernel
# vi zxkernel
??mykernel???????.?????????:
options NTFS #NT Filesystem
options EXT2FS #Linux ext2 Filesystem(????????
??????????????
????
# /usr/sbin/config zxkernel
?????../combile/zxkernel,?????make cleandepend && make depend ???
# cd ../combile/zxdernel //???/usr/src/sys/amd64/compile/zxkernel
# make cleandepend && make depend
# make
# make install
# reboot
???
??freebsd???????????????????????????????????
?????make buildkernel KERNCONF=zxkernel
make installkernel KERNCONF=zxkernel
????????????????????? /boot/kernel????? /boot/kernel/kernel ??????? /boot/kernel.old/kernel? mv /boot/kernel /boot/kernel.bak mv /boot/kernel.old /boot/kernel ????uname -a????????????????????
????NTFS???????????????????????????/dev/da3 ? /dev/da3s1
# mount -t ntfs -o rw /dev/da3s1 /mnt
?????-o rw?????????????????????????????
???ntfs??????????-t ntfs ????fat32??????????-t vfat???????????????????????????????
???#mount -t ntfs -o iocharset=cp936 /dev/sdc1 /mnt/usbhd1
???#mount -t vfat -o iocharset=cp936 /dev/sdc5 /mnt/usbhd2
mount [-t vfstype] [-o options] device dir
??1.-t vfstype ?????????????????mount ?????????????????
??Windows 9x fat32?????vfat
??Windows NT ntfs?????ntfs
??Mount Windows???????smbfs
??2.-o options ????????????????????????
??loop???????????????????
??iocharset??????????????
??3.device ???(mount)????
??4.dir??????????(mount point)?
?????????ISO????????????
1?????????????????????????????
???#cp /dev/cdrom /home/sunky/mydisk.iso ?
???#dd if=/dev/cdrom of=/home/sunky/mydisk.iso
?????????????????????????????????/home/sunky/mydisk.iso
2?????????????????????????
???#mkisofs -r -J -V mydisk -o /home/sunky/mydisk.iso /home/sunky/ mydir
???????/home/sunky/mydir????????????????????/home/sunky/mydisk.iso???????mydisk
??
3??????????(mount)
???#mkdir /mnt/vcdrom
??????????????(mount point)
???#mount -o loop -t iso9660 /home/sunky/mydisk.iso /mnt/vcdrom
????/mnt/vcdrom??????????mydisk.iso????????
Available link for download