FS Repair a Corrupted Filesystem: Difference between revisions

From UNIX Systems Administration
Jump to navigation Jump to search
(Created page with "=== Linux === # Create and allocate the disk to the Linux guest on the VMWare Host. ## <tt>''''''</tt> # Review the messages log for the new device name of the disk. ## <tt>''...")
 
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
=== Linux ===
== AIX ==
# Create and allocate the disk to the Linux guest on the VMWare Host.
== Linux ==
## <tt>''''''</tt>
==== Repairing a Corrupted Superblock ====
# Review the messages log for the new device name of the disk.
# Locate the superblock alternates of the filesystem
## <tt>'''# tail /var/log/messages'''</tt>
#: <tt>'''# dump2fs /dev/<device> | grep -i superblock'''</tt>
# Follow the [[LVM Install a New Physical Volume|PV Install]] Procedure.
# Choose a superblock alternate location, and check the filesystem using <tt>'''fsck'''</tt>
#: <tt>'''# e2fsck -b <alternate location> /dev/<device>'''</tt>
# Attempt to mount the filesystem
==== 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/tips/vmware-add-a-new-hard-disk-without-rebooting-guest.html VMWare/Linux - Add a New Hard Disk without Rebooting]
# [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

  1. Locate the superblock alternates of the filesystem
    # dump2fs /dev/<device> | grep -i superblock
  2. Choose a superblock alternate location, and check the filesystem using fsck
    # 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
    # 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
    # mount sb=<alternate location> /dev/<device> <mount location>

Further Reading

  1. Recover Corrupted Partition From a Bad Superblock