Retrieving the Address of the Backup Superblock for HFS

How to use TestDisk to recover lost partition
Forum rules
When asking for technical support:
- Search for posts on the same topic before posting a new question.
- Give clear, specific information in the title of your post.
- Include as many details as you can, MOST POSTS WILL GET ONLY ONE OR TWO ANSWERS.
- Post a follow up with a "Thank you" or "This worked!"
- When you learn something, use that knowledge to HELP ANOTHER USER LATER.
Before posting, please read
Posts: 1
Joined: 11 Feb 2016, 06:04

Retrieving the Address of the Backup Superblock for HFS

#1 Post by haniewais »

Hello all,

I've been dealing with the 1/2 working hard drive, maybe i should say (1/8)

anyway, the super-block for the main partition is bad, its all 0000000's according to the testdisk dump report,

test disk does find the backup superblock, and it allows me to attempt and copy the backup superblock to the corrupted superblock, but then it fails,

i just want to mount the hard drive in linux, but i need to point it to the backup superblock address instead, get a few files off, and be done with it,

how can I get the address of the backup superblock using test disk? i don't want to repair the corrupted superblock!

I have the raw dump from test disk, can i just make a new superblock on a new location?

Hani Ewais

User avatar
Site Admin
Posts: 5432
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France

Re: Retrieving the Address of the Backup Superblock for HFS

#2 Post by cgrenier »

The HFS+ backup superblock is using the last 1024 bytes of the partition (the last 2 sectors, for a disk using 512 bytes sector).
If you need the partition location/size/... in sectors, run as root "testdisk -lu"