Environment: Vista SP1, arch Linux
Sda1 Vista C
Sda2/boot
Sda3 swap
Sda6/
Sda7/home
Sda8/Data
Sda9 Vista d
Method 1:
1. Export Linux boot records (grub is not installed in MBR)
# Dd If =/dev/sda2 of =/home/your username/arch. lnx BS = 512 COUNT = 1
/Dev/sda2 depends on the partition where your arch boot is located.
Generate arch. lnx and replace grldr. MBR with this file.
2. Add Ubuntu boot in the Vista boot menu
Run cmd with the Administrator permission under Vista, and then
Bcdedit/create/D "archlinux"/Application bootsector get an id string
Bcdedit/set {ID} device partition = C:
Bcdedit/set {ID} path \ arch. lnx
Bcdedit/displayorder {ID}/addlast
Method 2:
Archlinux has already been installed, and vista sp1 has been activated with vistaloader,
Download grub4dos (Wiki: http://grub4dos.sourceforge.net/wiki/index.php/Main_Page)
Copy grldr. MBR to the root directory of the Vista system disk, for example, C :\. Copy grldr and menu. lst to the root directory of the system disk.
Note that the C: \ grldr file already exists. You can change the name as needed.
After the restart, grub4dos will be first entered, instead of the Windows boot interface as in 2000/2003/XP.
Attach my menu.1st
# This is a sample menu. LST file. You shoshould make some changes to it.
# The old install method of booting via the stage-files has been removed.
# Please install grldr boot startup code to MBR with the bootlace.com
# Utility under DOS/Win9x or Linux.
Color black/Cyan yellow/Cyan
Timeout 3
Default/Default
Title Windows Vista
Find -- Set-root/bootmgr
Chainloader/bootmgr
Title arch Linux
Root (hd0, 1)
Kernel/vmlinuz26 root =/dev/sda6 Ro noapic VGA = 773
Initrd/kernel26.img
Title arch Linux fallback
Root (hd0, 1)
Kernel/vmlinuz26 root =/dev/sda6 Ro noapic VGA = 773
Initrd/kernel26-fallback.img
Title find and load ntldr of Windows NT/2 k/XP
Fallback 1
Find -- Set-root/ntldr
Chainloader/ntldr
Savedefault -- Wait = 2
Title CommandLine
Savedefault -- Wait = 2
CommandLine
Title reboot
Savedefault -- Wait = 2
Reboot
Title halt
Savedefault -- Wait = 2
Halt
Title install Arch
Kernel (hd0, 0)/isolinux/vmlinuz VGA = 773
Initrd (hd0, 0)/isolinux/initrd. img
Title install Ubuntu
Find -- Set-root/ubuntu-8.04-desktop-amd64.iso
Kernel (hd0, 0)/Casper/vmlinuz boot = Casper
Initrd (hd0, 0)/Casper/initrd.gz