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
Click For Summary

Discussion Overview

The discussion revolves around the recovery of a corrupted partition table in Linux, specifically addressing methods to restore a partition table after making unintended changes using fdisk. The scope includes practical recovery techniques and preventive measures for future occurrences.

Discussion Character

  • Exploratory, Technical explanation, Debate/contested, Practical advice

Main Points Raised

  • One participant describes making changes to their partition table with fdisk and expresses concern about the changes taking effect upon reboot.
  • Another participant shares that they were able to restore the partition table using information from /proc/partitions, but notes that the first two partitions were formatted, which were Windows partitions, and mentions having backups for important data.
  • A participant inquires about the possibility of backing up the partition table before making changes.
  • Another suggests having a Live-CD/Live-USB of a partition manager like Gparted available for future situations to avoid similar issues.

Areas of Agreement / Disagreement

Participants do not reach a consensus on a single method for recovery, as various approaches and experiences are shared without definitive agreement on the best practice.

Contextual Notes

Limitations include the lack of detailed steps for the recovery process and the dependence on specific tools and configurations, which may vary among users.

Who May Find This Useful

Users dealing with partition management in Linux, particularly those interested in data recovery and preventive measures for partition table changes.

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
 
Computer science 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.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 18 ·
Replies
18
Views
4K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 123 ·
5
Replies
123
Views
20K
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
8
Views
3K
Replies
6
Views
6K
  • · Replies 12 ·
Replies
12
Views
5K