虚拟机Linux关机到一半就卡在那怎么解决好?

发布网友 发布时间:2022-04-22 00:31

我来回答

1个回答

热心网友 时间:2023-06-22 19:43

你这是文件系统出错了吧。输入不显示文字的时候,可能是要求你输入root密码的,你试试输入root密码,回车后出现类似“(Repairfilesystem)1#”的提示符的话,就可以执行命令了。然后按照系统提示上说的,用fsck对磁盘进行检查修复。先mount,然后再fsck试试看。下面是网上摘录的执行过程,参考一下。(Repairfilesystem)1#_(Repairfilesystem)1#mount/dev/sda1on/typeext3(rw)procon/proctypeproc(rw)sysfson/systypesysfs(rw)devptson/dev/ptstypedevfs(rw,gid=5,mode=620)tmpfson/dev/shmtypetmpfs(rw)noneon/proc/sys/fs/binfmt_misctypebinfmt_misc(rw)sunpcon/var/lib/nfs/rpc_pipefstyperpc_pipefs(rw)mount:warning:/etc/mtabisnotwritable(e.g.read-onlyfilesystem).It'spossiblethatinformationreportedbymount(8)isnotuptodate.Foractualinformationaboutsystemmountpointscheckthe/proc/mountsfile.(Repairfilesystem)2#fsck-text3/dev/sda1fsck1.39(29-May-2006)e2fsck1.39(29-May-2006)/containsafilesystemwitherrors,checkforced.Pass1:Checkinginodes,blocks,andsizesInodesthatwerepartofacorruptedorphanlinkedlitfound.Fix?遇到系统询问就回车,直接默认y即可。最后退出,系统应该会自动重启。(Repairfilesystem)3#exit

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com