An understanding of the information in the preceding sections of this guide is assumed.
The following walkthrough describes how to create a multiboot setup using Grub4dos, with options for Windows 2000; Windows XP; Windows Vista; and Puppy Linux operating systems. Installation instructions for individual operating systems are not provided, as the intention of the walkthrough is to give an overview of using Grub4dos. There are various ways to create a multiboot setup - this is only one method.
The system will be comprised of two separate hard disks, with the following partition structure -
As you can see from the table above, the Windows 2000 and Windows XP partitions are primary, whilst the Puppy Linux and Data partitions are logical volumes in the extended partition. Lastly, Windows Vista is installed on a separate disk. Following the installation of the operating systems, Grub4dos will be configured to hide the OS partitions from each other. The Data Partition (hd0,5) will be accessible from all systems.
The following instructions assume that the HDD's are unpartitioned. This section will focus on the first disk (hd0) - the Vista disk (hd1) will be covered later. To create the partition structure we will install the first operating system (Windows 2000) and then use the Windows disk management console to create the rest.
- Boot from the Windows 2000 installation CD and follow the instructions to create a 5GB partition with NT filesystem (NTFS).
- Install Windows to the partition created in the previous step. When the Windows 2000 installation has completed, boot into the operating system and open the Disk Management console (Start > Run... and type diskmgmt.msc)
- Right-click on the "Unallocated" section in "Disk 0" and choose option "New Partition..." - then follow the prompts to create a Primary partition, 10240MB (10GB) in size, of NTFS type.
- Repeat previous step, however this time create an extended partition using the remaining space.
- Right-click on the "Free space" section and choose option "New Logical Drive..." - then follow the prompts to create a Logical drive, 200MB in size, of FAT type.
- Repeat previous step, however this time create a Logical drive using the remaining space, of FAT32 type.
- To prepare the Windows Vista disk, Right-click on the "Unallocated" section in "Disk 1" and choose option "New Partition..." - then follow the prompts to create a Primary partition using all available space, of NTFS type.
- To install XP to (hd0,1), Right-click on the second partition on "Disk 0" and select option "Mark Partition as Active" - do NOT miss out this step.
- Insert the Windows XP installation CD and reboot the computer. Ensuring that CD is set to boot first in the BIOS.
- You will be prompted to "Press any key to boot from CD..." - do so or the BIOS will attempt to boot from the partition we set as active earlier, which is empty.
- Follow the instructions to install XP. When prompted to choose a partition, choose (hd0,1) - this should be "C:" drive.
- Complete the installation and boot into Windows XP, we will install Linux from XP.
- Copy the following files from the Linux Puppy CD, to the root of the first logical volume (hd0,4) -
- vmlinuz
- initrd.gz
- pup_4**.sfs
- zdrv_4**.sfs
- Create a marker file at the root of (hd0,4) - if using an IDE HDD create file idehd (without a file extension).
Attempting to install Windows Vista to (hd1) will result in the BCD store and other boot files being written to the active partition on (hd0). To avoid this, temporarily remove (hd0) from the system (either disable the disk in the BIOS settings or physically remove it by disconnecting the IDE/SATA lead). Make sure that the Vista disk is set as "Master" and install Windows Vista from the installation DVD.
When the Vista installation has completed, reconnect the first hard disk and set it as "master", and set the Vista disk as "slave".
Reboot the PC, you should boot into Windows XP, as (hd0,1) is still the active partition.
To create the Grub4dos boot configuration file menu.lst, open notepad and enter the following text -
color light-blue/blue light-red/red
timeout 10
default 1
Now save the document as menu.lst (make sure it is not saved as menu.lst.txt).
To create an option for Windows 2000 add the following text -
title Windows 2000
chainloader (hd0,0)/ntldr
rootnoverify (hd0)
or,
title Windows 2000
chainloader (hd0,0)+1
rootnoverify (hd0)
As we do not want the other operating systems to be accessible from Windows 2000, we will need to add hide and unhide entries for the other partitions. Edit the Windows 2000 entry to -
title Windows 2000
unhide (hd0,0)
hide (hd0,1)
hide (hd0,4)
unhide (hd0,5)
hide (hd1,0)
chainloader (hd0,0)+1
rootnoverify (hd0)
If the Windows 2000 menu entry is selected, the only visible partitions will be (hd0,0) and (hd0,5) - the Windows 2000 partition and the shared data partition respectively.
To create an option for Windows XP, add the following text/entry -
title Windows XP
hide (hd0,0)
unhide (hd0,1)
hide (hd0,4)
unhide (hd0,5)
hide (hd1,0)
chainloader (hd0,0)+1
rootnoverify (hd0)
or,
title Windows XP
hide (hd0,0)
unhide (hd0,1)
hide (hd0,4)
unhide (hd0,5)
hide (hd1,0)
chainloader (hd0,0)/ntldr
rootnoverify (hd0)
To create an entry for Linux Puppy, add the following text/entry -
title Linux Puppy
hide (hd0,0)
hide (hd0,1)
unhide (hd0,4)
unhide (hd0,5)
hide (hd1,0)
find --set-root /vmlinuz
kernel /puppy400/vmlinuz pmedia=idehd psubdir=puppy400 pkeys=uk
initrd /puppy400/initrd.gz
or,
title Linux Puppy
hide (hd0,0)
hide (hd0,1)
unhide (hd0,4)
unhide (hd0,5)
hide (hd1,0)
kernel (hd0,4)/puppy400/vmlinuz pmedia=idehd psubdir=puppy400 pkeys=uk
initrd (hd0,4)/puppy400/initrd.gz
rootnoverify (hd0,4)
To create a Windows Vista entry we will need to use the map command to change the hard disk order, as Vista will not boot from a non first hard disk. Use the following command -
title Windows Vista
hide (hd0,0)
hide (hd0,1)
hide (hd0,4)
unhide (hd0,5)
unhide (hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
map --hook
find --set-root /bootmgr
chainloader /bootmgr
rootnoverify (hd0)
The menu.lst file should contain similar entries to the following -
Finally, Grub4dos will need to be installed by following the instructions here, and grldr and menu.lst will need to be copied to a supported device.
PREVIOUS INDEX NEXT
Сайт создан в системе
uCoz