失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > linux的grup文件 linux命令:grub 文件详解及grub修复 系统常见故障修复

linux的grup文件 linux命令:grub 文件详解及grub修复 系统常见故障修复

时间:2022-06-29 19:49:08

相关推荐

linux的grup文件 linux命令:grub 文件详解及grub修复 系统常见故障修复

首先模拟grub损坏,dd if=/dev/zero of=/dev/sda count=1 bs=400

grub引导破坏,但是此时并未重启,可以直接重新安装grub,从而达到恢复grub:

第一种方法:

1、首先输入grub 进入grub命令行

[root@xuelinux networking]# grub

Probing devices to guess BIOS drives. This may take a long time.

GNU GRUB version 0.97 (640K lower / 3072K upper memory)

[ Minimal BASH-like line editing is supported. For the first word, TAB

lists possible command completions. Anywhere else TAB lists the possible

completions of a device/filename.]

grub>root (hd0,0) 制定内核所在分区

root (hd0,0)

Filesystem type is ext2fs, partition type 0x83

grub> setup (hd0) 直接使用setup安装,setup (hd0)直接安装在hd0第一引导的硬盘上

setup (hd0)

Checking if "/boot/grub/stage1" exists... no

Checking if "/grub/stage1" exists... yes

Checking if &#

如果觉得《linux的grup文件 linux命令:grub 文件详解及grub修复 系统常见故障修复》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。