pipinoob
Posts: 10
Joined: Sat Apr 25, 2015 3:37 am

HELP! Unplugged HFS+ USB Drive from RPi is corrupted

Sat May 02, 2015 5:51 am

I plugged then unplugged my HFS (Non-journaled) external USB drive with its own power outlet from the RPi2, now the drive is corrupted

dmesg | tail -20:

[ 14.840735] hfsplus: Filesystem was not cleanly unmounted, running fsck.hfsplus is recommended. mounting read-only.
[ 14.844873] hfsplus: invalid catalog max_key_len 18573
[ 14.844925] hfsplus: failed to load catalog file
[ 20.126286] hfsplus: Filesystem was not cleanly unmounted, running fsck.hfsplus is recommended. mounting read-only.
[ 20.128148] hfsplus: invalid catalog max_key_len 18573
[ 20.128218] hfsplus: failed to load catalog file

I tried to use Disk Utility on my Mac to repair the drive but got this

Verify and Repair volume “disk4s2”
Repairing file system.
Checking Journaled HFS Plus volume.
Invalid B-tree node size
The volume could not be verified completely.
File system check exit code is 8.
Updating boot support partitions for the volume as required.
Error: Disk Utility can’t repair this disk. Back up as many of your files as possible, reformat the disk, and restore your backed-up files.

I tried to rebuild the drive using StellarVolumeOptimizer app but no luck.

I tried some fsck.hfsplus command but it didn't help.

What should i do? I don't want to lose all the data in the drive.

tvjon
Posts: 810
Joined: Mon Jan 07, 2013 9:11 am

Re: HELP! Unplugged HFS+ USB Drive from RPi is corrupted

Sat May 02, 2015 11:34 am

Diskwarrior,

Data Rescue,

both commercial, & good tools.

Testdisk now runs on OS X as well as Linux, so you could try that first.

You really need another HD, of same or greater capacity, so you can copy good files over to it from the recovery process.

HTH

Return to “General discussion”