Article 5HYWJ Lost partitions

Lost partitions

by
questionderby
from LinuxQuestions.org on (#5HYWJ)
Hi, so I was making an install script and accidentally ran it as root... I now have a new partition table(I think) and two partitions. How can I undo this/ recover those partitions? I realized this when I rebooted, grub froze and didn't show anything. Tried a liveos to mount a partition, here's the message:

"mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error."

I wanted to do an fsck, and got a message. I would copy it here but I don't wanna interact with the hard drive any more. Something about the partition sizes, saying that the superblock says partition is "big number" blocks, but the partition is "smaller number".

I had three partitions before, one was 20G at the beginning of the drive, one was 35G right next to it, the last one took up the rest of the drive. Now I have 1 partition at the beginning of the drive, 30G. And the other one takes up the rest of the drive. I don't know what to do or where to go or what to read up on, please help or redirect me to somewhere.latest?d=yIl2AUoC8zA latest?i=KmZthVNVU7A:7MR1TjMNbwk:F7zBnMy latest?i=KmZthVNVU7A:7MR1TjMNbwk:V_sGLiP latest?d=qj6IDK7rITs latest?i=KmZthVNVU7A:7MR1TjMNbwk:gIN9vFwKmZthVNVU7A
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments