首页 > 编程知识 正文

主板错误代码e2,惠普e2错误

时间:2023-05-04 19:20:31 阅读:178702 作者:914

环境组合:

centos7.5

e2fsck version: 1.4.29

resize2fs version:1.4.29

rc.local执行脚本需要扩展LVM空间脚本。 有以下两个句子。

/sbin/e2fsck -f /dev/vg/data

/sbin/resize2fs /dev/vg/data

在启动运行中打印信息,得知错误的原因是在执行e2fsck时发生了错误。

e2fsck : needterminalforinterfactiverepairs

resize2fs将无法运行

解决问题的方法:

1、修正/sbin/e2fsck -f /dev/vg/data为/sbin/e2fsck -fp /dev/vg/data

manpage的p参数的说明如下所示。

-pautomaticallyrepair('preen ) )。 the file system.thisoptionwillcausee2fscktoautomaticallyfixanyfilesystemproblemsthatcanbesafelyfixedwithoumanintervention. fsckdiscoversaproblemwhichmayrequirethesystemadministratotakeadditionalcorrectiveaction、 E2fsckwillprintadescriptionoftheproblemandthenexitwithevalue4logically or ' edintotheexitcode.(seetheeeexitcodesection.) thisoptionisnormallyusedbythesystem ' s boot scripts.itmaynotbespecifiedatthesametimeasthe-nor-y options。

2、挂载/dev/vg/data,然后运行/sbin/resize2fs /dev/vg/data。 /sbin/e2fsck -f /dev/vg/data执行失败不影响resize2fs

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。