resize2fs: Bad magic number in super-block while trying to open

后端 未结 10 1316
温柔的废话
温柔的废话 2020-12-22 14:45

I am trying to resize a logical volume on CentOS7 but am running into the following error:

resize2fs 1.42.9 (28-Dec-2013)
resize2fs: Bad magic number in supe         


        
10条回答
  •  执念已碎
    2020-12-22 15:24

    resize2fs Command will not work for all file systems.

    Please confirm the file system of your instance using below command.

    Please follow the procedure to expand volume by following the steps mentioned in Amazon official document for different file systems.

    https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html

    Default file system in Centos is xfs, use the following command for xfs file system to increase partition size.

    sudo xfs_growfs -d /
    

    then "df -h" to check.

提交回复
热议问题