多系统共存引导~好爽哦~发贴动力狂飙,点这里~
【多系统引导】
- 要实现多系统共存在一个硬盘上,首先需要选择一个多系统引导器,比如grub,比如nt loader...
- 然后把硬盘分成几个区,每个区安装一个操作系统,比如主分区1(solaris分区)安装solaris,主分区2(winnt分区)安装windows......
- 最后把所选择地多系统引导器所在地那个分区激活,并修改多系统引导器地菜单文件,让其能选择从多个分区启动系统
- 比如如果想用grub,就先安装window,在安装solaris(solaris安装自带grub),可以简化步骤;反之亦然~
- 如果希望在各个操作系统之间方便地共享硬盘上的文件,可划分一个分区,文件系统为FAT16,把文件放在这个文件系统上,各个操作系统都可以挂接这个分区
步骤概要:- 在硬盘上先划分一个Solaris分区并激活,其他剩余空间不划分,预留给windows系统和其他系统
- 在刚才划分的solaris分区上安装Solaris系统
- 用windows安装盘启动并安装windows系统和其他系统
- 从Solaris安装盘引导进入单用户模式,重新把solaris分区激活,并修改menu.lst
划分空间(第一个主分区,solaris)用Solaris安装光盘启动,选择进入单用户模式
# formatSearching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0
/pci@0,0/pci1000,30@10/sd@0,0
1. c2t0d0
/pci@0,0/pci15ad,790@11/pci1000,30@0/sd@0,0
Specify disk (enter its number): 0
selecting c1t0d0
[disk formatted]
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
! - execute , then return
quit
format> fdisk
No fdisk table exists. The default partition for the disk is:
a 100% "SOLARIS System" partition
Type "y" to accept the default partition, otherwise type "n" to edit the
partition table. n
Total disk size is 4095 cylinders
Cylinder size is 4096 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
以下步骤仅创建一个主分区,大小为2048个柱组(4GB)
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection: 1
Select the partition type to create:
1=SOLARIS2 2=UNIX 3=PCIXOS 4=Other
5=DOS12 6=DOS16 7=DOSEXT 8=DOSBIG
9=DOS16LBA A=x86 Boot B=Diagnostic C=FAT32
D=FAT32LBA E=DOSEXTLBA F=EFI 0=Exit? 1
Specify the percentage of disk to use for this partition
(or type "c" to specify the size in cylinders). c
Enter starting cylinder number: 1
Enter partition size in cylinders: 2048
Should this become the active partition? If yes, it will be activated
each time the computer is reset or turned on.
Please type "y" or "n". y
Total disk size is 4095 cylinders
Cylinder size is 4096 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 Active Solaris2 1 2048 2048 50
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection: 5
format> q
# init 6
安装Solaris 10 x86系统
重启后,从光盘引导,选择交互式安装,步骤略
安装windows系统(第二个主分区,ntfs)
1、把windows 2000/xp/2003放入光驱,启动电脑,在安装时会出现选择分区的提示,这是会看到显示1、未知的分区(因为windows不认识solaris分区)
2、未分配的空间
2、按c进行划分空间,只划分一个主分区,剩余空间预留,等安装完windows后,在windows里面划分
在windows中划分空间(第三个主分区,fat16)
3、安装完毕,启动,自动进入windows
4、在windows的磁盘管理中,对剩余的空间再划分一个主分区,文件系统为fat(fat16),显示为D盘
5、其他空间如何分区随意
6、在D盘创建一个目录fat-main,在本文最后你可以在Solaris系统中对D盘进行操作。
【如果你认为这篇文章对您有所帮助,请点这里让更多人一起分享~】
重新调整分区(激活第一个主分区)
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0
/pci@0,0/pci1000,30@10/sd@0,0
1. c2t0d0
/pci@0,0/pci15ad,790@11/pci1000,30@0/sd@0,0
Specify disk (enter its number): 0
selecting c1t0d0
[disk formatted]
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
fdisk - run the fdisk program
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
! - execute , then return
quit
format> fdisk
Total disk size is 4095 cylinders
Cylinder size is 4096 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 Solaris2 1 2048 2048 50 -----这个是第一步创建的Solaris分区
2 Active IFS: NTFS 2051 3588 1538 38 -----这个是windows分区
3 DOS-BIG 3588 3846 259 6 -----这个分区是在windows中创建的第三个硬盘主分区,solaris也可挂接
4 EXT LBA 3847 4094 248 6
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection: 2
Specify the partition number to boot from (or specify 0 for none): 1
修改grub启动菜单文件
- 用Solaris安装光盘重启系统,进入单用户模式,在提示是否把硬盘上的已安装的操作系统挂接在/a目录时,选no.
- mount -o rw /dev/dsk/c1t0d0s0 /a
- vi /a/boot/grub/menu.lst 在最后加入以下几行
title Windows
root (hd0,1) -----windows安装在第一个硬盘(hd0)的第二个主分区(1),所以是root (hd0,1)
chainloader +1 ------从该分区的第0个扇区开始读取一个扇区,即只读第一个扇区(windows 的MBR)
最后弹出光盘,重启系统,Grub启动菜单多了一行选择:
挂接FAT分区,实现一个硬盘上两个系统间的文件共享
- 如果你选择windows,将进入windows系统,这里我们选择进入Solaris
- 挂接在windows中创建的FAT文件系统分区(windows的D盘,硬盘的第3个主分区)
# ls /dev/dsk/c1t0d0p*
c1t0d0p0 c1t0d0p1 c1t0d0p2 c1t0d0p3 c1t0d0p4
# mount -F pcfs /dev/dsk/c1t0d0p3 /mnt ----c1t0d0p3就是在windows中创建的FAT分区(硬盘上的第三个主分区)
# ls /mnt
fat-main
【如果你认为这篇文章对您有所帮助,请点这里给我个推荐,让我动力更足的为大家奉献更多好文,谢谢~】
阅读(3362) | 评论(0) | 转发(0) |