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

Repair the specific implementation process of Ubuntu xp Grub

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Repair Ubuntu xp Grub specific implementation process, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain in detail for you, people with this need can come to learn, I hope you can gain something.

To fix the specific implementation of Ubuntu xp Grub, I first install ubuntu, and then restore the GHOST file of XP in the original * partition of the hard disk to the second partition of the hard disk. When starting, there is no previous grub menu (in PE, the partition of XP is active, and you don't dare to move if you want to set the * partition to active).

However, for that XP backup, I have installed wingrub before, so I can enter grub in the startup menu of XP.

Restart, select to go to the grub menu, and then select any startup item of ubuntu, failed. The reason is that the UUID has been changed (the GHOST backup is relatively old, after the backup, the ubuntu has been formatted and reinstalled several times), what to do? You're not going to reinstall ubuntu, are you?

No need! Now that you have grub on your hard drive, load the system manually.

Boot, there is a startup item selection, I chose grub to start, and then in the grub startup menu, press the "C" key

[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 >

Tried the command:

Find / boot/grub/stage1

Display:

Error 15: File not found

It didn't work.

Remember that the\ boot of my ubuntu is in the sixth partition, so:

Cat (hd0,5) / grub/menu.lst

Haha, I see the data in the menu.lst file.

What's the use of seeing it?

It's useful because you see this:

Root (hd0,5) kernel / vmlinuz-2.6.24-19-generic root=UUID=2ce94fa6-e3f6-42b2-a148-9e86d98 021cf ro quiet splash locale=zh_CN initrd / initrd.img-2.6.24-19-generic

Just enter these lines, execute them, and you can enter ubuntu!

Fixing the specific implementation of Ubuntu xp Grub is not the goal.

In fact, we can use grub to fix the menu launched by the dual system:

Enter first:

Root (hd0,5)

Then enter:

Setup (hd0)

Display the results:

Checking if "/ boot/grub/stage1" exists... No Checking if "/ grub/stage1" exists... Yes Checking if "/ grub/stage2" exists... Yes Checking if "/ grub/e2fs_stage1_5" exists... Yes Running "embed / grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded. Succeeded Running "install / grub/stage1 (hd0) (hd0) 1x 16p (hd0,5) / grub/stage2 / grub/menu.lst". Succeeded Done.

And then

Quit

Just restart the machine.

I still don't understand that there is a no, but it turns out that it is still succeeded.

What is PS:grub? In fact, it is a startup manager used by software such as GHOST restore or MAXDOS.

Check to see if there is GRLDR in the root directory of your C disk:)

In addition:

After entering the grub, it will be displayed

Grub > _

Enter help and you can see all the supported commands.

After installing ubuntu so many times, I finally solved the problem I encountered without reinstalling it.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

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