Skip to content

Instantly share code, notes, and snippets.

@stevenyap
Created February 21, 2014 08:47
Show Gist options
  • Select an option

  • Save stevenyap/9130830 to your computer and use it in GitHub Desktop.

Select an option

Save stevenyap/9130830 to your computer and use it in GitHub Desktop.
Writing files to a NTFS hard disk or thumb drives

This resolves the issues of writing files to NTFS disks on mac.

  • Plug in your drive
  • Run the script below (Replace DRIVENAME with your drive name)
  • Unplug your drive and plug it in again
  • You won't see your drive on the desktop or finder
  • Type open /Volumes and you will be able to see your drive
  • Write your files!!!

Tip: To unmount the disk, type diskutil unmount /Volumes/DRIVENAME

sudo echo "LABEL=DRIVENAME none ntfs rw,auto,nobrowse" >> /etc/fstab

or

diskutil info /Volumes/DRIVENAME | grep UUID
sudo echo "UUID=ENTER_UUID_HERE none ntfs rw,auto,nobrowse" >> /etc/fstab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment