免费注册 查看新帖 |

Chinaunix

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

[Windows 8] 安装solaris,linux和windows在一块硬盘的方法 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-09-09 17:39 |只看该作者 |倒序浏览
Single hard disk, Solaris, Linux, Windows NT
Overview

There is only one hard disk drive on the system, IDE or SCSI. Three operating systems are installed: Solaris, Linux and Windows NT. We use FAT volume on the extended partition enables communication between the three operating systems. The default boot manager is Solaris one.
Partitioning

The hard disk will be partitioned as follows (proportions are meaningless):

  1. Primary - NTFS
Windows NT

  2. Primary - Linux ext2fs
Linux

  3. Primary - Solaris UFS
Solaris
active  
  4. Extended
               
  4.1. FAT-32
               
  4.2. Linux swap
               
  4.3. Linux ext2fs
               
  4.4. NTFS
               
  4.5. NTFS

Recipe

   1. Connect hardware and configure BIOS (see IV.1 for details).
   2. Install Windows NT. Create one primary partition at the beginning of the hard disk and format it with NTFS (see notes on Planning partitions).
   3. Install Linux. Remember that Linux needs a swap file system, which must be placed in a logical volume as we need one more primary partition for Solaris while there are only four partitions per a hard disk allowed. There is yet another advantage in putting Linux swap into extended partition. Since Solaris and Linux swap partitions share the same 0x82 ID, we avoid problems as Solaris will not look into the extended partition.

      With Linux fdisk create one primary partition of type ext2fs - 0x83 for at least / and /boot file systems, one primary partition for future Solaris installation - temporarily it may be FAT-32, and an extended partition. The first logical volume on the extended partition should be FAT-16 or FAT-32 to make it accessible by Solaris. After FAT volume create one logical volume for swap of type 0x82 and as many logical volumes of type ext2fs - 0x83 for other file systems, as you need. For desktop Linux you will probably put /, /boot, /var, /tmp and /usr file systems into the fdisk primary partition, swap and /home file systems into separate logical volumes. Before, read notes on the size and placement of Linux primary partition, and [Koehntopp], [Veselosky] for organizing Linux file systems.

      Install Lilo into /dev/sda2 - Linux primary partition. At this point, Linux partition is marked active and no other system can be booted.
   4. To avoid problems with Solaris disk geometry, use Ranish PM to change temporary FAT-32 primary partition to Solaris partition, i.e. type 0x82. You can also use your favorite disk editor to accomplish that task.
   5. Install Solaris. The installer should detect created Solaris partition and do not create useless x86 Boot partition. Solaris partition becomes the active one. Solaris boot manager becomes the default. It lets you boot Solaris, Linux and NT.
   6. Create FAT-16 volume on the extended partition e.g. with Linux fdisk or Ranish PM.
   7. Under Linux, create /share directory, and add the following line to /etc/fstab file:

/dev/sda5        /share        vfat        user,rw,exec        0        0

      This will make FAT-16 partition automatically mounted at the boot time.
   8. Use NT Disk Administrator to create separate NTFS logical volumes for applications and user data. You may assign drive letters so that D: and E: will be NTFS volumes, and FAT-16 volume F: or e.g. S: (share).
   9. Under Solaris, create /share directory, and add the following line to /etc/vfstab file under Solaris:

/dev/dsk/c0t0d0p4:c        -        /share        pcfs        -        yes        -

      FAT-16 partition will be mounted automatically at the boot time (see notes on mounting FAT partitions).

LILO as the default boot manager

   1. Boot Linux.
   2. Edit /etc/lilo.conf as in the example:

boot=/dev/sda
map=/boot/map
install=/boot/boot.b
compact
prompt
timeout=50
image=/boot/vmlinuz-2.0.39
        label=linux
        root=/dev/sda2
        read-only
other=/dev/sda1
        label=nt
other=/dev/sda3
        label=solaris   

   3. Run as root /sbin/lilo to apply changes (see notes on LILO configuration).


Remarks:

    * If the hard disk is IDE use hda instead of sda and drop t0.
    * The same scenario can be used to install any MS Windows system not only NT. If that is the case NTFS should be replaced by FAT-32.

论坛徽章:
0
2 [报告]
发表于 2004-09-09 18:59 |只看该作者

安装solaris,linux和windows在一块硬盘的方法

2. Install Windows NT. Create one primary partition at the beginning of the hard disk and format it with NTFS .
如果我装的是window xp 是不是FAT-32 就可以,而其他的不用改动?
thank you very much!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP