How to Use GRUB to create a boot disk for both linux and XP systems!
Source: Internet
Author: User
How to Use GRUB to create a boot disk for both linux and XP systems! -- Linux general technology-Linux technology and application information. For details, refer to the following section. As I personally want to create a dual-System Disk for XP and linux, I want to find related production methods on the Internet, but I don't know if it's too simple for everyone to do it or why. After searching for half a day, I couldn't find a tutorial on how to create a linux and XP dual-system to install the boot disk, windows n in 1 is a clear one, so the idea of creating a linux and XP dual system to install the boot disk is generated. Today, the dual-system mounting disk has been basically created. Although there are still some shortcomings, at least it has been made, so I want to send my production method to the Internet for some people to learn from.
Before talking about the specific production process, let me talk about the problems we encountered at the beginning of production.
Original Author zhaoyg zhaoyg86.blog.sohu.com
I already know how to use easyboot to create a windows boot disk before I create a linux and XP dual-system disk. So naturally I tried the same method on linux, but it failed. Later, I found some information about how to create a linux CD on the Internet and learned that the linux installation CD was made from isolinux, when using a linux CD made in isolinux for system boot, he will check the MD5 code of the CD. Because I am currently working on Dual-system CD, the MD5 value cannot be the same as the original value, therefore, no further guidance is allowed. When I was overwhelmed, I suddenly remembered a post I had read about installing linux on a hard disk. It was this post that changed my mind. The original post content was: Put idea in C: \ (the partition where XP is located), and then in the boot. add a line C: \ grldr = "GRUB" at the end of ini ". Later I learned that the boot program will load the linux kernel when linux is from the CD, and then the control right will be handed over to the kernel and the kernel will control the entire installation process. After learning about this, I had a general idea, that is, I gave up using easyboot to change to grub to create a CD.
Original Author zhaoyg zhaoyg86.blog.sohu.com
Production:
1. Download and decompress GRUB4DOS and extract grldr and menu. lst. The former is the Bootstrap program and the latter is the option menu. If you need Chinese support, you also need to download the fonts file. You can use google to find it.
2. Download UltraISO
3. Upload all the files on both the XP and linux CDs to a new folder, for example, iso, and then select grldr and menu. lst also admitted and renamed grldr as grldr. bin.
4. Open menu. lst in text, clear the content, and add the following text:
Timeout 30
Default 0
Root (cd)
Fontfile (cd)/fonts
Splashimage (cd)/*. xpm
(P.S: *. xpm is the background image file. It only serves to make the option menu look better. It will be discussed later .)
Title install Windows XP
Chainloader (cd)/I386/SETUPLDR. BIN
(P.S: This is the binfile loading format)
Title install Fedora 7
Kernel (cd)/isolinux/vmlinuz
Initrd (cd)/isolinux/initrd. img
(P.S: load the linux CD Kernel File)
Of course, if you want to add some common system tools, such as ghost, you can also add the following in the above content: zhaoyg zhaoyg86.blog.sohu.com, the original author of this article
Title Ghost v11.01
Map -- mem (cd)/img/GHOST1101.IMG (fd0)
Map -- hook
Chainloader (fd0) + 1
Rootnoverify (fd0)
(P.S: This is a loading statement in IMG format. Assume that GHOST1101.IMG is stored in the img folder)
Note: All the above file names and directory names must be in the same case as the actual ones; otherwise, they cannot be loaded.
5. Start UltraISO, click "file"-> "attribute", and tick the "lower case allowed; click "boot CD"-> "load boot file" and select the renamed grldr, that is, grldr. bin. Finally, set menu. all files in the lst file and iso folder are dragged to UltraISO *. the xpm file must also be included. Otherwise, the Chinese and background images cannot be seen. You can save the image file after ensuring that no file is left.
Here is the image after my preparation:
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // 122.img.pp.sohu.com/images/blog/2007/11/23/22/7/11708b85961.jpg'); ">
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // 119.img.pp.sohu.com/images/blog/2007/11/23/22/8/11708b37d0a.jpg'); ">
(400) {this. resized = true; this. width = 400; this. alt = 'click here to open new window';} "onmouseover =" if (this. resized) this. style. cursor = 'hand'; "onclick =" window. open ('HTTP: // 121.img.pp.sohu.com/images/blog/2007/11/23/22/8/11708bcf4f3.jpg'); ">
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service