2

Edited

What i want to Do : Run ubuntu via a DVD-r on an iMac to retrieve data, because a system file has corrupted

What I've Done: Put the ubuntu disk in my working Macbook Pro to try retrieving data off of it.

What i did to get the error below: tried to Mount and read my Macbook Pro HDD while running (not installed) ubuntu

`Error mounting /dev/sda2 at /media/ubuntu/Corbans MBP: Command-line `mount -t "hfsplus" -o "uhelper=udisks2,nodev,nosuid" "/dev/sda2" "/media/ubuntu/Corbans MBP"' exited with non-zero exit status 32: mount: wrong fs type, bad option, bad superblock on /dev/sda2, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so`

I Tried on my Macbook Pro and not the iMac because i have the Pro with me. the iMac is elswhere, and i wanted to experiment with how it would work

so if there is a way around this, id appreciate any help i can get

Try to make your answer or fix as simple as possible please =)

Thanks in Advance

1 Answers1

3

Read the drive

So first of all, to be able to read mac drives in Ubuntu you need hfsprogs.

sudo apt-get install hfsprogs

NOTE: if you get an error like E: Unable to locate package hfsprogs then you may need to enable the universe repository - see How do I enable the universe repository?

When this is installed, you should be able to open the drive with the file explorer (nautilus), just by clicking on the drive.

However, in your case, the disk is probably damaged. Ubuntu can try to fix some things, but there is no guarantee this will work, and it is a lot trickyer.

Fix the drive

Run the following command (replacing XY with the correct device) to fix the drive:

sudo fsck.hfsplus -f /dev/sdXY

Replace XY with the correct device. From your error message, I gather it is sda2, although it might be different on your iMac

If this doesn't fix your drive, I think it's hopeless. If the system files are corrupted, that means the drive is dying really fast. It could already be to late...