LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-08-2009, 06:13 AM   #1
wongdg
Member
 
Registered: May 2006
Location: Kuching, Malaysia
Distribution: Debian 2.4 & 2.6
Posts: 42

Rep: Reputation: 16
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!
 
Old 10-18-2009, 05:19 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,462
Blog Entries: 54

Rep: Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899Reputation: 2899
Well done posting your fix!

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


Reply

Tags
corrupted


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
mount disk - corrupted file EXT3 file system RAFAL Linux - General 3 04-08-2009 03:27 PM
file system (superblock) corrupted? ubyt3m3 Linux - Newbie 9 06-10-2008 10:52 PM
NTFS partition/file table spontaneously corrupted lm317t Linux - Software 3 01-05-2006 09:11 AM
file system size larger than fysical size:superblock or partition table corrupt klizon Linux - General 0 06-18-2004 04:18 PM
Corrupted superblock lnb Linux - Newbie 3 05-06-2004 05:29 AM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration