A lot of the same rookie like me, in order to learn Linux in the original Windows based on the installation of Linux. But Windows virus is too much, it is not sure which day the virus can not be killed or even into windows will have to reload. After reloading is often the default direct access to Windows, and did not appear a menu allows you to choose to be in Windows and Linux. Why, online search is everywhere, the following directly into the topic, find the Linux into the not to go.
Prepare the following two software first.
Grub for DOS (http://sourceforge.net/projects/grub4dos/files/), select Grub4dos, and use this to boot Linux.
EXPLORE2FS (HTTP://WWW.CHRYSOCOME.NET/EXPLORE2FS), which is used to look at Linux files under Windows
Above two software or Baidu, Google, there are everywhere, a lot of, well, start to enter the steps
1: The next good grub for DOS decompression to the C-packing directory, named Grub, the inside of the grlrd copy to the C-packing directory
2: Find the Boot.ini file below C disk (this is a hidden file), in the last line to join C:\grldr= "Linux"
3: Create a new menu.lst file, put it in the C-packing directory, inside the content, take my example, as follows
Title Redhat 9.0
Root (hd0,7)
kernel (hd0,7)/boot/vmlinuz-2.4.20-8 root=/dev/hda8 initrd
(hd0,7)/boot/ initrd-2.4.20-8.img
Boot
A total of 5 lines, each of which means the following
First line: Title Redhat 9.0
The value of this title refers to the name you want to appear on the menu to display Linux.
Second line: root (hd0,7)
The general formulation is root (hdx,y)
For x, if you have only one hard drive and put it on this hard drive (like nonsense ...). Then of course it is 0, otherwise the words are 1, 2, etc.
For Y, this is a little bit more complicated. Under Windows, a primary partition-C disk, and n extended partitions-d,e,f ... and other components. But under Linux, HD1~HD4 represents the primary partition, corresponds to the C disk under Windows, HD5 begins to expand the partition, such as HD5 corresponding D disk, hd6 corresponding e disk. Grub's partitioning algorithm is similar to Linux, but one difference is that it counts from 0, meaning that 0~3 corresponds to C disk, 4 corresponds to D, and so on. My own computer partitions as follows C disk-windows,d,e,f storage data, the rest of the space to Linux, so for Root (hd0,7)
Third line: Kernel (hd0,7)/boot/vmlinuz-2.4.20-8 root=/dev/hda8
It's OK to replace vmlinuz-2.4.20-8 with your corresponding file. With the EXPLRE2FS software, you can see the Linux partition files under Windows. It's a bit of a note that the hda8 in Root=/dev/hda8 is not hda7, because it's based on Linux rules instead of grub rules.
Line four: initrd (hd0,7)/boot/initrd-2.4.20-8.img
Just replace initrd-2.4.20-8.img with your corresponding file.
Line five: Boot
There seems to be nothing to say.
About Boot.ini
Boot.ini is a hidden file, and it doesn't necessarily find where it is. You might as well do it my way:
Right-click on "My Computer" select "Properties"-"Advanced"-"Startup and recovery" after the "settings", you will see in the System Boot column has an "edit" button, select it is to edit the Boot.ini file. Perhaps you do not know how to edit, so simple, the "show the operating system list of the time" to change to 0 seconds on the OK.
You can also enter "Msconfig" in the start-run to edit the boot.ini directly