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.


"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.