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
AI Thread Summary
Changes made to the partition table in Linux using fdisk can lead to significant issues upon reboot. It is possible to restore the partition table using information from /proc/partitions, but caution is necessary as formatting can occur during the process. In this case, the first two partitions were formatted, but backups mitigated data loss. To prevent future problems, it is advisable to create a backup of the partition table before making changes and to have a Live-CD or Live-USB with a partition manager like Gparted available for recovery options.
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.
 
In my discussions elsewhere, I've noticed a lot of disagreement regarding AI. A question that comes up is, "Is AI hype?" Unfortunately, when this question is asked, the one asking, as far as I can tell, may mean one of three things which can lead to lots of confusion. I'll list them out now for clarity. 1. Can AI do everything a human can do and how close are we to that? 2. Are corporations and governments using the promise of AI to gain more power for themselves? 3. Are AI and transhumans...
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Back
Top