If you have a dirty superblock you might try to do ôfsckö. If this does not work try the following (This procedure does not promise 100% success).
(The following example relats to a bad filesystem in slv4.0)
1. Copy the original Superblock into a file (calld sd0 in /tmp - places can be changed):
dd if=/dev/rslv4.0 of=/tmp/sb0 bs=4k count=1 skip=1
Note: if=Input File, of=Output file, bs=Block Size.
2. Copy the backup Superblock into a file (calld sd1 in /tmp - places can be changed):
dd if=/dev/rslv4.0 of=/tmp/sb1 bs=4k count=1 skip=31
3. Copy the Backup Superblock file over the original Superblock:
dd if=/tmp/sb1 of=/dev/rslv4.0 bs=4k seek=1
4. Do ôfsckö again on this filesystem
Note:
If you want to restore the original Superblock, do:
dd if=/tmp/sb0 of=/dev/rslv4.0 bs=4k seek=1
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.