e2label: Bad magic number in super-block解决方法

作者: ls 分类: Error,Linux 发布时间: 2018-01-08 17:24 浏览:11,904 次    

使用e2label对磁盘操作时,如果报“e2label: Bad magic number in super-block while trying to open /dev/sdb1 ,Couldn’t find valid filesystem superblock.”这样的报错。是因为e2label对xfs文件系统做操作出现的,一般是centos7以上系统,在7以上系统应该使用xfs_admin来操作即可!

如:

[root@localhost ~]# xfs_admin -l /dev/sdb1       #查看xfs文件系统卷标
 label = ""
[root@localhost ~]# xfs_admin -L test /dev/sdb1 #设置xfs文件系统的卷标为test
 writing all SBs
 new label = "test"
[root@localhost ~]# xfs_admin -l /dev/sdb1
 label = "test"

温馨提示:如无特殊说明,本站文章均为作者原创,转载时请注明出处及相应链接!

发表评论