Article Title: Solve the Problem of Linux grub startup. 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.
1. Question proposal
My computer is a Windows 2000 and Linux dual system. Due to the impact of the "Shock Wave" in some time ago, I decided to reinstall Windows 2000 and adjust the partition capacity by the way -- merge the two partitions, from C, D, E, F, and g to C, D, E, and F.
After installing Windows 2000, since Grub was previously installed in the first sector of the Linux partition, therefore, you can directly Install BootMagic8.0 in Windows 2000 to create a Linux boot Link (if Grub is not installed in the first sector of the Linux partition but in MBR, you must execute Setup or Install on Grub ), in this case, you can only access the Grub console, but cannot access the Grub graphic interface. To start Linux, You need to manually enter the command:
The reason for careful analysis is that after the partition is merged, (hd0,?) in the Grub configuration file ,?) It cannot match the current partition, so it cannot be started normally. In my computer, the original Windows partition D, E, F, and G correspond to hdb5, hdb6, hdb7, and hdb8 respectively in Linux, the adjusted D, E, and F correspond to hdb5, hdb6, and hdb7. Go to Linux as described above and open the/boot/grub. conf file. The content is as follows:
Default = 0 /? The default option is Red.
Hat Linux
Timeout = 10 /? Enrollment in 10 seconds
Item
Splashimage = (hd0, 8)/boot/grub/splash.xpm.gz/* specify the Grub Image
Interface file
Title Red Hat Linux (2.4.18-14)
Root? Hd0, 8?
Kernel/boot/vmlinuz-2.4.18-14 ro root = LABEL =/
Initrd/boot/initrd-2.4.18-14.img
Title windows
Rootnoverify (hd0, 0)
Chainloader + 1
Windows 2000 is installed on the C drive, and the Windows-related part does not need to be modified. In the Linux-related part, change (hd0, 8) to (hd0, 7 ).
Next, modify the important Grub file stage2. Restart to Windows 2000, export stage2 with a explore2fs-1.00-pre4 (using Windows to access the ETX partition), and then open the file with UltraEdit (see figure), where (hd0, 8) change to (hd0, 7), save and exit.
Go to Linux again, overwrite the original file with the modified stage2 file, restart Linux, and restore the Grub graphic interface
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