FS Repair a Corrupted Filesystem: Difference between revisions

From UNIX Systems Administration
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
== AIX ==
== Linux ==
== Linux ==
=== Repairing a Corrupted Superblock ===
=== Repairing a Corrupted Superblock ===
Line 15: Line 16:
# [http://www.cyberciti.biz/faq/recover-bad-superblock-from-corrupted-partition/ Recover Corrupted Partition From a Bad Superblock]
# [http://www.cyberciti.biz/faq/recover-bad-superblock-from-corrupted-partition/ Recover Corrupted Partition From a Bad Superblock]


[[Category:AIX]]
[[Category:Linux]]
[[Category:Linux]]

Revision as of 13:52, 1 August 2014

AIX

Linux

Repairing a Corrupted Superblock

  1. Locate the superblock alternates of the filesystem.
    1. # dump2fs /dev/<device> | grep -i superblock
  2. Choose a superblock alternate location, and check the filesystem using fsck.
    1. # e2fsck -b <alternate location> /dev/<device>
  3. Attempt to mount the filesystem.

Mounting a Filesystem with a Corrupted Superblock

  1. Locate the superblock alternates of the filesystem.
    1. # dump2fs /dev/<device> | grep -i superblock
  2. The filesystem can also be mounted by passing the location of an alternate superblock to the mount command.
    1. # mount sb=<alternate location> /dev/<device> <mount location>

Further Reading

  1. Recover Corrupted Partition From a Bad Superblock