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

后端 未结 10 1328
温柔的废话
温柔的废话 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:35

    On Centos 7, in answer to the original question where resize2fs fails with "bad magic number" try using fsadm as follows:

    fsadm resize /dev/the-device-name-returned-by-df
    

    Then:

    df 
    

    ... to confirm the size changes have worked.

提交回复
热议问题