LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-10-2009, 08:01 AM   #1
win281
LQ Newbie
 
Registered: Feb 2008
Posts: 3

Rep: Reputation: 0
how do i replace corrupted superblock of my ext3 partition


how do i replace the corrupted superblock of my "/" partition with a backup superblock
can fsck deal with this type of problem
when i bot my system i get message

press ctrl + d to enter in maintanece mode


i cannot edit fstab file nor i am able to create another one
since it opens the /etc/fstab file read only with no contents

if i boot from cd and go to rescue mode

it says no linux system installed

but it goes into single user mode, it shows partitions with 'df -h'
 
Old 05-10-2009, 08:12 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
You can supply a backup superblock in the e2fsck command line:
-b superblock
Instead of using the normal superblock, use an alternative superblock specified by superblock. This option is normally used when the primary superblock has been corrupted. The location of the backup superblock is dependent on the filesystem's blocksize. For filesystems with 1k blocksizes, a backup superblock can be found at block 8193; for filesystems with 2k blocksizes, at block 16384; and for 4k blocksizes, at block 32768.

You might want to also include the option for a dry run at first.
 
  


Reply


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
LXer: Linux: Recover Corrupted Partition From A Bad Superblock LXer Syndicated Linux News 0 08-22-2008 11:50 PM
ext3 superblock/partition table problem sxeraverx Linux - Software 7 03-14-2008 11:31 PM
Can't access partition: superblock corrupted lixy Linux - General 3 03-15-2005 04:12 AM
Resizing Ext3 partition to replace XP Sigmund Linux - General 7 01-26-2005 11:48 AM
Corrupted superblock/filesystem? (Ext3) elrohir_telperi Linux - General 2 05-04-2004 06:29 AM


All times are GMT -5. The time now is 01:10 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration