Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I have a HFS+ formatted drive that just died on me. I have a back up but it's a about a week old. Unfortunately, I have a few files that I've changed and added since then that I would like to rescue before throwing it out.

Running fsck on it gives this output:

tangrs:~ new_tangrs$ sudo fsck_hfs -d /dev/disk1s2
Password:
journal_replay(/dev/disk1s2) returned 0
** /dev/rdisk1s2
    Using cacheBlockSize=32K cacheTotalBlock=32768 cacheSize=1048576K.
   Executing fsck_hfs (version diskdev_cmds-557~393).
** Checking Journaled HFS Plus volume.
** Checking extents overflow file.
** Checking catalog file.
   Missing thread record (id = 18)
   File record has hard link chain flag (id = 14050171)
   File record has hard link chain flag (id = 14050178)
   File record has hard link chain flag (id = 14050182)
...
   File record has hard link chain flag (id = 9464626)
   File record has hard link chain flag (id = 9464630)
   File record has hard link chain flag (id = 9464633)
   Missing thread record (id = 2056093)
   Missing thread record (id = 2056272)
   Missing thread record (id = 3885380)
...
   Missing thread record (id = 21227307)
   Missing thread record (id = 21479379)
   Missing thread record (id = 21504654)
   Incorrect number of thread records
(4, 154)
    CheckCatalogBTree: dirCount = 3230, dirThread = 1815
   Incorrect number of thread records
(4, 154)
    CheckCatalogBTree: fileCount = 3640, fileThread = 1935
   Unused node is not erased (node = 40959)
** Checking multi-linked files.
   Incorrect number of file hard links
    filelink prime buckets do not match
** Checking catalog hierarchy.
** The volume   could not be verified completely.
    volume check failed with error 2 
    volume type is pure HFS+ 
    primary MDB is at block 0 0x00 
    alternate MDB is at block 0 0x00 
    primary VHB is at block 2 0x02 
    alternate VHB is at block 1329072302 0x4f3808ae 
    sector size = 512 0x200 
    VolumeObject flags = 0x07 
    total sectors for volume = 1329072304 0x4f3808b0 
    total sectors for embedded volume = 0 0x00 
CheckHFS returned -1317, fsmodified = 0
tangrs:~ new_tangrs$

Obviously the volume is beyond the help of disk utility.

When I try to mount it, it just kicks me out with a weird error message.

tangrs:~ new_tangrs$ sudo mount -o ro -t hfs /dev/disk1s2 /Volumes/HDD
mount_hfs: No such file or directory
tangrs:~ new_tangrs$ sudo dmesg | tail
hfs_mountfs: encountered failure 2 
hfs_mount: hfs_mountfs returned 2
hfs_mounthfsplus: cat_idlookup returned (2) getting rootfolder 
hfs_mounthfsplus: encountered errorr (2)
hfs_mountfs: encountered failure 2 
hfs_mount: hfs_mountfs returned 2
hfs_mounthfsplus: cat_idlookup returned (2) getting rootfolder 
hfs_mounthfsplus: encountered errorr (2)
hfs_mountfs: encountered failure 2 
hfs_mount: hfs_mountfs returned 2
tangrs:~ new_tangrs$

Can anyone help out here?

share|improve this question
1  
If I were you, I'd stop doing anything that can potentially write data to your disk until you can make a byte-for-byte image of it. Then mess around with fsck / data recovery. –  Kevin Chen Jan 16 '13 at 6:04
    
@tangrs And here is a guide on how to copy data byte-for-byte. –  Bart Arondson Jan 16 '13 at 10:59
    
Thanks. I'll try that. –  tangrs Jan 17 '13 at 10:14
add comment

2 Answers 2

up vote 2 down vote accepted

Disk warrior has saved my bacon more than once:

http://www.alsoft.com/DiskWarrior/

share|improve this answer
    
I borrowed a copy of this off my friend and ran it on a duplicate image. Unfortunately, the filesystem was so messed up, it couldn't recover much. Still, I got a few files that I needed. Thanks –  tangrs Jan 18 '13 at 6:34
add comment

I am new here and also to the mac world. Please try www.krollontrack.com who have mac recovery software. They are great in the pc world. Also, try a disk copier to make a bit copy of the old disk to a new one and try recovery from them.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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