Open LukeShortCloud opened 11 months ago
Related to this, if you have a MBR partition table you can back it up using this command:
$ sudo dd if=/dev/<DEVICE> of=/root/mbr.img bs=512 count=1
For GPT:
$ sudo sgdisk --backup=gpt.img /dev/<DEVICE>
$ sudo sgdisk --load-backup=gpt.img /dev/<DEVICE>
$ sudo sgdisk -G /dev/<DEVICE>
Using
testdisk
.https://www.simplified.guide/linux/disk-recover-partition-table