LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how do i replace corrupted superblock of my ext3 partition (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-replace-corrupted-superblock-of-my-ext3-partition-724972/)

win281 05-10-2009 07:01 AM

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'

jschiwal 05-10-2009 07:12 AM

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.


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