Mac上挂载移动硬盘出现“Read-only file system“问题

景德海
2023-12-01

查看

$ cd /Volumes
# 确保移动硬盘链接,查看硬盘挂在的节点,操作如下
$ ll
total 0
lrwxr-xr-x   1 root          wheel     1B  1  4 08:59 Macintosh HD -> /
drwxr-xr-x   1 macminimd389  staff    16K  1  7 09:50 Seagate Expansion Drive
$
# 查看硬盘挂载信息,diskutil list 查看所有
$ diskutil info /Volumes/Seagate\ Expansion\ Drive
   Device Identifier:         disk4s1
   Device Node:               /dev/disk4s1
   Whole:                     No
   Part of Whole:             disk4

   Volume Name:               Seagate Expansion Drive
   Mounted:                   Yes
   Mount Point:               /Volumes/Seagate Expansion Drive

   Partition Type:            Windows_NTFS
   File System Personality:   NTFS
   Type (Bundle):             ntfs
   Name (User Visible):       Windows NT File System (NTFS)

   OS Can Be Installed:       No
   Media Type:                Generic
   Protocol:                  USB
   SMART Status:              Not Supported
   Volume UUID:               2DB1ED3C-A047-4715-9726-A66A17C02038
   Partition Offset:          32768 Bytes (64 512-Byte-Device-Blocks)

   Disk Size:                 2.0 TB (2000396321280 Bytes) (exactly 3907024065 512-Byte-Units)
   Device Block Size:         512 Bytes

   Volume Total Space:        2.0 TB (2000396320768 Bytes) (exactly 3907024064 512-Byte-Units)
   Volume Used Space:         1.4 TB (1366819147776 Bytes) (exactly 2669568648 512-Byte-Units) (68.3%)
   Volume Free Space:         633.6 GB (633577172992 Bytes) (exactly 1237455416 512-Byte-Units) (31.7%)
   Allocation Block Size:     4096 Bytes

   Read-Only Media:           No
   Read-Only Volume:          Yes

   Device Location:           External
   Removable Media:           Fixed
$
$ # 硬盘Device Node为/dev/disk4s1

挂载

$ # 通过Device Node推出硬盘,但是不要拔掉移动硬盘连接
$ sudo umount /dev/disk4s1
$ # 创建一个目录,稍后将mount到这个目录
$ sudo mkdir ~/my_disk
$
$ # 将NTFS硬盘 挂载 mount 到mac
$ sudo mount_ntfs -o rw,nobrowse /dev/disk4s1 ~/my_disk
$ # 可以进行任意的写入操作了

推出

$ # 使用umount命令将NTFS硬盘从mac上推出
$ sudo umount ~/my_disk
 类似资料: