FS Repair a Corrupted Filesystem: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== AIX == | |||
== Linux == | == Linux == | ||
# Locate the superblock | ==== Repairing a Corrupted Superblock ==== | ||
# | # Locate the superblock alternates of the filesystem | ||
# Choose a superblock | #: <tt>'''# dump2fs /dev/<device> | grep -i superblock'''</tt> | ||
# | # Choose a superblock alternate location, and check the filesystem using <tt>'''fsck'''</tt> | ||
# Attempt to mount the filesystem | #: <tt>'''# e2fsck -b <alternate location> /dev/<device>'''</tt> | ||
# Attempt to mount the filesystem | |||
# The filesystem can also be mounted by passing the location of | ==== Mounting a Filesystem with a Corrupted Superblock ==== | ||
# | # Locate the superblock alternates of the filesystem | ||
#: <tt>'''# dump2fs /dev/<device> | grep -i superblock'''</tt> | |||
# The filesystem can also be mounted by passing the location of an alternate superblock to the <tt>'''mount'''</tt> command | |||
#: <tt>'''# mount sb=<alternate location> /dev/<device> <mount location>'''</tt> | |||
== Further Reading == | == Further Reading == | ||
# [http://www.cyberciti.biz/faq/recover-bad-superblock-from-corrupted-partition/ Recover Corrupted Partition From | # [http://www.cyberciti.biz/faq/recover-bad-superblock-from-corrupted-partition/ Recover Corrupted Partition From a Bad Superblock] | ||
[[Category:AIX]] | |||
[[Category:Linux]] | [[Category:Linux]] |
Latest revision as of 18:57, 1 March 2017
AIX
Linux
Repairing a Corrupted Superblock
- Locate the superblock alternates of the filesystem
- # dump2fs /dev/<device> | grep -i superblock
- Choose a superblock alternate location, and check the filesystem using fsck
- # e2fsck -b <alternate location> /dev/<device>
- Attempt to mount the filesystem
Mounting a Filesystem with a Corrupted Superblock
- Locate the superblock alternates of the filesystem
- # dump2fs /dev/<device> | grep -i superblock
- The filesystem can also be mounted by passing the location of an alternate superblock to the mount command
- # mount sb=<alternate location> /dev/<device> <mount location>