Solaris + WinXP Pro双启动的点滴心得

机器:IBM ThinkPad T30, 40GHD 512MRam
分区:1)primary 8G,xp 2)20G,data 3)Solaris
用PQ给Solaris分区,或等到安装过程中用Solaris的fdiskf分区 。
重要的一点: 在Solaris分区前、后(如果后面还有Windows的分区)留上一点间隔(由于solaris的fdisk分区后容易出问题) 。
顺序:先xp,后solaris
安装完后,由solaris的bootloader启动 。当然你也可以让xp的分区active,由NT loader启动 。

下面是一个参考文章:
************************************************************************************************* Quick summary of steps:

1. Install Windows.

2. Install Linux in an extended partition.

3. Install Solaris.

4. Fix LILO.

I"ll go through the formula below and explain at the end why some of the steps are done this way. The crux of the problem is that Solaris really slices up a hard drive during installation, leaving it in a state that Linux can"t handle. Using this formula, I"ve set up triple-boot Machines in less than six hours.

Disk Partitioning 101

There are some basic things to know about how a hard drive can be partitioned, which means dividing it into different areas. Always back up your data before doing any partitioning. Each OS has a tool to partition a hard drive. Windows, Linux, and Solaris all have a tool called fdisk, although they have different capabilitIEs and interfaces. Use the fdisk tool from the particular OS you"re installing. Windows can have a primary partition and an extended partition. The extended partition can be sliced up further into smaller logical partitions. The primary partition on the first hard drive will become c:, and the other partitions will pick up drive letters according to Windows rules.

Many versions of Linux, except for the newest ones, and Solaris must have a boot partition that is below the 1023th cylinder on the hard drive. The fdisk from Linux can set up four primary partitions or three primary and one extended. Like Windows, the extended partition can be further divided. The master IDE drive on the first channel is hda. Solaris requires a primary partition during installation that it will divide into two primaries. The first partition can be divided up into slices 0 through 7, with 2 being the overlap slice that shouldn"t be modified by the user. Both Linux and Solaris have very powerful fdisk tools and can specify what type each partition will be. They can even say that a partition will be for Windows.

Formula

Step 1: Installing Windows

Do a regular Windows 98 installation according to the manual. Consider the 1023 cylinder limitations for the boot manager when you are partitioning the hard drive so don"t make it too big. Since the hard drive has no partitions on it, the first time you boot it up, you will run fdisk, specify a partition, and exit fdisk. You will have to reboot, then format your partition by typing format c:, and then run the Windows setup program. Windows will be on partition 1.

Step 2: Installing Linux

Further partition the hard drive. Set up the extended partition on partition 4, dividing it as you desire for the Linux installation. You need at least two logical partitions, one for / and a swap partition. Many people set up several more, /home being the most common. Do the install. Make a floppy boot disk (this is critical). You will use the boot floppy in a later step to reestablish LILO. My habit is to install Linux at the high end of the hard drive so that after the installations are complete, the partitions are in numerical order according to the cylinders. A better reason for doing this is so you can modify Linux to live above cylinder 1023. Solaris can"t do that, so I put it lower on the hard drive. For this article, I assume you"re using two partititions: / in 5, swap in 6.

Step 2a: Modifying Linux

Some files on Linux need to be modified before we can move onto the Solaris install. First, modify /etc/lilo.conf as root. Change the line with /dev/hda5 in it for booting Linux to /dev/hda9. See Listing 1 for a sample /etc/lilo.conf file. Next, modify /etc/fstab. The line for hda5 needs to become hda9 and the swap line from hda6 to hda10. Listing 2 shows a modified /etc/fstab file. These changes are because of the way Solaris will install. Finally, trust me on this next part. Run fdisk /dev/hda and delete the extended partition, which will also delete your / and swap partitions. This is because of the way Solaris will install. We will re-establish these partitions later, so you won"t lose any data. Make sure that you record the exact start and stop cylinders of the / and swap partitions. If done correctly, the only partition visible on the hard drive right now is Windows in partition 1.

推荐阅读