I have a satnav device which the TomTom Home software does not recognise since it was updated. The TomTom help instructed me to download a folder and copy it to the root directory of my Mac. Using Cmd-G shows me the root directory but does not allow me to copy the folder into it.

How do I copy this folder into my root directory? (I'm running El Capitan.)

up vote 1 down vote accepted

OS X prevents you from copying files and folders to the root directory or your "Macintosh HD". It prefers you write files only in your user directory to prevent accidental file deletions, overwrites, etc.

However, if you have a file or folder on your Desktop, and you are an administrator on the computer, you can copy the file using your super user privileges.

Simply open up the Terminal application. You can use Spotlight to search for it or go to your Applications folder, then Utilities folder.

Once in Terminal, you'll be faced with a prompt.

Run the command below to put the file or folder in your root directory. Put the name of the file or folder in place of "FILE".

sudo cp -p Desktop/FILE /

Press the return key. You'll be prompted for your password.

sudo is a command to provide super user privileges. cp is copy. -p means to preserve the file owner and permissions.

If you are required to change the owner or permissions of the file, you can run a command like chown change owner or chgrp change group or chmod change file permissions.

  • Thank you. It worked as per your instructions but didn't solve my problem as Tom Tom promised. – Vagawi Oct 28 '15 at 2:59
  • Did the application give you an error message? I find it odd that someone would write software that wants access to the root area. – macboost84x Oct 28 '15 at 3:02

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.