More than once, I have seen some help posts from new users like me regarding the grub guidance after XP and Ubuntu coexist. In fact, all the major forums have been introduced by Lin, A few posts can be posted on the system, but the experts may not bother with it. I am here to talk about my experiences based on my practical experience, hoping to help some friends struggling between XP and Linux. [Experts can close their eyes and Flash first :)] 1. There was an existing XP system, and Ubuntu was installed later. [of course we have to install it successfully, but it cannot be installed. What should you do? :)]
More than once, I have seen some help posts from new users like me regarding the grub guidance after XP and Ubuntu coexist. In fact, all the major forums have been introduced by Lin, A few posts can be posted on the system, but the experts may not bother with it. I am here to talk about my experiences based on my practical experience, hoping to help some friends struggling between XP and Linux. [Experts can close their eyes and Flash first :)]
1. If you have a Windows XP system and installed Ubuntu later, [of course, you have to install it successfully. If not, what should you do? :)], But grub is not successfully installed, so a system cannot enter. There are two possible cases:
A \ grub lacks menu. lst, but you can directly access the command line. This is the first time I installed RedHat.
Solution:
Guide the XP System
Grub>
Code:
Rootnoverify (hd0, 0) // In general, XP is installed on the C drive. You can also press the tab key to view the partition to obtain the coefficient of the system disk.
Makeactive
Chainloader + 1
Boot
Boot Ubuntu
Grub>
Code:
Root (hdX, Y) // here x is the hard disk sequence. If your Linux is installed on the first hard disk, X = 0; on the second hard disk, X = 1; on the third hard disk, [I first dizzy...], And so on. Y is the partition sequence on the hard disk, which can also be viewed by tab; to obtain the partition sequence for Linux installation;
Kernel/boot/vmlinuz-*** root =/dev/sdaZ ro // here Z = Y + 1; *** is the Ubuntu version, which can be completed by pressing the tab key.
Initrd/boot/initrd. img-*** [same as above]
Boot
Note: In this case, after entering Ubuntu, you need to create and compile the menu. lst file, as shown in the following figure:
Code:
Default 0 // indicates that the default start is the first title. If you want to set the default start as the second title, do you mean default X? If you do not know this, use XP :(
Timeout 10 // No comments required? [There are a lot of things on the floor... Don't scold me]
Title Ubuntu, kernel BRL. 15-26-386
Root (hd0, 7)
Kernel/boot/vmlinuz-2.6.15-26-386 root =/dev/sda8 ro quiet splash
Initrd/boot/initrd. img-2.6.15-26-386
Savedefault
Boot
Title Ubuntu, kernel 2.6.15-26-386 (recovery mode)
Root (hd0, 7)
Kernel/boot/vmlinuz-2.6.15-26-386 root =/dev/sda8 ro single
Initrd/boot/initrd. img-2.6.15-26-386
Boot
Title Other operating systems:
Root
Title Microsoft Windows XP Professional
Root (hd0, 0)
Savedefault
Makeactive
Chainloader + 1