HFS back to FAT32

Using TestDisk to repair the filesystem
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
Post Reply
Message
Author
ricbax
Posts: 2
Joined: 09 Nov 2024, 15:29

HFS back to FAT32

#1 Post by ricbax »

In my error I wanted to create a install media for a Mac not realizing that the drive I used already had data on it.

It was a FAT32 file system and then had HFS written to it. It has lost the volume and the drive letter association however the partitions and files are intact.

I have since used qphotorec.exe to backup the contents of the drive however I wanted to know if there is anyway to get the filesystem/drive back to the way it was before my stupidity.

The reason I want to restore is that the drive contains educational videos and have lost all folder structure and naming conventions for the courses as a part of the backup and have no logical order now. I know, not your problem but mine although any help using testdisk to revive my error would be awesome!

So far the log file for testdisk gave me the info below, but I am new to it and not sure what exactly I'm doing:

Analyse Disk \\.\PhysicalDrive2 - 1000 GB / 931 GiB - CHS 121597 255 63
Current partition structure:
Bad MAC partition, invalid block0 signature
read_part_mac: bad DPME signature

Any direction or help would be much appreciated. Thanks.
recuperation
Posts: 2902
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: HFS back to FAT32

#2 Post by recuperation »

ricbax wrote: 09 Nov 2024, 16:30 In my error I wanted to create a install media for a Mac not realizing that the drive I used already had data on it.

It was a FAT32 file system and then had HFS written to it. It has lost the volume and the drive letter association however the partitions and files are intact.
Why should partitions and files be intact? The creation of installation media in the Microsoft windows world involves overwriting a device typically with gigabytes in a sector by sector manner. Everything written is gone where overwriting took place.
I have since used qphotorec.exe to backup the contents of the drive however I wanted to know if there is anyway to get the filesystem/drive back to the way it was before my stupidity.
In a windows world that is impossible. Overwritten is overwritten. Overwriting a device typically starts at the beginning where at least one FAT and the main directory is located.

The reason I want to restore is that the drive contains educational videos and have lost all folder structure and naming conventions for the courses as a part of the backup and have no logical order now. I know, not your problem but mine although any help using testdisk to revive my error would be awesome!

So far the log file for testdisk gave me the info below, but I am new to it and not sure what exactly I'm doing:

Analyse Disk \\.\PhysicalDrive2 - 1000 GB / 931 GiB - CHS 121597 255 63
Current partition structure:
Bad MAC partition, invalid block0 signature
read_part_mac: bad DPME signature

Any direction or help would be much appreciated. Thanks.
Running the standard procedure including deep search should not yield any result, the "p"-key ("list files") either not available or its use not showing the folder structures you know:
https://www.cgsecurity.org/wiki/TestDisk_Step_By_Step

You might try out other software solutions or write your own to gather subdirectory information containing file and folder names and link this information to usable result files of (Q)-Photorec.
ricbax
Posts: 2
Joined: 09 Nov 2024, 15:29

Re: HFS back to FAT32

#3 Post by ricbax »

I appreciate the response to my issue.

My solution was found here: https://www.reddit.com/r/datarecovery/c ... _recovery/
recuperation
Posts: 2902
Joined: 04 Jan 2019, 09:48
Location: Hannover, Deutschland (Germany, Allemagne)

Re: HFS back to FAT32

#4 Post by recuperation »

Thank you for your feedback!
Check, if your videos can be played!
What has been overwritten by hfs-structures cannot be recovered.
Post Reply