centos 启动报错 “error:failure reading sector 0x9b268 from 'hd0'”
2019-06-02 23:11
2847 查看
启动报错 “error:failure reading sector 0x9b268 from 'hd0'”
从这个报错可以得知是由于引导出错导致的;
首先准备好一块centos启动盘的U盘,插入电脑;重新启动电脑,进入救援模式(rescure),然后尝试用经典方法进行恢复:“grub2-install /dev/sda”然后系统报错“grub2-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory”
cd命令切换到“/usr/lib/grub/”发现此目录下什么文件也没有;
使用cp -R /usr/lib/grub/i386-pc/* /mnt/sysimage/usr/lib/grub/i386-pc
然后使用chroot切换到/mnt/sysimage环境,继续运行
grub2-install /dev/sda,即可成功安装grub2
然后我们还需要重新生成配置文件:
grub2-mkconfig -o /boot/grub2/grub.cfg
为了保险起见我重新运行了一次
# grub2-install /dev/sdb1
重起之后即可正常引导进入Linux系统
相关文章推荐
- Docker 启动 Centos 镜像 提示"Error response from daemon: No command specified"
- Centos 6.5启动 an error occurred during the file system check错误的解决
- VMware中CentOS6.5启动出现An error occurred during the file system check
- omap3530从SD卡启动Error: reading boot sector解决笔记
- centos7下docker启动失败--ob for docker.service failed because the control process exited with error code.
- centos 安装rabbitmq遇见 Error when reading /var/lib/rabbitmq/.erlang.cookie: eacces
- CentOS下Apache启动失败问题解决方案Job for httpd.service failed because the control process exited with error co
- centos启动提示an error occurred during the file system check
- CentOS7中开机出现end_request:I/O error,dev fd0,sector 0的解决办法
- Centos | Linux 下安装启动 mysql 出现 8618 [ERROR] Aborting,查看日志:Plugin 'FEDERATED' is disabled.
- Centos中普通用户启动多个Dubbo服务出现java.lang.OutOfMemoryError: unable to create new native thread
- centos中启动MySQL提示Job for mysqld.service failed because the control process exited with error code.
- Centos 6.5启动 an error occurred during the file system check错误的解决
- Centos 7 ,启动docker失败,Error starting daemon: SELinux is not supported with the...lse)
- 解决CentOS 7安装zabbix 3.0 无法启动zabbix-server的问题[segfault at 18 ip 00007f78842b4bd0 sp 00007fff1995a818 error 4 in libpthread-2.17.so[7f78842ab000+16000]]
- Ubuntu升级内核后启动VirtualBox虚拟机报错NS_ERROR_FAILURE
- centos6.6下编译安装mysql5.6之后启动失败:Starting MySQL... ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid).
- CentOS启动时报错:Anerroroccurredduringthefilesystem check
- CentOS gdb core 调试错误: error reading variable: can't compute CFA for this frame