Упатство:Два системи на еден компјутер
Introduction
This is a simple dual boot tutorial, it should give you a good idea how to install gentoo with another OS, namely Windows XP.
Partition Recommendations
- /dev/hda1 Primary - WindowsXP - 3GB minimum
- /dev/hda2 Primary - /boot - 32MB
- /dev/hda3 Primary - swap - 2x ram
- /dev/hda4 Extended - extended partition - maximum available size
- /dev/hda5 Logical - / - 2.5GB minimum
- /dev/hdax Logical - Any other drive(s) you wish to have
On one hard drive you can have a maximum of four primary partitions (hda1, hda2, hda3, hda4). Extended partition is a primary partition that contains any number of logical partitions (hda5, hda6, ...). Only one extended partition is allowed on single hard drive.
Getting Started
Single Drive install
: Note: This install deletes everything on the drive
- Boot the gentoo livecd (This also works with most other livecds.)
- Setup the partitions
- Run cfdisk, and configure your partitions (see the Handbook for partition sizes)
- If Windows is one of the OSes you wish to install, put Windows on the first partition on the drive. (Windows likes to be on top)
Single Drive Install (Windows Pre-Installed)
- Note: This is dangerous, please back up important files.
- Also note that you can use Partition Magic if you are willing to pay for it
- DO NOT use PQBoot or follow the instructions for dual booting in Partition Magic (specifically, don't 'hide' any partitions)
- Run disk defragmenter on Windows, this minimizes your risk when resizing, and increases your ability to resize the drive.
- Boot to a Knoppix CD or any other liveCD that contains "ntfsresize"
- Run qtparted, and resize your partitions
- Partition the newly-created space for gentoo, see the
Handbook for appropriate sizes.
Multi Drive Install
- No special partitioning required with this type of install
- Just have the linux drive first in your boot sequence in the bios.
- It may be necassary in some instances to 'trick' your windows OS into believing it is the primary. To do so use the following in your grub.conf file:
title Windows XP #:1 <-- type: 0 => linux, 1 => windows, 2 => other rootnoverify (hd1,0) #Windows is secondary drive, Linux is primary makeactive chainloader +1 map (hd0) (hd1) # Tell the first hard drive to pretend to be the second map (hd1) (hd0) # Tell the second hard drive to pretend to be the first
Installing the OSes
- Install Windows first (if its not already installed, and you wish to run Windows), install it to that first partiton on the drive.
- Install Gentoo, please refer to the Handbook.
Configuring The Bootloader
Now that you have both OSes installed, it is now time to configure the bootloader.
Lilo
Setup your lilo.conf as described in the Handbook, Then add the following lines
Предлошка:Box File Run lilo :)
Grub
Set up Gentoo's entry in your grub.conf as is described in the Handbook, then add these lines
Предлошка:Box File Now just reboot to change OSs
Finishing up
Now that you have your system setup, you should be able to reboot and choose your OS from the menu.
Notes
- Windows needs to be on a primary partition of the drive; it may work on a logical partiton, but I would not try it.
Potential Problems
- When running off an IDE raid card you may experience problems, IDE raid cards are not well supported in linux, please check what cards are available in the kernel before you attempt to dual boot with an IDE raid card.
See Also
- HOWTO Install Windows after Gentoo
- HOWTO Install Linux after Windows
- HOWTO Dual Boot from Windows Bootloader (NTLDR) and why
fr:HOWTO démarrage de deux systèmes d'exploitation nl:HOWTO Dual boot