26.1 Windows 文件系统
最后更新于
# kldload fusefs# ntfs-3g /dev/da0p1 /mnt -o rw,uid=1000,gid=1000,umask=0# ls /mnt
System Volume Information di-17.2-jie-linux-wen-jian-xi-tong.md
di-17.1-jie-windows-wen-jian-xi-tong.md di-17.3-jie-macos-wen-jian-xi-tong.md
# rm /mnt/di-17.3-jie-macos-wen-jian-xi-tong.md
# touch /mnt/test1/dev/da0p1 /mnt ntfs mountprog=/usr/local/bin/ntfs-3g,rw,uid=1000,gid=1000,umask=0,late 0 0# df -h
/dev/da0p1 58G 88M 58G 0% /mnt# ls /mnt/
System Volume Information di-17.2-jie-linux-wen-jian-xi-tong.md
di-17.1-jie-windows-wen-jian-xi-tong.md test1# gpart create -s mbr da0
# gpart add -t ntfs da0# gpart create -s gpt da0
# gpart add -t ms-basic-data da0# NTFS_USE_UBLIO=0 mkntfs -vf /dev/da0p1# gpart show -p nda1
=> 34 41942973 nda1 GPT (20G)
29360128 4194304 nda1p3 ms-basic-data (2.0G) # 即为 FAT32
……已忽略其他无关输出信息……# mount -v -t msdosfs /dev/nda1p3 /mnt
/dev/nda1p3 on /mnt (msdosfs, local, writes: sync 1 async 0, reads: sync 512 async 0, fsid 7d00000032000000, vnodes: count 1 )# ls /mnt/
me test1 test2# umount /mnt# pkg install fusefs-exfat# cd /usr/ports/filesystems/exfat/
# make install clean# kldload fusefs# sysrc kld_list+=fusefs# gpart create -s gpt ada1# gpart add -t ms-basic-data ada1# mkexfatfs -n "Mytest" /dev/ada1p1# fstyp /dev/ada1p1
exfat# mount.exfat /dev/ada1p1 /mnt# df -hl
Filesystem Size Used Avail Capacity Mounted on
/dev/ada1p1 20G 2.7M 20G 0% /mnt
……省略无关输出……# cd /mnt
# touch test
# mkdir -p test2/test2
# ls -al
total 73
drwxrwxrwx 1 root wheel 32768 May 29 17:39 .
drwxr-xr-x 20 root wheel 22 May 29 17:04 ..
-rwxrwxrwx 1 root wheel 0 May 29 17:39 test
drwxrwxrwx 1 root wheel 32768 May 29 17:39 test2