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

How Ubuntu Grub2 fixes Ubuntu 9.10 GRUB 2 Boot

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how Ubuntu Grub2 fixes the Ubuntu 9.10 GRUB 2 guide. I hope you will get something after reading this article. Let's discuss it together.

Method 1.Ubuntu Grub2 has GRUB boot CD or USB disk repair.

If you have a tool tray started by GRUB, start it with the tool tray and press c on the GRUB menu to enter the command line state

Enter at the grub > prompt

Grub > find/boot/grub/core.img (use find/grub/core.img for those with / boot partition)

(hdx,y) (displays the partition number found)

Grub > root (hdx,y)

Grub > kernel/boot/grub/core.img (kernel/grub/core.img for / boot partition)

Grub > boot

After performing boot, Ubuntu Grub2 can be transferred to the GRUB2 menu, and after starting Ubuntu, execute sudogrub-install/dev/sda (or sdb,sdc, etc., depending on the hard disk) under the Ubuntu terminal to repair GRUB.

Note: if the boot partition of Ubuntu uses ext4 format, you must have a grub that supports ext4 format to fix it.

Method 2:Ubuntu Grub2 uses liveCD to repair grub (recommended)

After you start the trial Ubuntu with Ubuntu9.10 's LiveCD, open the terminal

If the / partition of your Ubuntu is sda9 and the partition of / boot is sda6, enter it under the terminal

Sudo-i

Mount/dev/sda7/mnt

Mount/dev/sda6/mnt/boot (skip this step if there is no / boot separate partition)

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

As before, change sda to sdb if you want to install the second hard drive.

My file system is ext4. It seems that the GRUB of pe on USB disk does not support it. To be on the safe side, it is repaired with LiveCD, but after repair, Windows cannot be booted. It can be solved in the following ways:

Enter the Ubuntu system and open the terminal

Rebuild GRUB list sudoupdate-grub

Rewrite * partition mbrsudogrub-install/dev/sda

If you want to change the boot sequence, you can modify the grub.cfg file in the / boot/grub directory. Note that this file is not writable. You can run the command first.

Sudochmod+w/boot/grub/grub.cfg

Then run sudogedit/boot/grub/grub.cfg, and you can modify it, similar to GRUB1's menu.lst modification.

After reading this article, I believe you have some understanding of "how Ubuntu Grub2 fixes Ubuntu 9.10 GRUB 2 Guide". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

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