UbuntuliveCD fixes grub of fedora9

Source: Internet
Author: User
Article Title: ubuntuliveCD fixes grub of fedora9. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

The previous system was XP + Linux, and then suddenly won the bid when browsing the Web page under XP one day. Although the system was installed with nod32, the virus spread wildly, and it's easy to get rid of my XP. I wanted to simply change the Linux OS, and xp will let it go to hell, but the angry eyes of my wife told me that it was King to let it go, so I had to reinstall XP, then the grub of fedora is killed.

If grub is killed, it will not guide my Fedora 9, so you have to fix grub. In fact, there are many methods to fix the boot. Install maxdos and use its grub to guide the linux system, you can also use loading. Of course, the most convenient method is to directly use the rescue iso of fedora 9, while I use the LiveCD of ubuntu 6.04. This CD was applied for when ubuntu released a free CD, well, let's get started.

System Environment:

Dual hard disk, sda, hdc, xp mounted in/partition of sda, hdc6 fedora 9, hdc7/home partition, hdc5 swap.

Run the following command to directly open a KDE terminal after you use ubuntu livecd to boot and log on.

$ Sudo su (directly su is a root-saving sudo every time)

# Mkdir/mnt/hdc6

# Mount/dev/hdc6/mnt/hdc6

# Chroot/mnt/hdc6

This group of commands is used to enter the fedora 9 system. Because I only divided/AND/home,/home can not be mounted here. If you put/bin, /boot these are placed in independent partitions. Note that these partitions are also mounted by location. Go to fedora 9 and run the following command.

# Mknod/dev/hdc B 22 0

# Mknod/dev/hdc6 B 22 6

/*

Here is the device file for creating hdc and hdc6, because fedora 9 uses udev to manage devices, I am not properly guided to fedora 9, so my device is not created. There is only one null file under/dev/, so I need to create the relevant device file myself. For more information about the mknod command, see this article.

*/

# Grub

Grub> root (hd0, 5)

Grub> setup (hd0)

Grub> quit

/*

Reload grub and exit the grub command line.

Now the grub repair is complete, the system is exited, and the system is restarted.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.