Notebook dual system boot recovery in GRUB system

Source: Internet
Author: User
Tags testdisk linux

I am using ASUS z9100l notebook, samsung 40G hard drive, 256M memory, Installed Win2000 and ubuntu5.1 dual system, in the sysv-rc-conf to the Ubuntu system startup options configured, I do not know how to the original Win2K system of the C-disk boot broke, and finally even the MBR on the grub was also changed to a mess, so had to find a way to rescue ...

Install Win2K First and then install Ubuntu5.1, all normal! But not satisfied with the slow start-up and startup of Ubuntu load some of the boring useless and resource-consuming services, so refer to the online Ubuntu launch optimization of the article configuration. Because some services are not clear about their use, have to slowly refer to the network text to try: Download the Sysv-rc-conf,sudo run change configuration, shut down some unnecessary services, just happy, but found that the original automatically loaded Windows partition C disk is missing, as if the LVM and EVMS have been shut down ( Enterprise volume Management Services, it should be okay? To reboot into the Win2K partition look, my God, I'm finished, I can't get in!

Oh, it should be the MBR partition information is destroyed, to find a way to repair, Win2K do not want to reload. So ran to the new software package management found TestDisk tool (at this time Ubuntu normal, grub normal, but Windows does not go to), looks good; sudo, well, zoning information can be recognized, but the MBR is prompted with errors, Using the TestDisk advanced option to go in, and then backup BS, in the dump, found that the 0x55aa of the MBR is gone, the content has been changed, had to rebuild, restart ... Anxiously waiting for more than a minute later, found still not, no way, continue to use TestDisk rewrite MBR, results ... 555,grub all gone, plus Win2K can't start, the whole machine can not start.

No way, ready to repair windows2000 start to see if you can repair Ubuntu and grub, using the Win98 boot CD boot, fdisk/mbr, haha, the MBR can still be repaired, but still unable to start, Only in DOS can recognize the original Windows three disk. No way, "SYS c: a moment, oh, the results of the hard drive can start, but" familiar "Win98 interface, and then into the DOS; no way, to find Win2K installation disk, repair installation, HA, thirty or forty minutes later, the Long-lost Win2K finally started up, all normal, okay, haha. Now it's time to fix grub and Ubuntu launches, and find articles on grub fixes on the web, and, yes, it works, but it's not completely copied, so here's a detailed list of some of the common commands and common sense of grub:

(a), zoning mapping Relationship:

1, (FD0)--> on behalf of floppy disk, generally not:)

2, (hd0)--> The first hard drive, that is, the/dev/hda under Linux;

3, (hd0,3)-->/dev/hda4 (hd0,x)->x for the partition number minus one, that is (hd0,0) on behalf of/DEV/HDA1, (hd0,1) on behalf of/dev/hda2 ...

(二), manually start Ubuntu

Because the hard drive has been unable to start need to use the CD-ROM, fortunately on hand with Ubuntu LiveCD, this time come in handy, haha (no can also find a grub boot CD or Linux installation disk for Linux rescue boot in).

When you start grub, an E enters the grub> command-line interface, and then looks at the original grub configuration file:

Grub>cat (hd0,3)/boot/grub/menu.lst #看一下原先的配置文件, my Linux is installed on the/DEV/HDA4 partition, so it is (hd0,3).

My MENU.LST configuration section is as follows:

#配置文件内容my menu.lst Main content---------(some default options and description here) # #

# # End Default Options # #

title Ubuntu, kernel 2.6.12-10-686
root (hd0,3)
kernel /boot/vmlinuz-2.6.12-10-686 root=/dev/hda4 ro quiet splash
initrd /boot/initrd.img-2.6.12-10-686
savedefault
boot
title Ubuntu, kernel 2.6.12-10-686 (recovery mode)
root (hd0,3)
kernel /boot/vmlinuz-2.6.12-10-686 root=/dev/hda4 ro single initrd /boot/initrd.img-2.6.12-10-686
boot
title Ubuntu, memtest86+
root (hd0,3)
kernel /boot/memtest86+.bin

Boot

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.