Grabbing NTFS Hidden Files on a Mac

223rd Nov 2012Various, , , , ,

Let’s say you need to grab some files from an old NTFS hard drive. You hook it up to your dock or external enclosure, and traverse the directory structure only to find that certain folders are entirely in accessible. What do you do now?

Why?
Well, the easy answer is that OS X doesn’t fully support the NTFS file system. What you’re seeing is a result of this. Windows extended options for files and folders, in this case, don’t mesh well with the Linux permissions system that is in use on the Macintosh OS.

How?
While there are some third-party applications that allow you to use the NTFS drive with full support from your Macintosh, I prefer the Terminal method. Basically, what we do is tell the system to recursively (-r) traverse the file system using the current file system format (-x) of the directory (DIR) of the drive (DRIVE), and store it all in the home directory (~) within a folder named (BACKUP) as seen in the following example where we’ll copy the ProgramData folder from our NTFS drive:

cp -R -X /Volumes/DRIVE/ProgramData ~/BACKUP/

And that’s it. Just swap out ProgramData with whatever directory path you wish to copy, and you’re good to go.

2 Comments Comments Feed

  1. krl (September 4, 2015, 9:10 am). Reply

    In order to preserve the modification time on the files it is better to use: sudo cp -p -R -X /Volumes/DRIVE/ProgramData ~/BACKUP/

    • Anthony G. Cyphers (September 14, 2015, 5:40 pm). Reply

      Karl,
      Thanks for that! I’ve not had the need to do this in quite some time, which means I’ll have to several times in a short period soon enough.

Add a Comment

Before you post, please prove you are sentient.

what is 8 + 5?