网站首页 > 开源技术 正文
发信人: AllanYan (【螃蟹】), 信区: LinuxUnix. 本篇人气: 361
标 题: Win2k3+Solaris+FreeBSD+Linux 疯狂装记
发信站: 南京大学小百合站 (Wed Oct 27 22:58:19 2004)
【 以下文字转载自 LinuxUnix 讨论区 】【 原文由 AllanYan 所发表 】
疯狂装记(仅供想装多系统的爱好者参考)
前提条件:
1.了解磁盘引导的过程和原理 和 dd这个命令
2.一个可读写的远程FTP站点 或者是可以保存数据的东东
3.以下磁盘分区都以 Liunx 的格式命名
4.其他的各种“常识”请参考版内精华区
Step 1:Windows 的安装
这个就不用说了吧 :)
这个系统我安装了好久了,基本上已经配置好了好多的东西;但是每次看到别人说Solaris、FreeBSD什么的,心里总是痒痒的 ^_^ 可是安装一个陌生的系统总意味着拿着你现在的磁盘分区开玩笑的,所以一直都是看看文章,不敢动,huhu;这次痛下决心--
1.1 先保存Windows下重要数据
我是把他们保存到另外一个物理硬盘;并且关机后拔掉那个保存数据的硬盘,呵呵,以防万一嘛,好歹我这么长时间收集的歌儿和好东东不能拿来冒险的^_^。当然你也会有自己保存自己数据的方式。这里就不罗嗦了,反正是“安全第一"!!!
1.2 利用分区软件划分磁盘分区
我试了半天的 PartitionMagic ,总是说在2003要罢工--不能分区。没办法,我只好在块D盘上找到一个叫什么 Smart Fdisk 的东东,划分了一下了分区:
分区类型 已(将)安装的操作系统 文件系统 大小(GB) 对应Linux命名
主分区 1 原来的Windows NTFS 8 hda1
主分区 2 计划安装 Solaris Swap 8 hda2
主分区 3 计划安装FreeBSD 未格式化 8 hda3
扩展分区
逻辑分区1 作为以后保存数据用 NTFS 45 hda5
逻辑分区2 保存Linux安装的.ISO文件 FAT 2 hda6
空白分区 计划安装Linux系统 --- 7 --
注:(0)一个IDE硬盘最多的主分区是4个,扩展分区(只能有一个)也算一个主分区。基本 上面的是满打满算的一个划分方法 :)
(1)我硬盘是80G的,所以给空间比较大方,^_^。基本上我是要安装所有的软件包的 这年头有大硬盘留着不用是对不起它们的,嘿嘿。
(2)Solaris(原来叫SunOS)所需要的磁盘格式同 Linux Swap 是一样的。并且如果你 不想凭空多个solaris引导学要的fat主分区的话(况且已经满打满算了),最好先用软件分出一个Swap分区来。为什么要这样,后面会谈到的。
(3)扩展分区里的逻辑分区2是准备用来保存装linux所需的iso文件的。因为硬盘安装时只能访问fat(反正rh是这样的)的,而45G的逻辑分区在windows磁盘管理中有没办法格式化成fat,所以只能做以上划分。并且逻辑分区将作为以后的linux的物理独立的分区/home,对于保存linux文件而言也是益事!!
Step 2: 安装 FreeBSD 5.2.1 系统
2.1 刻录FreeBSD安装盘
1CD From :
ftp://gnu.nju.edu.cn/linux/Distribution/FreeBSD/5.2.1 5.2.1-RELEASE-i386-disc1.iso
Q: 为什么不从硬盘安装FreeBSD ?
A: 硬盘安装FreeBSD我试过,需要两张软盘,而且有时候总说找不到安装源。
所以这次我从 GNU/linux/Distribution/FreeBSD/5.2.1 拖了
5.2.1-RELEASE-i386-disc1.iso 那文件刻了一张盘,就ok了。我也不知道
5.2.1-RELEASE-i386-bootonly.iso和5.2.1-RELEASE-i386-disc2.iso有什么用,而且我
以前试过那个5.2.1-RELEASE-i386-bootonly.iso,有问题、不能装。这次干脆就用
这个个ISO,hoho。
2.2 CD-ROM 安装FreeBSD
这个基本上不是很难,关健是自己要找点时间看看freebsd的书。我手头上从图书馆
借来了一本《FreeBSD HandBoot (第二版)中文版》,还不错,安装过程中帮了我大的忙
先看清楚书中讲的东西再来试,当然要是你是牛人,现学现卖也无妨。不过还是建
议看书先 :)。这其中要提到的是在选择freebsd的安装目的磁盘(slice)的时候,
要将前面的主分区3先删掉,再在那个位置创建一个安装freebsd的slice,默认就行
了。就这样按部就班的安装freebsd。适当的时候选择安装freebsd的bootmanager,
这个到后面有用的。freebsd 的引导器的样子是:
F1 ?? // 主分区 1
F2 ?? // 主分区 2
F3 Freebsd // 主分区 3
2.3 取得FreeBSD在MBR的512字节的引导映象
在FreeBSD下 # dd if=/dev/ad1s of=freebsd.bsd bs=512 count=1
再通过ftp,把 freebsd.bsd 的这个映象传到ftp上保存。重启动到windows下,
从ftp上拖下freebsd.bsd到windows的c:。编辑c:\boot.ini,添加 C:\freebsd.bsd="FreeBSD"
这一句,就在windows的ntloader中添加了freebsd的启动条目了。这样做的原因
主要是怕万一mbr的引导器被野蛮的替换掉的话,不至于没法再进系统。安全第一!
!!
这样freebsd就搞定了 :)
Setp 3: 安装 Solaris 9 for x86
3.1 刻录 Solaris 9 安装盘
3CD From :(刻录解压后的iso文件,不需要sol-9-u2-install-x86-iso.zip)
ftp://gnu.nju.edu.cn/linux/Distribution/Solaris9.x86
sol-9-u2-x86-v1.zip ---》简称 setup 盘
sol-9-u2-x86-v2.zip --》 简称 update 盘
sol-9-u2-lang-x86-iso.zip ---》简称 lang 盘
3.2 安装 Solaris 9
强烈申明不要用sol-9-u2-install-x86-iso.zip这个盘来启动安装。要是你顶要这么
来的话,一不小心就让硬盘上的所有分区×掉的。我吃过苦头,@_@。插入上面的
setup盘光盘启动安装。
3.2.1 setup盘
前面我说到要先将 主分区 2 格式化成linux swap格式的原因,其实就是为了方便
solaris安装程序找到这个分区后就安装系统后就在这个slice上安装系统。
要是在手动设定分区,要不是安装不了,就是要破坏其他的分区!!
反正只要是询问分区的时候,按F2默认继续好了
Solaris安装完setup盘后会重新启动。并且也不问你就安装了一个引导选择器。
这个引导器的“大概”样子是:
1 NTFS(OS/2,WinNT) //主分区1
2 Solaris(SunOS) //主分区2
3 BSD(FreeBSD) //主分区3
Input a number to boot:_
选择 2,回车,启动到 solaris 继续后面的安装
3.2.2 update盘和lang盘
这里面的就比较容易了。当它提醒插入2of2那个盘的时候,就插如 update 盘。
其实我们可以看到,solaris这个时候已经具有了操作系统的所有功能,只不过在
更新升级系统而已 ,
右击桌面还有菜单,蛮好玩的 ^_^。适当的时候就插入 lang盘。我在setup盘装的那
中选择了 简体中文 utf-8 格式的,这里就要使用这个lang盘。
重启,引导器还是上面的那个样子。这样solaris就安装好了。
3.2.3 取得freebsd在MBR的512字节的引导映象
选择上面的 3 BSD(FreeBSD) 进入FreeBSD系统
在FreeBSD下 # dd if=/dev/ad1s of=solaris.sun bs=512 count=1
再通过ftp,把 solaris.sun 的这个映象传到ftp上保存。重启动到windows下,
从ftp上拖下solaris.sun到windows的c:。编辑c:\boot.ini,添加
C:\solaris.sun="Solaris"
这一句,就在windows的ntloader中添加了solaris.sun的启动条目了。
原因同“2.3 取得FreeBSD在MBR的512字节的引导映象”一样!! 安全考虑。
3.2.4 重启
重启动我们会发现引导器又变成了 Freebsd 的了。就是那个 F1、F2、F3 什么的。
反正
只要被freebsd发现mbr的引导器不是自己的话,它就不爽,要再刷新之 :)
F1 => windows的ntloader (引导记录: windows | Solaris | FreeBSD)
F2 => solaris 的bootmanager (1 NTFS | 2 Solaris |3 BSD)
F3 => 启动FreeBSD
Step 4:安装 Liunx 操作系统
这个还是计划之中了。目前还没有安装,不过安装这个东东也不是难事了,我也就
不在这里废话了,呵呵。至于说关于引导器的问题。我们可以计划:
安装grub ->进入linux # dd if=/dev/hda of=/mnt/win/linux.lnx bs=512 count=1
同样的方式在 boot.ini 中添加 C:\linux.liunx="linux";
再dos启动盘 fdisk/mbr 去掉或者是启动到 freebsd 借刀杀人 ^_^
去掉Grub,只使用 windows的 osloader。
到最后的引导器情况为:
启动机器 -> F1 ->NTOSloader
->Windows 2003 //直接进入windows
->Solaris //(Sun BootManager)
->FreeBSD //(FreeBSD BootManager)
->Linux //(Grub BootManager)
->DOS //(WinNTOSloader)
->Linux //直接进入Linux
F2 ->Solaris (Sun BootManager)
->1 NTFS //(WinNTOSloader)
->2 Solaris //直接进入Solaris
->3 FreeBSD //(FreeBSD BootManager)
F3 ->FreeBSD //直接进入FreeBSD
分区情况为:
分区类型 安装的操作系统 文件系统 大小(GB) 对应Linux命名
主分区 1 Windows 2003 NTFS 8 hda1
主分区 2 Solaris Solaris Slice 8 hda2
主分区 3 FreeBSD BSD Slice 8 hda3
扩展分区
逻辑分区1 个人数据盘 NTFS 45 hda5
逻辑分区2 Linux /home ext3 2 hda6
逻辑分区3 Linux / ext3 ~7 hda7
逻辑分区4 Linux Swap Swap 512MB had8
好了,谢谢你看完我这篇“疯狂装记”,感兴趣的话,我一起研究研究 :)
0.Document Abstract
==============================================================================
[Author ] S.C.Yan (allan.yan@gmail.com), LilyBBS,Nanjing University, P.R.China[XChange] This document is subject to the License of GDL (CopyLeft) recent one
[Press ] First publish @ 2007.9.19 on BBS.NJU.EDU.CN as personal weblog site
[Keyword] Windows Linux 'Max OS X' Solaris 4in1 Share 'Desktop Snapshot'
Here is nothing about WHY | HOW I've got 4 operating systems just in one pc,but something about where & what my personal favourites reside & look like,If you are interested, in the WHY or HOW or in anything else,WAIT for furtherhowto weblog documents, or contact me here in BBS or email me directly .
1.Hardware Platform
[ARC] - Generic Intel Compatible x86 32bit
[CPU] - Intel Celeron M Proccessor 1200MHz
[MEM] - Kingston DDR333 RAM 512MB
[DSK] - Seagate ATA 5400.4 Mobile 2M Cache 80GB
[LCD] - Toshiba 14' Inch LCD @ 1024x768 60Hz
2.Disk Partitioning
Primary /dev/hda1 FAT32 [Microsoft Windows XP Professional SP2]
Extended /dev/hda2 EXT
/hda5 FAT32 [Personal Private and Sharing Warhouse]
/hda6 Etx3 [GNU/Linux Debian at a Kernel of 2.6.x]
Primary /dev/hda3 HFS+ [Apple Mac OS X Tiger @ Intel x86 Arch]
Primary /dev/hda4 UFS [Sun Microsystems SunOS Solaris 10 x86]
3.Desktop Snapshot
[Microsoft Windows XP Professional SP2]
http://bbs.nju.edu.cn/file/A/AllanYan/winxpfat.jpg
[Personal Private and Sharing Warhouse]
http://bbs.nju.edu.cn/file/A/AllanYan/warhouse.jpg
[GNU/Linux Debian at a Kernel of 2.6.x]
http://bbs.nju.edu.cn/file/A/AllanYan/linuxdeb.jpg
[Apple Mac OS X Tiger @ Intel x86 Arch]
http://bbs.nju.edu.cn/file/A/AllanYan/macosx86.jpg
[Sun Microsystems SunOS Solaris 10 x86]
http://bbs.nju.edu.cn/file/A/AllanYan/sunos510.jpg
4.Grub MBR menu.lst
timeout 7
default saved
hidemenu
splashimage=(hd0,4)/Setup/Config/Common/grub/mine.xpm
title ### Available operating systems and tools as follows: ###
boot
title ---------------------------------------------------------
boot
title [Windows] Microsoft Windows XP Professional SP2 [Windows]
root (hd0,0)
chainloader +1
savedefault
boot
title [LinuxOS] GNU/Linux Debian at a Kernel of 2.6.x [LinuxOS]
root (hd0,5)
kernel /vmlinuz root=/dev/hda6 ro vga=795 quiet
initrd /initrd.img
#root (hd0,5)
#chainloader +1
savedefault
boot
title [MacOS-X] Apple Mac OS X Tiger @ Intel x86 Arch [MacOS-X]
root (hd0,2)
chainloader +1
savedefault
boot
title [Solaris] Sun Microsystems SunOS Solaris 10 x86 [Solaris]
#kernel (hd0,4)/Setup/Config/Common/grub/sunos/multiboot
#module (hd0,4)/Setup/Config/Common/grub/sunos/boot_archive
root (hd0,3)
chainloader +1
savedefault
boot
title ---------------------------------------------------------
boot
title [-MSDOS-] Start up MSDOS tools in the Real Mode [-MSDOS-]
kernel (hd0,4)/Setup/Config/Common/grub/dos/memdisk.gz
initrd (hd0,4)/Setup/Config/Common/grub/dos/dos.img
boot
title [-Linux-] Install GNU/Linux via Various Sources [-Linux-]
kernel (hd0,4)/Setup/Config/Common/grub/linux/linux root=/dev/ram0
ramdisk_size=20000 devfs=mount,dall vga=773
initrd (hd0,4)/Setup/Config/Common/grub/linux/initrd.gz
boot
title [-SunOS-] Install Solaris 10 from CDROM or .iso [-SunOS-]
kernel (hd0,4)/Setup/Config/Common/grub/sunos/multiboot kernel/unix -B install_media=dsk
module (hd0,4)/Setup/Config/Common/grub/sunos/x86.miniroot
boot
title [-GRLDR-] Install (hd0,4)/GRUB to hard disk MBR [-GRLDR-]
install (hd0,4)/Setup/Config/Common/grub/stage1 d (hd0) (hd0,4)/Setup/Config /Common/grub/stage2 p (hd0,4)/Setup/Config/Common/grub/menu.lst
title [-GHOST-] Backup or Restrore Partition by Ghost [-GHOST-]
kernel (hd0,4)/Setup/Config/Common/grub/dos/memdisk.gz
initrd (hd0,4)/Setup/Config/Common/grub/dos/ghost.img
boot
title ---------------------------------------------------------
boot
title [Restart] Reboot the machine by restart it over [Restart]
reboot
title [Powroff] Shutdown the computer by power it off [Powroff]
halt
title ---------------------------------------------------------
boot
title *** - Always a way for a idea coming out of your head ***
boot
猜你喜欢
- 2024-09-11 Arch Linux UEFI模式+M.2(nvme)硬盘 快速安装
- 2024-09-11 Ubuntu开启画面过后黑屏(ubuntu打开后黑屏)
- 2024-09-11 Legacy模式虚拟机,grub文件丢失如何处理
- 2024-09-11 Windows7下安装Ubuntu双系统遇到的坑:Ubuntu从安装到卸载到重装
- 2024-09-11 系统小技巧:迁移Wubi安装的ubuntu到Windows 10
- 2024-09-11 CentOS 6和CentOS 7丢失grub.conf后如何启动系统?
- 2024-09-11 U盘重装|U盘重装系统bios不支持u盘启动怎么办?
- 2024-09-11 PE系统中的Bootice工具是什么,有什么用,你知道么?
- 2024-09-11 Linux学习日志20080311(linux学习视频)
- 2024-09-11 傻瓜式的电脑重装系统方法,你还花50块请人修吗?
你 发表评论:
欢迎- 最近发表
- 标签列表
-
- jdk (81)
- putty (66)
- rufus (78)
- 内网穿透 (89)
- okhttp (70)
- powertoys (74)
- windowsterminal (81)
- netcat (65)
- ghostscript (65)
- veracrypt (65)
- asp.netcore (70)
- wrk (67)
- aspose.words (80)
- itk (80)
- ajaxfileupload.js (66)
- sqlhelper (67)
- express.js (67)
- phpmailer (67)
- xjar (70)
- redisclient (78)
- wakeonlan (66)
- tinygo (85)
- startbbs (72)
- webftp (82)
- vsvim (79)
本文暂时没有评论,来添加一个吧(●'◡'●)