Cannot access filesystem after resizing partition
Issue
- cannot mount filesystem or run e2fsck /dev/sdb1
- I have deleted a partition and created a new one as the disk had been grown. I now seem to have lost the filesystem as the error states:
# e2fsck -f /dev/sdb1
e2fsck 1.39 (29-May-2006)
Couldn't find ext2 superblock, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open /dev/sdb1
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
Environment
- Red Hat Enterprise Linux 5, 6, 7
- fdisk
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.