4
submitted 5 days ago* (last edited 4 days ago) by [email protected] to c/[email protected]

cross-posted from: https://lemmy.ml/post/31633930

My disk was dos labelled (MBR). So I 'fdisk'-ed my disk and entered 'o' to convert it to GPT and wrote it to the disk. Now all the partitions are gone. I want those back. I care about the data rather than the partitions

top 2 comments
sorted by: hot top new old
[-] [email protected] 2 points 5 days ago

If you know the offsets and sizes of the partitions that you used to have, then you can just recreate them in your new partition table. The filesystems are still where you left them, so once the partition table is reconstructed, everything should start working again.

If you don't know that info, I am not sure what you do. Some kind of recovery utility could probably find your data without too much issue, but I am not too familiar with the current state of disk recovery tools.

[-] [email protected] 4 points 4 days ago

Thanks. I used testdisk

this post was submitted on 13 Jun 2025
4 points (100.0% liked)

Arch Linux

8763 readers
6 users here now

The beloved lightweight distro

founded 5 years ago
MODERATORS