1. Insert U-disk display can only read
2.mount View disk mount condition (read-only only readable)
出现 /dev/disk2s1 on /Volumes/allenboy (ntfs, local, nodev, nosuid, read-only, noowners) 这里要看清 disk2s1与你的 u 盘名allenboy (一般用英文中文不太友好) allenboy$ mount/dev/disk1s1 on / (apfs, local, journaled)devfs on /dev (devfs, local, nobrowse)/dev/disk1s4 on /private/var/vm (apfs, local, noexec, journaled, noatime, nobrowse)map -hosts on /net (autofs, nosuid, automounted, nobrowse)map auto_home on /home (autofs, automounted, nobrowse)/dev/disk2s1 on /Volumes/allenboy (ntfs, local, nodev, nosuid, read-only, noowners)
3. Create a mount point in the/volumes/directory the name is as follows: Udisk
cd /Volumes/ ls 查看 Macintosh HD Preboot allenboy 创建 sudo mkdir /Volumes/Udisk 完整命令 AllenboydeMacBook-Air:bin allenboy$ cd ..AllenboydeMacBook-Air:usr allenboy$ cd /Volumes/AllenboydeMacBook-Air:Volumes allenboy$ lsMacintosh HD Preboot
4. First unload (Allenboy corresponds to U-disk name)
5. Re-mount (mount to your create mount point here/volumes/udisk also to see your partition here is disk2s1)
sudo mount -t ntfs -o rw,auto,nobrowse /dev/disk2s1 /Volumes/Udisk/
6. Testing
cd /Volumes/Udisk/touch 新创建文件完整命令AllenboydeMacBook-Air:Volumes allenboy$ sudo mount -t ntfs -o rw,auto,nobrowse /dev/disk2s1 /Volumes/Udisk/AllenboydeMacBook-Air:Volumes allenboy$ mount|grep ntfs/dev/disk2s1 on /Volumes/Udisk (ntfs, local, noowners, nobrowse)AllenboydeMacBook-Air:Volumes allenboy$ cd /Volumes/Udisk/AllenboydeMacBook-Air:Udisk allenboy$ lsGHOISOSystem Volume Informationautorun.infcn_windows_7_professional_x64_dvd_x15-65791.isoicon.ico升级启动盘.urlAllenboydeMacBook-Air:Udisk allenboy$ touch allenAllenboydeMacBook-Air:Udisk allenboy$ lsGHOISOSystem Volume Informationallenautorun.infcn_windows_7_professional_x64_dvd_x15-65791.isoicon.ico升级启动盘.urlAllenboydeMacBook-Air:Udisk allenboy$ touch 新创建文件AllenboydeMacBook-Air:Udisk allenboy$
7. Currently only command desktop no icon
8. Links
You can customize a script to write!!!!
The problem is that you have to mount it every time. Re-inserted and changed.
Mount again at the same time there will be more than one, in fact, is a soft link, just like a person many names have only one real name, but one of the changes is to all changes.
////////////////////////
Description
mount -t ntfs -o rw,auto,nobrowse /dev/disk2s1 /Volumes/Udisk/-t ntfs # 执行要挂载的分区文件系统格式-o # 执行挂载的选项rw # read-write,以读写的方式挂载auto # 自动检测文件系统,此参数可以省略nobrowse # 这个选项非常重要,因为这选项指明了在finder里不显示这个分区,只有打开了这个选项才能将磁盘以读写的方式进行挂载/dev/disk4s2 # 要挂载的分区,也就是我们在mount命令中看到的盘符/Volumes/Udisk/ # 挂载点* /Volumes/Udisk这个目录是需要存在的,如果不存在需要手动创建下:sudo mkdir /Volumes/Udisk* 如果目录不存在会收到如下报错:mount: realpath /Volumes/Udisk: No such file or directory
----Done----
Reference Links:
Https://zh.wikipedia.org/wiki/NTFS
Mount NTFS under MAC