Article Title: Fix GRUB and retrieve ubuntu after reinstalling XP. 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.
After xp is reinstalled, the mbr is written by xp, causing grub to fail to work. solution:
(1) Use the ubuntu-8.10-desktop CD, use the grub command to fix.
1. A'> Start from the CD-ROM and choose "Try Ubuntu without changing anything on your computer" to enter the desktop.
1. B '> click Application> attachment> terminal on the taskbar 』.
Input: sudo grub
Input: find/boot/grub/stage1
The actual operation result is shown in: (hd0, 4)
Input: root (hd0, x) # input the data fed back by the find command. For example, enter 4 for me. This is the partition where/boot is located.
Input: setup (hd0) # Write grub to MBR
The actual operation result shown in is displayed.
Enter quit # To exit grub.
1. c '> restart. If there is no accident, congratulations. You can see the dual-System Boot of XP and Ubuntu.
(2) do not use ubuntu-8.10-desktop disc, repair grub with wubi.
2. A'> modify the "boot. ini" under the root directory of the windows disk and add the following code:
C: \ wubildr. mbr = "Ubuntu"
Copy the files wubildr and wubildr. mbr in the attachment to the c-drive root directory and restart the computer. As shown in: