使用掛載硬盤的方式也可以對(duì)硬盤進(jìn)行讀寫操作,而不用第三方軟件。
缺點(diǎn)是拔掉硬盤就需要重新掛載谬泌,做不到一勞永逸。
1.插上移動(dòng)硬盤逻谦,查看硬盤
ls -l /volumes
output:
total 8
lrwxr-xr-x 1 root admin 1 9 18 22:05 Macintosh HD -> /
drwxr-xr-x@ 1 jone staff 90112 8 20 12:44 Untitled
2.查看硬盤信息,主要查看Device Node:
diskutil info /volumes/untitled
output:
Device Identifier: disk2s1
Device Node: /dev/disk2s1
Whole: No
Part of Whole: disk2
Device / Media Name: Untitled 1
Volume Name:
Mounted: Yes
Mount Point: /Volumes/Untitled
File System Personality: NTFS
Type (Bundle): ntfs
Name (User Visible): Windows NT File System (NTFS)
Partition Type: Windows_NTFS
OS Can Be Installed: No
Media Type: Generic
Protocol: USB
SMART Status: Not Supported
Volume UUID: 3093E82C-4B4D-4AB9-8673-4E5E7A4E44E5
Total Size: 1.0 TB (1000202043392 Bytes) (exactly 1953519616 512-Byte-Units)
Volume Free Space: 221.4 GB (221402988544 Bytes) (exactly 432427712 512-Byte-Units)
Device Block Size: 512 Bytes
Allocation Block Size: 4096 Bytes
Read-Only Media: No
Read-Only Volume: Yes
Device Location: External
Removable Media: No
- 退出硬盤掌实,進(jìn)行掛載
hdiutil eject /volumes/untitled
output:
"disk2" unmounted.
"disk2" ejected.
- 創(chuàng)建掛載文件夾
mkdir /Users/jone/desktop/seagate
5.掛載硬盤
sudo mount_ntfs -o rw,nobrowse /dev/disk2s1 /users/jone/desktop/seagate
此時(shí)會(huì)提示輸入開機(jī)密碼,回車結(jié)束邦马,之后重新執(zhí)行掛載命令贱鼻,不在需要輸入開機(jī)密碼
6.右鍵硬盤,查看顯示簡(jiǎn)介滋将,會(huì)發(fā)現(xiàn)權(quán)限為讀寫邻悬。