Did a little more reading and now I think it may be a bad partition table, not a bad super block. Still looking for help on how to restore my drive to working status.
-----
I used the following guide to try using a backup superblock to restore my disk.
http://www.cyberciti.biz/faq/recover...ted-partition/
However, it failed complaining of the same problem.
Code:
$ sudo fsck -b 32768 /dev/sda
fsck from util-linux-ng 2.17.2
e2fsck 1.41.14 (22-Dec-2010)
The filesystem size (according to the superblock) is 122096646 blocks
The physical size of the device is 122096381 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? yes
So if its not the super block that's corrupt, its probably the partition table, right? I found the following thread of someone else who experienced a very similar problem to me, although the cause of the problem was different (he was resizing a partition manually). I took a look at the partition table for my unmountable drive.
http://gparted-forum.surf4.info/viewtopic.php?id=14172
Code:
$ sudo sfdisk -d /dev/sda
# partition table of /dev/sda
unit: sectors
/dev/sda1 : start= 0, size= 0, Id= 0
/dev/sda2 : start= 0, size= 0, Id= 0
/dev/sda3 : start= 0, size= 0, Id= 0
/dev/sda4 : start= 0, size= 0, Id= 0
Wow. Well that doesn't look right. I used the Ubuntu disk utility to format the entire sda disk as a ext4 filesystem earlier (so I would assume that would only create a single partition?) and copied all my data there, then checked that I could access the data from the drive before I began my clean OS install.
Ran some fdisk commands on the drive as well to see if it had anything interesting to say.
List partition tables (yes, it shows no partitions):
Code:
$ sudo fdisk -l /dev/sda
Disk /dev/sda: 500.1 GB, 500106780160 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
Give partition size in blocks:
Code:
$ sudo fdisk -s /dev/sda
488385527
Bookmarks