Title: grub + Linux + windows
Body:
A dual-system is installed, including Windows 2003 sever and redflag 6.0 desktop.
Make a record of the problem, just forget.
1. Problems:
Guide grubProgramIt is written to the boot zone of the first partition in Linux. When the system is started, it directly enters the Windows system, and grub does not appear.
Write the grub boot program to the primary Boot Sector (MBR) of the disk. The grub> prompt is displayed when the system starts. There is still no GRUB menu.
2. MBR repair: After DOS is started in Win98, use the fdisk/MBR command to overwrite the Master Boot Record.
3. re-install grub in the boot zone of the first partition in Linux. Then, in windows, copy the/boot file of Linux using the diskgenius tool and check
Check/boot/GRUB/grub. conf and/boot/GRUB/menu. lst. No exception is found:
---------------------
# Boot =/dev/hda8
Default = 1
Timeout = 5
Gfxmenu (hd0, 7)/boot/message
Title redflag Linux (2.6.22.6-1)
Root (hd0, 7)
Kernel/boot/vmlinuz-2.6.22.6-1 Ro root = label =/1 VGA = 788 splash = silent
Initrd/boot/initrd-2.6.22.6-1.img
Title windows
Rootnoverify (hd0, 0)
Chainloader + 1
---------------------
4. Continue to try and use 6 to install the CD boot to automatically fix the issue.
5. See the document to repair GRUB:
1). Install Disk boot
2). Boot: Linux Rescure
3). Sh # grub
4). Grub> root (hdx, Y)
Grub> setup (hd0)
5) Exit Linux Rescure and restart.
However, after entering the Linux rescue mode and executing the sh # grub command, the following message is displayed:
Probing devices to guess BIOS drives. This may take a long time.
The device is correct.
6. Try to use ntldr for dual-system guidance
Principle: The ntldr file is provided by the configuration file boot. ini and is located in the root directory of the Windows XP system partition.
Read attributes. Back up the Linux boot record as a file to the root directory of drive C, and add a project to the boot. ini file to point to it accordingly,
You can implement a dual system.
Back up Linux boot sector operations in Windows:
1) find out the number of Linux boot sector sectors and save the sector as a backup file.
Use the diskgenius tool, select the Boot Sector of the Linux file partition, and view the "Start sector ID", which is recorded, such as 108551268.
Back up the boot sector with dskprobe: tool dskprobe.exe support. Cab under the/support/tools directory of the Windows 2000/XP installation disc
Compressed package.
After running dskprobe.exe, select "drives"> "pysical drive" to bring up the "open pysical drive" dialog box.
The "available physical drives" list box in the dialog box lists all disks.
Double-click the selected physical disk, activate the "Close handle" and "set active" buttons, and click "OK" to return to the main interface.
Select "sectors"> "read" to open the "read sectors" dialog box.
In the "starting sector" text box, enter the "Start Sector Code" (for example, 108551268) recorded by the diskgenius tool. In
Enter 1 in the "Number of" text box and click "read". The content of the Boot Sector of the Linux/boot partition is displayed.
Select "file"> "Save as" and specify the storage location and file name (for example, C:/bootsect. DSK.
2) modify the C:/boot. ini file.
Edit the C:/boot. ini file and add C:/bootsect. DSK = "redflag Linux 6.0 ".
Restart the system and find that there is no grub Startup menu. The system stays at the grup> prompt.
7. Use grub for DOS to boot multiple systems
In desperation, we had to use grub for DOS, version 0.4.2.
1) Copy all grub for DoS Files to C:/boot/GRUB
2) copy the C:/boot/GRUB/grldr file to C :/
3) edit the C:/boot. ini file and add C:/grldr = "GRUB menu ".
4) edit the C:/boot/GRUB/menu. LST file and set the content.
For more information, see porting/boot/GRUB/menu. lst in the Linux Root partition.
You can also use configfile in the menu. LST file of grub for DOS to directly introduce/boot/GRUB/menu. lst in the Linux Root partition.
Single-use.
In the menu. LST file of grub for DOS, set the settings as follows:
---------------------
Title gnu grub menu
Configfile (hda0, x)/boot/GRUB/menu. lst
---------------------
You can also edit the menu. LST file in the following format:
---------------------
# Title GRUB menu
# Configfile (hd0, 7)/boot/GRUB/grub. conf
Default = 0
Timeout = 30
Splashimage (hd0, 0)/boot/GRUB/Chinese/bj2008.xpm.gz # Set the image
Fontfile (hd0, 0)/boot/GRUB/fonts.gz # Set the font to display Chinese Characters
Gfxmenu (hd0, 7)/boot/message
Title red-flag Linux 6
Root (hd0, 7)
Kernel/boot/vmlinuz-2.6.22.6-1 Ro root = label =/1 VGA = 788 splash = silent
Initrd/boot/initrd-2.6.22.6-1.img
Title Windows 2003 Server
Rootnoverify (hd0, 0)
Chainloader + 1
Title started from CDROM
CDROM -- init
Map -- hook
Chainloader (cd0)
Boot
Title restart
Reboot
Title Shutdown
Halt
Title logout
Rootnoverify (hd0, 0)
Makeactive
Chainloader + 1
---------------------
Restart the system, start grub, and Boot Windows and redflag Linux. Everything works normally.
PS1: the root password is missing:
Solution 1:
1. Start the system with the Linux installation disk and enter the Linux rescue to start the system in repair mode;
2. After the system is started, the system will be mounted to/mnt/sysimage;
3. Run the following command at the prompt:
Chroot/mnt/sysimage
4. Run passwd to change the password.
5. press exit twice in a row. After restarting the system, you can log on with the new password.
In addition to the rescue mode, you can also use the boot loader to enter the single-user mode:
Solution 2:
Use the grub mobile system to start. after entering the startup screen, enter "E" and move the cursor to the line of kernel.
Enter "E", add a space single at the end of the line of the kernel, and press Enter.
Enter "B", start the system, and enter the single-user mode. At this time, you can use the passwd command to change the password.
PS2: red-flag Linux cannot see the mouse cursor after entering X.
Phenomenon; occasionally, the cursor icon is displayed in the status bar, or a box with a dotted line flashing, or is not displayed, but the left and right buttons can be used.
Solution: the problem is mostly about the video card driver. Via is detected automatically. You can try VESA or intel.
The procedure is as follows:
# Vi/etc/X11/Xorg. config
Put:
Section "device"
Identifier "videocard0"
Driver ""
Changed:
Section "device"
Identifier "videocard0"
Driver "VESA"
After the machine is restarted, startx can be used smoothly.
Or right-click and select "display configuration"> "graphics card driver", change via to VESA, save and restart.
By jrq
2009/02/27. Jing.