It has always been the last step in the development environment of the XP architecture arm with dual system XP + linuxfedfedora15 today, because XP is crashed when CodeWarriorforfreescaleDeveloper is uninstalled, codewarriorforarm#suite is installed, and other small software is installed. Sadly, install XP. After the reinstallation, GRUB is gone, so I thought it was very easy to install grub.
Always using dual-system XP + Linux Fedora 15
Today, the last step in the development environment of the XP architecture arm is to uninstall CodeWarrior for freescale Developer, install CodeWarrior for ARM Developer Suite, and then install other small software, XP is crashed. Sadly, install XP.
After the reinstallation, it must have been GRUB gone, so I thought it was very easy to install grub, but it took me two hours. Learning knowledge: Patience + time + reading materials is the most important thing. Now that you have learned about Linux, you must do it in the Linux environment. Although Grub4DOS can also be easily solved, just copy it.
The following describes how to solve the problem:
1. Download fedora15 liveCD (http://fedoraproject.org/get-fedora)
2. burn or USB boot (USB boot-> insert USB flash drive-> install UltraISO-> boot-> write hardware image-> USB-HDD-> wait for completion-> del After reboot into BIOS-> advace select frist boot USB-HDD)
3. Enter fedora terminal of liveCD
# Su-l
# Fdisk-l (root permission is available for viewing)
# Mkdir/mnt/sdaX (create a folder and attach it to the hard disk)
# Mount/dev/sdaX/mnt/sdaX (the linux hard disk is mounted on fdisk-l)
# Mount/dev/sdaX/mnt/sdaX/boot (skip this step if no/boot partition is available)
# Grub-install -- root-directory =/mnt/sdaX/dev/sda (this is to install grub on/mnt/sdaX)
# The prompt is probably: grub is successfully installed and there is no error
# Check whether the configuration is correct.
(This prompt is very important. If there is no prompt similar to this in English, it must be a configuration error. Check whether the above address allocation is correct)
# Cd/mnt/sdaX/boot/grub/(move to the installed grub directory to check whether the installation is successful)
# Ll
Check whether menu. lst, stage1, and stage2 are available. (If any)
Case 2:
4. No menu. lst is displayed. The following configuration is required. However, grub boot on linux usually does not.
# Grub (go to grub shell)
Grub> find/boot/grub/stage1
(Hd0, 2)
Grub> root (hd0, 6) (this is the partition where/boot is located)
Grub> setup (hd0) (write GRUB to MBR)
5. Configure menu. lst in the next step.
# Vi/mnt/sdaX/boot/grub/menu. lst
Default = 0 # (Mode 0, start the first title)
Timeout = 5 # (wait time 5 s)
# Splashimage = (hd0, 2)/boot/grub/splash.xpm.gz
Hiddenmenu
Title Fedora Core (2.6.11-1.1369_FC4)
Root (hd0, 2)
Kernel/boot/vmlinuz-2.6.11-1.1369_FC4 ro root = LABEL =/
Initrd/boot/initrd-2.6.11-1.1369_FC4.img
Title WinXp
Rootnoverify (hd0, 0)
Chainloader + 1
# Reboot now
6. Remove the CD
This step should be left blank. If you have any questions, please carefully read the System Boot manager grub.pdf.
: Http://www.linuxidc.com/Linux/2011-08/40174.htm