FreeBSD under Mount Summary

  
 

1, mount FAT/FAT32 partition: (C drive as an example) mount -t msdos /dev/ad0s1 /mnt or mount_msdos /dev/ad0s1 /mnt for 4.x mount_msdosfs /dev/ad0s1 /mnt for 5.x 2, mount Windows
System extended partition (FAT/FAT32): The command is the same as 1 except that the extended partition starts from s5, such as mount D, available: mount -t msdos /dev/Ad0s5 /mnt mount_msdos /dev/ad0s5 /mnt for 4.x mount_msdosfs /dev/ad0s5 /mnt for 5.x 3. mount NTFS partition: (C drive as an example) mount -t ntfs /dev/ad0s1 /mnt or mount_ntfs /Dev/ad0s1 /mnt Note 1: Chinese/gbfs ntfs seems to have problems, it is not recommended for player level users Note 2: To make the windows partition (or CD-ROM) on the mount display Chinese, you need to upgrade your ports, then install Gbfs: #cd /usr/ports/chinese/gbfs #make install clean Then compile the kernel, comment out the options CD9660 options MSDOS Note 3: Do not install gbfs on 5.1-current, use: mount_msdosfs -L zh_CN.GB18030 /dev/ad0sX The /mnt command can support Chinese file names on FAT32 partitions. Of course, locale can be used without 18030, zh_CN.eucCN, en _CN.GBK can! 4, mount Linux Ext2fs/Ext3fs: Add options EXT2FS in the kernel, compile the kernel. Mount_ext2fs command can be used for mount, mount_ext2fs for mount of ext3fs, mount common data disc: mount_cd9660 /dev/acd0 /cdrom 6, mount ISO file in 5.x as follows: mdconfig -a -t vnode -f abc .iso -u 1 mount_cd9660 /dev/md1 /cdrom In 4.8 the following: vnconfig /dev/vn0 /home/xiaoche/a.iso mount -t cd9660 /dev/vn0 /mnt umount /mnt vnconfig -u /dev/vn0 7, mount CD, VCD, DVD Play CD, VCD, DVD without first mount. If you must mount, you can do this: #mount _cd9660 -s 0 /dev/acd0 /cdrom 8, mount floppy: 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 9. mount usb Make sure The following items in the kernel are device scbus device da device cd. By default, there is a GENERIC. If not, please compile the kernel. Most U disks use the FAT file system, so mount mount 10 with mount -t msdos /dev/da0 /mnt: mount ZIP floppy disk: #mount_msdosfs /dev/afd0s4 /mnt/zip 11.mount the second hard disk C Disk: #mount -msdos /dev/ad1s1 /mnt

Copyright © Windows knowledge All Rights Reserved