Skip to content
SRE运维进阶之路SRE运维进阶之路
github icon

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

    author iconClaycalendar icon2021年9月22日tag icon
    • Mac
    timer icon大约 1 分钟

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

    转载自:Mac上挂载移动硬盘出现"Read-only file system"问题open in new window

    解决步骤如下

    1. 确保移动硬盘链接,查看硬盘挂在的节点,操作如下
    diskutil info /Volumes/YOUR_NTFS_DISK_NAME
    
    1

    找到 Device Node

    Device Node:              /dev/disk1s1
    
    1

    比如我这里的硬盘默认挂在在/Volumes/Elements 我查看我的硬盘挂在节点信息如下

    $ diskutil info /Volumes/Elements
       Device Identifier:        disk2s1
       Device Node:              /dev/disk2s1
       Whole:                    No
       Part of Whole:            disk2
     
       Volume Name:              Elements
       Mounted:                  Yes
       Mount Point:              /Volumes/Elements
     
       Partition Type:           Microsoft Basic Data
       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
       Disk / Partition UUID:    F082E054-36E6-419F-A2CD-5B9A82576C4F
     
       Disk Size:                1.0 TB (1000168488960 Bytes) (exactly 1953454080 512-Byte-Units)
       Device Block Size:        512 Bytes
     
       Volume Total Space:       1.0 TB (1000168484864 Bytes) (exactly 1953454072 512-Byte-Units)
       Volume Used Space:        424.7 GB (424701173760 Bytes) (exactly 829494480 512-Byte-Units) (42.5%)
       Volume Available Space:   575.5 GB (575467311104 Bytes) (exactly 1123959592 512-Byte-Units) (57.5%)
       Allocation Block Size:    4096 Bytes
     
       Read-Only Media:          No
       Read-Only Volume:         Yes
     
       Device Location:          External
       Removable Media:          Fixed
    
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34

    找到

    Device Node:              /dev/disk2s1
    
    1

    这个信息保留下来,后面会使用

    1. 然后将硬盘弹出,但是不要拔掉移动硬盘连接,操作如下
    hdiutil eject /Volumes/YOUR_NTFS_DISK_NAME
    
    1

    我这里的执行如下

    $  hdiutil eject /Volumes/MYHD/
    "disk2" unmounted.
    "disk2" ejected.
    
    1
    2
    3
    1. 创建一个目录,稍后将mount到这个目录
    sudo mkdir /Volumes/MYHD
    
    1
    1. 将NTFS硬盘 挂载 mount 到mac
    sudo mount_ntfs -o rw,nobrowse /dev/disk2s1 /Volumes/MYHD/
    
    1
    1. 可以进行任意的写入操作了,比如我这里进行了copy操作
    cp ~/Movies/小XXX黄XXX片.mp4 /Volumes/MYHD/xx/xxx/
    
    1
    1. 将NTFS硬盘从 mac 上卸载 umount
    sudo umount /Volumes/MYHD/
    
    1

    链接:https://www.xiaorongmao.com/blog/49

    edit icon编辑此页open in new window
    上次编辑于: 2022/4/27 15:33:00
    贡献者: clay-wangzhi
    备案号:冀ICP备2021007336号
    Copyright © 2023 Clay