Skip to content

Instantly share code, notes, and snippets.

@stdrc
Last active April 10, 2021 15:38
Show Gist options
  • Save stdrc/8e62457823843ef345f214e85de38fad to your computer and use it in GitHub Desktop.
Save stdrc/8e62457823843ef345f214e85de38fad to your computer and use it in GitHub Desktop.
在 macOS 上挂在 NTFS 分区为可写

Write to NTFS support MacOS

1. Get the partition UUID

Connect the external drive to MacOS. It should mount read-only. Start "System Information", clic on Hardware -> Storage, select your drive in the list and copy its UUID.

Another way to get the UUID is to use the diskutil CLI tool:

~$ diskutil list 
~$ diskutil info diskXsY

where diskXsY is the ID found with the list command.

2. Create a /etc/fstab

Start a terminal and open/create /etc/fstab (you'll need root powers), and add:

UUID=<THE UUID YOU COPIED> none ntfs rw,auto,nobrowse

If the device does not appear on step 4., you can replace the UUID by the partition LABEL.

3. Mount the drive

Unmount and remount the drive.

4. Browse to the drive

In Finder, press cmd-shift-g and type /Volumes/ in the popup. Press enter, and voila. You are on your drive.

If your drive does not appear, start the Console app and look for the NTFS log telling you the drive is unclean. If it exists, you must connect the harddrive to a windows PC and unmount it properly before this works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment