Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Suddenly my Mac Mini hard drive crashed and I am trying to save data from Macintosh HD 2 in my USB case using Ubuntu. I am able to mount Macintosh HD 2 but getting this error:

You do not have the permissions necessary to view the contents of "Macintosh HD 2".

How to backup my data using Ubuntu?

share|improve this question

You could do a byte by byte copy of your partition using dd. IMHO that would be the best choice of backup as it doesn't require any assumptions on the partition.

I'm not very familiar with this new Core Storage the macs use nowadays. I'm not really sure if you can read it without the proper EFI or whatever hardwars. So you might need to use a Mac to get your files out.

share|improve this answer

You should be able to copy the files with the command

sudo cp -R /path/to/macdrives /home/user/newdirectory

obviously you need to modify the paths as needed.

You then need to take ownership of the files with a

cd /home/user/newdirectory
chown username *

(this will affect the copy of the files, not the original files on the disk).

Notice that this will likely break your original permissions on system files, so if you want to restore the OSX partition to a new Mac this isn't a convenient way. But if you just want to copy important data, then it is the easiest method.

share|improve this answer
Thanks a lot for replying, I ran this command gksudo nautilus this command showed all the data but I cant copy data to my usb. After mounting the Macintosh HD 2 using disk utility I get this path /media/Macintosh HD 2 so how I will specify path. – Sweet Jenny May 26 '13 at 10:19
OK, so the path is /media/Machintosh HD 2. To make sure, open a terminal and use the command ls "/media/Machintosh HD 2". You should see a list of folders like Applications, Library, home... Now let's suppose the path to the USB drive is /media/USB, and you created a backup folder inside it, then use the first command I provided like this: sudo cp -R "/media/Machintosh HD 2" /media/USB/backup. – Pincopallino May 26 '13 at 11:10
Remember to use the doublequotes " if the path contains spaces! – Pincopallino May 26 '13 at 11:13
Please tell me is there any command to get permission of all files and I backup those important files instead copying all data. – Sweet Jenny May 26 '13 at 15:06
Please tell me that is tati.tati * means – Sweet Jenny May 27 '13 at 13:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .