Skip to content

Instantly share code, notes, and snippets.

@taronaeo
Last active June 7, 2021 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taronaeo/c89d8a2b53b677e062feef35af69b84c to your computer and use it in GitHub Desktop.
Save taronaeo/c89d8a2b53b677e062feef35af69b84c to your computer and use it in GitHub Desktop.

Read + Write Support in MacOS

1. Create /etc/fstab

In the terminal, run the following command.

sudo vim /etc/fstab

The file may not be created, but it is still used by MacOS. Then, add the following line to the very bottom of the file.

LABEL=<DEVICE NAME> none ntfs rw,auto,nobrowse

2. Re-mount the drive

Unplug and replug the drive into your computer.

3. Browse the drive

In Finder, use CMD + SHIFT + G and type /Volumes/ in the popup. Press enter and you should see your drive.

If your drive does not appear, find your issue in Troubleshooting.

Troubleshooting

1. Copied file turns grey and cannot be opened.

This is a common issue where Finder messes with the type and creator attributes when writing a file.

To fix this, run the following command.

SetFile -c "" -t "" path/to/file

If the above command is not found, you will have to run the following commands first.

xcode-select --install

Refer: https://apple.stackexchange.com/questions/136157/mov-file-in-external-hd-greyed-out-and-wont-open-this-item-is-used-by-mac-o

2. Drive could not be mounted after ejecting.

Make sure your drive is GPT formatted, and try the following commands.

mount /dev/diskX # Attempts to amount the drive regularly
mount -t ntfs force /dev/diskX # Force mounts the drive
diskutil verifydisk /dev/diskX # GPT-only. Verifies the integrity of the drive
diskutil repairdisk /dev/diskX # GPT-only. Attempts to repair the drive.

Refer: https://apple.stackexchange.com/questions/305071/force-mounting-an-external-disk-that-is-not-recognized

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