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 5: Line 5:
## <tt>'''# fsck -b <superblock backup location> /dev/<device>'''</tt>
## <tt>'''# fsck -b <superblock backup location> /dev/<device>'''</tt>
# Attempt to mount the filesystem.
# Attempt to mount the filesystem.
 
<br />
# The filesystem can also be mounted by passing the location of the backup superblock to the <tt>'''mount'''</tt> command.
# The filesystem can also be mounted by passing the location of the backup superblock to the <tt>'''mount'''</tt> command.
## <tt>'''# mount sb=<superblock backup location> /dev/<device> <mount location>'''</tt>
## <tt>'''# mount sb=<superblock backup location> /dev/<device> <mount location>'''</tt>

Revision as of 13:34, 1 August 2014

Linux

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


  1. The filesystem can also be mounted by passing the location of the backup superblock to the mount command.
    1. # mount sb=<superblock backup location> /dev/<device> <mount location>

Further Reading

  1. Recover Corrupted Partition From A Bad Superblock