This post will help you to fix the error "resize2fs Bad magic number in super-block while trying open"
If you are interested in learning, Request you to go through the below recommended tutorial.
DevOps Full Course Tutorial for Beginners - DevOps Free Training Online
Docker Full Course Tutorial for Beginners - Docker Free Training Online
Kubernetes Full Course Tutorial for Beginners - Kubernetes Free Training Online
Ansible Full Course Tutorial for Beginners - Ansible Free Training Online
Openstack Full Course Tutorial for Beginners - Openstack Free Training Online
resize2fs Bad magic number in super-block while trying open
You may get an error as below when you are trying to resize a logical volume on linux. Even after you extended the filesystem using lvextend. But when we do lvdisplay it will shows the correct size as you extended, but we will be getting an error as below.
Possible reason is, the mounted filesystem would be XFS filesystem. SO resize2fs wont work for xfs filesystem, we should use xfs_growfs instead of resize2fs.
Lets do a final check.
Support Us: Share with your friends and groups.
Stay connected with us on social networking sites, Thank you.
resize2fs bad magic number in super-block while trying open, bad magic number in super-block, resize2fs error in linux, bad magic number in superblock linux
[root @linux ~]# resize2fs /dev/centos/root
resize2fs 1.42.9 (28-Dec-2013)
resize2fs: Bad magic number in super-block while trying to open /dev/mapper/centos-root
Couldn't find valid filesystem superblock.
Possible reason is, the mounted filesystem would be XFS filesystem. SO resize2fs wont work for xfs filesystem, we should use xfs_growfs instead of resize2fs.
[root @linux ~]# xfs_growfs /dev/centos/root
Lets do a final check.
[root @linux ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 115G 7.0G 108G 7% /
Hope this post is useful to fix the error "resize2fs Bad magic number in super-block while trying open"
Related Content on Linux might be useful to you to improve your Linux Skills.
How to Configure IP Address on Ubuntu using Netplan
How to Access Linux Server from Windows Remotely
Configure SSH Passwordless Login Authentication (SSH-keygen)
How to Create LVM Partition in Linux – LVM Tutorial
Install & Configure Samba Server on Linux (RHEL7 / CentOS7)
How to Access Linux Server from Windows Remotely
Configure SSH Passwordless Login Authentication (SSH-keygen)
How to Create LVM Partition in Linux – LVM Tutorial
Install & Configure Samba Server on Linux (RHEL7 / CentOS7)
Keep practicing and have fun. Leave your comments if any.
Support Us: Share with your friends and groups.
Stay connected with us on social networking sites, Thank you.
resize2fs bad magic number in super-block while trying open, bad magic number in super-block, resize2fs error in linux, bad magic number in superblock linux
0 تعليقات