免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 10816 | 回复: 10
打印 上一主题 下一主题

[Windows 8] grub配置Solaris,windows,linux等N多系统共存的多系统引导(CU升级第一贴) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-03 23:06 |只看该作者 |倒序浏览
有推荐才有动力狂飙,点这里推荐一把~谢谢!


【多系统引导】
  • 要实现多系统共存在一个硬盘上,首先需要选择一个多系统引导器,比如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安装光盘启动,选择进入单用户模式

# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <DEFAULT cyl 2046 alt 2 hd 128 sec 32>
          /pci@0,0/pci1000,30@10/sd@0,0
       1. c2t0d0 <VMware,-VMwareVirtualS-1.0 cyl 1042 alt 2 hd 255 sec 63>
          /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
        !<cmd>     - execute <cmd>, 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 <DEFAULT cyl 2046 alt 2 hd 128 sec 32>
          /pci@0,0/pci1000,30@10/sd@0,0
       1. c2t0d0 <DEFAULT cyl 4092 alt 2 hd 128 sec 32>
          /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
        !<cmd>     - execute <cmd>, 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



【如果你认为这篇文章对您有所帮助,请点这里给我个推荐,让我动力更足的为大家奉献更多好文,谢谢~】

免费在线阅读电子版: SUN Solaris 9/10 认证系统管理员学习指南(全球唯一中文版教材)

[ 本帖最后由 yuhuohu 于 2009-7-4 20:29 编辑 ]

评分

参与人数 1可用积分 +5 收起 理由
metor78 + 5 我很赞同

查看全部评分

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
2 [报告]
发表于 2007-07-04 00:14 |只看该作者
有点复杂了,先装windows,后装solaris,然后linux不是更简单一些不过还是得友情支持一下,呵呵。。。。刚干完活回来,就急急来看看CU升级情况,不错,很喜欢

论坛徽章:
0
3 [报告]
发表于 2007-07-04 01:45 |只看该作者
原帖由 东方蜘蛛 于 2007-7-4 00:14 发表
有点复杂了,先装windows,后装solaris,然后linux不是更简单一些不过还是得友情支持一下,呵呵。。。。刚干完活回来,就急急来看看CU升级情况,不错,很喜欢

原帖由 FreeWare 于 2007-7-4 09:07 发表
第一步创建solaris分区没有必要用光盘引导单用户,在安装solaris的时候会让你选择solaris分区的大小以及使用哪个分区号。

原帖由 nus 于 2007-7-4 09:30 发表
还有一些隐藏/重新激活solaris_x86引导的小技巧没有涉及



多谢各位提点!

[ 本帖最后由 yuhuohu 于 2007-9-20 10:01 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2007-07-04 09:07 |只看该作者
第一步创建solaris分区没有必要用光盘引导单用户,在安装solaris的时候会让你选择solaris分区的大小以及使用哪个分区号。

论坛徽章:
0
5 [报告]
发表于 2007-07-04 09:30 |只看该作者
还有一些隐藏/重新激活solaris_x86引导的小技巧没有涉及

论坛徽章:
0
6 [报告]
发表于 2007-09-20 10:01 |只看该作者
原帖由 东方蜘蛛 于 2007-7-4 00:14 发表
有点复杂了,先装windows,后装solaris,然后linux不是更简单一些不过还是得友情支持一下,呵呵。。。。刚干完活回来,就急急来看看CU升级情况,不错,很喜欢

原帖由 FreeWare 于 2007-7-4 09:07 发表
第一步创建solaris分区没有必要用光盘引导单用户,在安装solaris的时候会让你选择solaris分区的大小以及使用哪个分区号。

原帖由 nus 于 2007-7-4 09:30 发表
还有一些隐藏/重新激活solaris_x86引导的小技巧没有涉及



多谢各位提点!

论坛徽章:
0
7 [报告]
发表于 2008-03-24 10:59 |只看该作者
学习了

论坛徽章:
0
8 [报告]
发表于 2008-06-26 09:22 |只看该作者
支持

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
9 [报告]
发表于 2008-06-26 09:27 |只看该作者
帮顶一个!!!

论坛徽章:
0
10 [报告]
发表于 2008-07-21 09:32 |只看该作者
有虚拟机为啥搞得这么复杂,呵呵~
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP