Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the Ubuntu Grub Rescue repair methods?

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces what Ubuntu Grub Rescue repair methods have, with certain reference value, interested friends can refer to, I hope you have a lot of gains after reading this article, let Xiaobian take you to understand.

Restart the computer and go directly to grub rescue mode.

GRUB loading

error: no such partition

grub rescue>

Even XP can not enter, know what to do!

GRUB2 repair method:

1. Ubuntu Grub Rescue Double OS Reload Windows causes Grub2 to be rewritten Fix

Method 1 grub4dos0.4.4

Add grub4dos boot to Windows boot entry (not much to say, see the top sticker), restart to select grub, enter (/boot separate partition remove/boot) under the command line

Code:

grub>find --set-root /boot/grub/core.img

grub>kernel /boot/grub/core.img

grub>boot

Go to grub2 menu, enter the system and then execute

Code:

sudo grub-install /dev/sd?

Ubuntu Grub Rescue Method 2 Repair after entering Livecd

Quote:

sudo -i

mount your root partition/mnt

mount your/boot partition/mnt/boot #if any

#Mount your other partitions, if any

#rebuild grub to sda mbr

grub-install --root-directory=/mnt /dev/sda

2. Ubuntu Grub Rescue due to root partition uuid change caused by the normal boot, can only enter the grub rescue mode repair

Code:

grub rescue>set grub rescue>prefix=(hd?,?)/ grub grub rescue>root=hd?,? grub rescue>set root=hd?,? grub rescue>set prefix=(hd?,?)/ boot/grub grub rescue>set grub rescue>root=hd?,? grub rescue>prefix=(hd?,?)/ boot/grub grub rescue>insmod /boot/grub/normal.mod grub rescue>normal

At this time, you can call up/boot/grub/grub.cfg and modify the corresponding uuid.

Change to Command Line

grub>insmod /boot/grub/linux.mod grub>set root=hd?,? grub>linux /boot/vmlinuz-*** root=/dev/sd?? grub>initrd /boot/initrg.img-****

enter the system

hd?,? Is the partition sda where the grub file is located? Yes/partition.

3. Repair when grub module and configuration file grub.cfg are damaged and cannot be started

Livcd Launcher Enter Trial

Quote:

sudo -i

mount your root partition/mnt

mount your/boot partition/mnt/boot #if any

#Mount your other partitions, if any

#rebuild grub to sda mbr

grub-install --root-directory=/mnt /dev/sda

#rebuild grub.cfg

mount --bind /proc /mnt/proc mount --bind /dev /mnt/dev mount --bind /sys /mnt/sys chroot /mnt update-grub mount/mnt/sys mount/mnt/dev mount/mnt/proc Thank you for reading this article carefully. I hope that Xiaobian will share "What are the Ubuntu Grub Rescue repair methods?" This article is helpful to everyone. At the same time, I hope that everyone will support it. Pay attention to the industry information channel. More knowledge is waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report