Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Recreating bad superblock by MoshiachNow
Posted: 7 Feb 02

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

If you want to restore the original Superblock, do:
dd if=/tmp/sb0 of=/dev/rslv4.0 bs=4k seek=1

Back to IBM: AIX FAQ Index
Back to IBM: AIX Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close