In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to repair the grub of fedora9 by ubuntu liveCD. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.
The previous system was XP+Linux, and then one day I won the bid when browsing the web under XP. Although the system was equipped with nod32, the virus spread crazily and easily destroyed my XP. Originally wanted to completely change the Linux, xp let it go to hell, but my wife's angry eyes told me to give up this idea is king, so obediently reinstalled the XP, and then fedora's grub was killed.
Grub was killed can not guide my Fedora 9, then you have to repair grub, in fact, there are many ways to repair boot, install maxdos with its grub guide linux system, with loading can also, of course, the most convenient or directly use fedora 9 rescue iso, and I use ubuntu 6.04 LiveCD, this CD or ubuntu light sent free of charge CD application, all right, talk less and hurry to get to the point.
System environment:
Dual hard drives, sda and hdc, xp are installed in sda,hdc6 fedora 9 / partition, hdc7 / home partition, hdc5 swap.
After logging in with ubuntu livecd boot, open a KDE terminal directly and run the following command.
$sudo su (direct su is sudo each time in root province)
# mkdir / mnt/hdc6
# mount / dev/hdc6 / mnt/hdc6
# chroot / mnt/hdc6
This set of commands is to enter the fedora 9 system, because I only divided / and / home and / home can not be mounted here, if you put / bin,/boot these in separate partitions, you should pay attention to mount these partitions by location. After entering fedora 9, 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 the device, and I am not booting into fedora 9 normally so my device has not been created, there is only one null file under / dev/, so I have to create the relevant device file myself. For information about the mknod command, see this article.
, /
# grub
Grub > root (hd0,5)
Grub > setup (hd0)
Grub > quit
/ *
Here is to reinstall grub, and then exit the grub command line.
At this point, the grub repair work is complete, exit the system and restart.
This is the end of the grub about how ubuntu liveCD fixes fedora9. I hope the above content can be helpful to you and learn more knowledge. If you think the article is good, you can share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.