LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   SOLVED: either superblock or file system table is corrupted (https://www.linuxquestions.org/questions/linux-software-2/solved-either-superblock-or-file-system-table-is-corrupted-760516/)

wongdg 10-08-2009 06:13 AM

SOLVED: either superblock or file system table is corrupted
 
debian testing (squeeze)

I backup my root which is /dev/sda1 using "dd if=/dev/sda1 |gzip -c > root.img.gz"

and when I restored the image by "gunzip -c root.img.gz | dd of=/dev/sda1"
and tried boot up my system told me

filesystem size is 448890 blocks
the physical size is 45680 blocks

either superblock or file system table is corrupted!

regardless of how i used the
dumpe2fs | grep superblock
to lookup the backup superblock and then
e2fsck -b the_backup_superblock_number

it is returned the same error!

then I read about mounting dd image and cpio

I use either ubuntu or clonezilla liveCD to boot
I then gunzip the root.img.gz
mount the root.img to a mount_point
mkfs.ext3 my /dev/sda1
mkdir target_drive
mount /dev/sda1 target_drive
cd mount_point
find . -print | cpio -dumpv ../target_drive

#grub
grub > find /boot/grub/stage1
grub > root (hd0,0)
grub > setup (hd0)
grub > exit
# reboot

and viola!

unSpawn 10-18-2009 05:19 AM

Well done posting your fix!

//NTLB: and off the 0-reply list now.


All times are GMT -5. The time now is 08:13 PM.