Is there a way to recover a corrupted partition table in Linux?

  • Thread starter Thread starter j777
  • Start date Start date
  • Tags Tags
    Partition Table
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
3 replies · 3K views
j777
Messages
148
Reaction score
0
Hi,

I just made some changes to my partition table in linux using fdisk that are very bad. For the moment everything is fine but when I reboot those changes will take effect. Is there any way to restore my partition table from the good version that the kernel is still using?


Thanks
 
Physics news on Phys.org
Well I was able to restore the partition table using the information in /proc/partitions but unfortunitely the script that screwed things up also formatted the first 2 partitions. Thankfully those were only the windows partitions and I have backups for the important stuff that was on them.
 
It is possible to make a backup of the partition table before you make changes?

(sorry, I meant 'is it', this wasn't meant to be a slur)
 
Last edited:
It's better to have a Live-CD/Live-USB of partition manager, such as Gparted, at hand in case you face the same situation in future.