Page 1 of 1

Lost partition

Posted: 27 Jun 2018, 08:51
by dr5mn
Hi

I ran into some problems after attempting a partition recovery.

Here is what happened more or less:
I was working on my Windows laptop. I inserted a USB flash drive which I had previously burned as a bootable Linux pen drive. I needed the pen drive for something else, so I wanted to wipe it, in order to be able to copy other files to it.

I was unable to format using Windows format, as it was not readable. Maybe because it was ext4 file system, I don't know.

I opened diskpart.

I listed the disks, and then selected the pen drive.

I then listed the volumes (or partitions, I cannot remember exactly)

I selected a volume (or partition) on the flash drive.

I ran the CLEAN command, hoping that the pen drive would be wiped.

Without me knowing, selecting the volume/partition, unselected the disk that was selected in step 4. Naturally the wrong disk was being wiped.

My laptop's hard drive had multiple partitions on it. One was the recovery, one was C:, and another was E: which just contained other data.

Running CLEAN then started to clean my laptop's hard drive!!! Luckily, it couldn't touch C: because that was the current operating system. It did however wipe E:, at least that's the one I know about. Not sure about the others.

I immediately removed the hard drive from the laptop.

I then ran TESTDISK in order to recover the wiped partition. Here is where the problem starts.

It found the missing partition, but after repairing it, my disk wouldn't boot. I even opened the hard drive in Linux with gparted, and tried to set the flag as bootable, to no avail.

I suspect its something small, like a flag, but I would like if you could provide some guidelines on how to restore my drive to the state it was before, with all partitions in tact, and also so that the computer can boor normally.

I do not blame TestDisk, only myself. I am not an expert, and I know just enough to be dangerous!

I will attach a log file in a subsequent post, hopefully you can make some sense of it.

I look forward to your response.

Re: Lost partition

Posted: 27 Jun 2018, 17:13
by cgrenier
Have you tried what is written in the chapter "How to make the system bootable again" from https://www.cgsecurity.org/testdisk.pdf ?

Re: Lost partition

Posted: 04 Jul 2018, 20:10
by dr5mn
Hi

That was the first thing I tried.