FS Repair a Corrupted Filesystem: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
## <tt>'''# dump2fs /dev/<device> | grep -i superblock'''</tt> | ## <tt>'''# dump2fs /dev/<device> | grep -i superblock'''</tt> | ||
# Choose a superblock alternate location, and check the filesystem using <tt>'''fsck'''</tt>. | # Choose a superblock alternate location, and check the filesystem using <tt>'''fsck'''</tt>. | ||
## <tt>'''# | ## <tt>'''# e2fsck -b <alternate location> /dev/<device>'''</tt> | ||
# Attempt to mount the filesystem. | # Attempt to mount the filesystem. | ||
=== Mounting a FS with a Corrupted Superblock === | === Mounting a FS with a Corrupted Superblock === |
Revision as of 13:47, 1 August 2014
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 FS 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>