Trying to recover a HFS+ Partition (Partition can't be mounted)

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 https://www.cgsecurity.org/testdisk.pdf
Locked
Message
Author
djbroca
Posts: 8
Joined: 24 Jan 2019, 18:30

Trying to recover a HFS+ Partition (Partition can't be mounted)

#1 Post by djbroca »

Hi,

Firstly I want to thank you all that made this tool and support us overall.
I'm trying to recovery a HD (HFS+ Partition) who I had a mistake to format it to exfat/fat32, thinking it was my pendrive. Yeh, I'm a fool like many people! hehe
Occurs that apparently it recovered cause now I can see the partition MEDIA on Disk Utility but I can't mount the partition.
What can I do now? I already used the First Aid/Disk Utility and appears that the MEDIA was repaired successfully but I still can't mount the partition.

Thank you very much for the attention!

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

Re: Trying to recover a HFS+ Partition (Partition can't be mounted)

#2 Post by cgrenier »

As root, you should try fsck_hfs to check and repair the filesystem.

djbroca
Posts: 8
Joined: 24 Jan 2019, 18:30

Re: Trying to recover a HFS+ Partition (Partition can't be mounted)

#3 Post by djbroca »

Thanks for your response!

I don't know how to use fsck_hfs with the target on my disk (disk5s2)
Can you explain, please?

Thanksss!

djbroca
Posts: 8
Joined: 24 Jan 2019, 18:30

Re: Trying to recover a HFS+ Partition (Partition can't be mounted)

#4 Post by djbroca »

I searched the command and got it, but it says that:

fsck_hfs /dev/disk5s2
** /dev/rdisk5s2 (NO WRITE)
Can't open /dev/rdisk5s2: Permission denied

Its curious that it puts a letter "R" first on disk5s2

djbroca
Posts: 8
Joined: 24 Jan 2019, 18:30

Re: Trying to recover a HFS+ Partition (Partition can't be mounted)

#5 Post by djbroca »

I got info on DIsk Utility and appears theses infos:

Volume name : MEDIA
Volume type : Physical Volume
BSD device node : disk5s2
File system : Mac OS Extended (Journaled)
Connection : USB
Device tree path : IODeviceTree:/PCI0@0/XHC@14
Writable : No
Is case-sensitive : No
File system UUID : 038A986F-96BD-3659-9E2C-DF10BF55383D
Volume capacity : 1.999.950.094.336
Owners enabled : No
Is encrypted : No
Can be verified : Yes
Can be repaired : Yes
Bootable : No
Journaled : No
Disk number : 5
Partition number : 2
Media name :
Media type : Generic
Ejectable : Yes
Solid state : No
S.M.A.R.T. status : Not Supported
Parent disks : disk5

djbroca
Posts: 8
Joined: 24 Jan 2019, 18:30

Re: Trying to recover a HFS+ Partition (Partition can't be mounted)

#6 Post by djbroca »

and that appears when I use the First Aid from the Disk Utility:

Repairing file system.
Volume is already unmounted.
Performing fsck_hfs -fy -x /dev/rdisk5s2
Checking Journaled HFS Plus volume.
Checking extents overflow file.
Checking catalog file.
Checking multi-linked files.
Checking catalog hierarchy.
Checking extended attributes file.
Checking volume bitmap.
Checking volume information.
The volume MEDIA appears to be OK.
File system check exit code is 0.
Restoring the original state found as unmounted.
Operation successful.

djbroca
Posts: 8
Joined: 24 Jan 2019, 18:30

Re: Trying to recover a HFS+ Partition (Partition can't be mounted)

#7 Post by djbroca »

Another information about my disk is that was formatted to EXFAT and when I used the TestDisk this partition no longer exist. Is it posible that's doing some conflict?

djbroca
Posts: 8
Joined: 24 Jan 2019, 18:30

Re: Trying to recover a HFS+ Partition (Partition can't be mounted)

#8 Post by djbroca »

UP PLEASE!!!

djbroca
Posts: 8
Joined: 24 Jan 2019, 18:30

Re: Trying to recover a HFS+ Partition (Partition can't be mounted)

#9 Post by djbroca »

UP AGAIN :(

Locked