You are not logged in.

#1 2019-06-28 19:58:51

sushawgrsb
Member
Registered: 2018-07-11
Posts: 27

Data loss after converting gpt to mbr with gdisk

Hi
I converted my gpt HDD to mbr with gdisk.
This is how I did it:
Installed gdisk on my arch and then i typed gdisk /dev/sda.
Then I choosed these: r. g. t.
Then choosed the partitions and finally w.

Unfortunately I didnt make any backup(I know I'm a stupid sad( )

After reboot every thing was lost. I had a windows 10 Bootable USB. And this is what it is showing to me:
https://imgshare.io/image/img-20190628-234941-703.S1Ho5

After seeing this I immediately turned off the laptop and did no installation. Now my system have no os.
Is there any chance to undo this? :''((((((

Offline

#2 2019-06-28 20:36:48

sushawgrsb
Member
Registered: 2018-07-11
Posts: 27

Re: Data loss after converting gpt to mbr with gdisk

Any suggestions

Offline

#3 2019-06-28 21:24:37

xerxes_
Member
Registered: 2018-04-29
Posts: 1,076

Re: Data loss after converting gpt to mbr with gdisk

First of all: don't hurry, think twice for what you want to do, and DON'T WRITE NOW ANYTHING ON THAT DISK!
If you have spare machine use it, or use live distro for now.

Read about gpt partition scheme (where is stored information about partitions; should be in the beginning of disk (now may be overwritten), a copy in the end, maybe somewhere in the middle; a good documentation should tell you).

Then when you find this out do a backup of that part(s) of disk (raw image; note start and end position (address) of image(s) on disk), or even whole image of disk if you have enough space on different disk.
And then search for programs (and choose best) that could recover previous gpt partition table from backup locations found on disk.

You may try testdisk from live distro (but I don't know if testdisk support gpt partitions), but don't write anything to disk, just try if it can see all partitions and files on them. Here is how: https://www.cgsecurity.org/wiki/TestDisk_Step_By_Step

That's my suggestions. I can't tell you more details, because I don't have time now to check them, but that's more or less how I would try.

Offline

#4 2019-06-28 21:40:40

sushawgrsb
Member
Registered: 2018-07-11
Posts: 27

Re: Data loss after converting gpt to mbr with gdisk

xerxes_ wrote:

First of all: don't hurry, think twice for what you want to do, and DON'T WRITE NOW ANYTHING ON THAT DISK!
If you have spare machine use it, or use live distro for now.

Read about gpt partition scheme (where is stored information about partitions; should be in the beginning of disk (now may be overwritten), a copy in the end, maybe somewhere in the middle; a good documentation should tell you).

Then when you find this out do a backup of that part(s) of disk (raw image; note start and end position (address) of image(s) on disk), or even whole image of disk if you have enough space on different disk.
And then search for programs (and choose best) that could recover previous gpt partition table from backup locations found on disk.

You may try testdisk from live distro (but I don't know if testdisk support gpt partitions), but don't write anything to disk, just try if it can see all partitions and files on them. Here is how: https://www.cgsecurity.org/wiki/TestDisk_Step_By_Step

That's my suggestions. I can't tell you more details, because I don't have time now to check them, but that's more or less how I would try.

Thank you so much for the answer.
I will follow the instructions that you mentioned.
Thanks again

Offline

#5 2019-06-28 23:16:37

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,688
Website

Re: Data loss after converting gpt to mbr with gdisk

A photo showing us a screen from a Windows installation disk tells us nothing. Get a (modern, prefably Arch) Linux LiveCD and show us the output of 'lsblk -f' and 'fdisk -l'.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2019-06-29 09:30:29

sushawgrsb
Member
Registered: 2018-07-11
Posts: 27

Re: Data loss after converting gpt to mbr with gdisk

WorMzy wrote:

A photo showing us a screen from a Windows installation disk tells us nothing. Get a (modern, prefably Arch) Linux LiveCD and show us the output of 'lsblk -f' and 'fdisk -l'.

Thank u for the answer.

fdisk -l
https://transfer.sh/95rDY/sh.txt


lsblk
https://transfer.sh/OlgE8/lssushi.txt

Offline

Board footer

Powered by FluxBB