制作带有 hpsas 驱动的SCO OpenServer 5.0.6应急光盘和引导光盘安装HP DL380 G5
安装SCO OpenServer 5.0.6虚拟机用来制作应急光盘和引导光盘         安装SCO OpenServer 5.0.6虚拟机 1、        配置AMD PCNet-PCI网卡参数 2、        配置硬盘为SCSI 0:0        blc(0,0,0,0) 3、        配置光驱为IDE 0:0        wd(0,0,0,0) 4、        只安装SCO OpenServer Enterprise System (ver 5.0.6j)
制作installation drivers only应急光盘1 使用installation drivers only的unix核心文件,特点是能link驱动,不能mount光驱,能mount硬盘
安装准备 安装cdrtools-1.8a23-VOLS.tar,得到mkisofs命令
提取SCO安装光盘的引导文件 用UltraISO打开SCO OpenServer 5.0.6.iso,点击“启动光盘”->“保存引导文件”,保存为boot288.img.std,有2.88M,这样做是为了产生一个EAFS文件系统且能放下boot和root两张盘的内容。
以root用户登陆SCO系统
mkdir /tmp/boot288 mkdir /tmp/bootroot1 mkdir /tmp/bootroot2 mkdir /tmp/btld mkdir /tmp/image mkdir /tmp/network mkdir /tmp/soft mkdir /mnt2
拷贝btld1.img 到 /tmp 目录下,btld1.img是hpsas驱动的btld盘,从hp网站上下载EFS-5.790a-osr5,解压得到01_BTLD文件 拷贝boot288.img.std ---> /tmp/image/boot288.img.std
marry -a /tmp/btld1.img  mount -r /dev/marry/tmp/btld1.img /mnt2         
cp -rp /mnt2/hpsas /tmp/btld  chown -R root:sys /tmp/btld/hpsas chmod 755 /tmp/btld/hpsas
umount /mnt2  marry -d /dev/marry/tmp/btld1.img                
unix核心调整 删除与blc驱动冲突的ad驱动 /etc/conf/bin/idinstall -d ad
建立boot盘 cd /dev  mv fd0135ds36 fd0135ds36.std  mv rfd0135ds36 rfd0135ds36.std 
>/tmp/boot.img marry -a /tmp/boot.img  ln /dev/marry/tmp/boot.img /dev/fd0135ds36 l /dev/fd0135ds36 mknod rfd0135ds36 c 76 1
mkdev fd 选2. Emergency Boot and Root floppy filesystems         选3. 135tpi, double sided, 36 sectors per track (2.88Mb 3.5 inch) 选3. Single floppy Boot and Root filesystem (2.88Mb only) 选y                Would you like to format the floppy first? (y/n) 选n                Do you want to place extra files on the root filesystem? (y/n) 选2. Generic boot (builds a special kernel) 提示如下 Copying files to /dev/fd0135ds36 ... Attempting to build a generic kernel using currently installed drivers:         The UNIX Operating System will now be rebuilt.         This will take a few minutes.  Please wait.         Root for this system build is /         The UNIX Kernel has been rebuilt. Compressing the kernel ... Cannot fit built kernel on floppy. Building a generic kernel using installation drivers only:         The UNIX Operating System will now be rebuilt.         This will take a few minutes.  Please wait.         Root for this system build is /         The UNIX Kernel has been rebuilt. Compressing the kernel ... Boot filesystem floppy creation complete. 选q 退出
cd /dev mv fd0135ds36.std fd0135ds36  mv rfd0135ds36.std rfd0135ds36 
mount /dev/marry/tmp/boot.img /mnt
cp /tmp/image/boot288.img.std /tmp/bootroot1/bootroot1.img marry -a /tmp/bootroot1/bootroot1.img  mount /dev/marry/tmp/bootroot1/bootroot1.img /mnt2 rm -rf /mnt2/* cp -rp /mnt/* /mnt2
umount /mnt marry -d /tmp/boot.img rm /tmp/boot.img
建立root盘 cd /dev  mv fd096ds15 fd096ds15.std  mv rfd096ds15 rfd096ds15.std 
>/tmp/root.img marry -a /tmp/root.img  ln /dev/marry/tmp/root.img /dev/fd096ds15 l /dev/fd096ds15 mknod rfd096ds15 c 76 1
mkdev fd 选2. Emergency Boot and Root floppy filesystems         选1.  96tpi, double sided, 15 sectors per track (1.2Mb 5.25 inch) 选1. Root filesystem 选y                Would you like to format the floppy first? (y/n) 选y                Do you want to place extra files on the root filesystem? (y/n) <bootroot1>  rm /mnt/bin/basename rm /mnt/bin/cat rm /mnt/bin/dd rm /mnt/bin/dirname rm /mnt/bin/dparam rm /mnt/bin/du rm /mnt/bin/ed rm /mnt/bin/od rm /mnt/bin/telinit rm /mnt/bin/uname rm /mnt/etc/badtrk rm /mnt/etc/chroot rm /mnt/etc/dkinit rm /mnt/etc/emulator rm /mnt/etc/fixperm rm /mnt/etc/mvdir rm /mnt/etc/uadmin rm /mnt/usr/bin/getopt rm /mnt/usr/bin/ping rm /mnt/usr/bin/rcmd rm /mnt/usr/bin/rcp rm /mnt/usr/bin/rlogin rm /mnt/usr/bin/tput rm /mnt/usr/bin/zcat
cp /usr/bin/vi /mnt/usr/bin mkdir -p /mnt/usr/lib/terminfo/a cp /usr/lib/terminfo/a/ansi /mnt/usr/lib/terminfo/a
cp -rp /tmp/btld/hpsas /mnt cp -rp /tmp/btld/aacraid /mnt cp -rp /tmp/btld/lsil /mnt
cp /etc/haltsys /mnt/etc/haltsys
        exit
提示如下 Placing extra file, ./etc/uadmin Placing extra file, ./etc/reboot File system statistics, Free 512 byte blocks and inodes /mnt      (/dev/marry/tmp/ramdisk ):       40 blocks     1235 i-nodes Compressing ramdisk image ... File system statistics, Free 512 byte blocks and inodes /mnt      (/dev/fd096ds15   ):      254 blocks       29 i-nodes Root filesystem floppy creation complete. 选q 退出
cd /dev mv fd096ds15.std fd096ds15  mv rfd096ds15.std rfd096ds15 
mount /dev/marry/tmp/root.img /mnt cp /mnt/* /mnt2
umount /mnt marry –d /dev/marry/tmp/root.img rm /tmp/root.img
cp -rp /tmp/btld/hpsas /mnt2 cp -rp /tmp/btld/aacraid /mnt2 cp -rp /tmp/btld/lsil /mnt2
umount /mnt2  marry -d /dev/marry/tmp/bootroot1/bootroot1.img
/usr/local/bin/mkisofs -r -l -v -o /tmp/bootroot1.iso -b bootroot1.img /tmp/bootroot1
制作currently installed drivers应急光盘2 使用currently installed drivers的通用unix核心文件,特点是不能link驱动,能mount光驱,能mount硬盘
安装准备
安装cdrtools-1.8a23-VOLS.tar,得到mkisofs命令
提取SCO安装光盘的引导文件 用UltraISO打开SCO OpenServer 5.0.6.iso,点击“启动光盘”->“保存引导文件”,保存为boot288.img.std,有2.88M,这样做是为了产生一个EAFS文件系统且能放下boot和root两张盘的内容。
以root用户登陆SCO系统
mkdir /tmp/boot288 mkdir /tmp/bootroot1 mkdir /tmp/bootroot2 mkdir /tmp/btld mkdir /tmp/image mkdir /tmp/network mkdir /tmp/soft mkdir /mnt2
拷贝btld1.img 到 /tmp 目录下,btld1.img是hpsas驱动的btld盘,从hp网站上下载EFS-5.790a-osr5,解压得到01_BTLD文件 拷贝boot288.img.std ---> /tmp/image/boot288.img.std
marry -a /tmp/btld1.img  mount -r /dev/marry/tmp/btld1.img /mnt2         
cp -rp /mnt2/hpsas /tmp/btld  chown -R root:sys /tmp/btld/hpsas chmod 755 /tmp/btld/hpsas
umount /mnt2  marry -d /dev/marry/tmp/btld1.img                
unix核心调整
删除与blc驱动冲突的ad驱动 /etc/conf/bin/idinstall -d ad
安装各种btld驱动和网卡驱动
建立boot盘
cd /dev  mv fd0135ds36 fd0135ds36.std  mv rfd0135ds36 rfd0135ds36.std 
>/tmp/boot.img marry -a /tmp/boot.img  ln /dev/marry/tmp/boot.img /dev/fd0135ds36 l /dev/fd0135ds36 mknod rfd0135ds36 c 76 1
mkdev fd 选2. Emergency Boot and Root floppy filesystems         选3. 135tpi, double sided, 36 sectors per track (2.88Mb 3.5 inch) 选2. Boot filesystem 选2. Generic boot (builds a special kernel) 选y                Would you like to format the floppy first? (y/n) 提示如下 Copying files to /dev/fd0135ds36 ... Attempting to build a generic kernel using currently installed drivers:         The UNIX Operating System will now be rebuilt.         This will take a few minutes.  Please wait.         Root for this system build is /         The UNIX Kernel has been rebuilt. Compressing the kernel ... Boot filesystem floppy creation complete. 选q 退出
cd /dev  mv fd0135ds36.std fd0135ds36  mv rfd0135ds36.std rfd0135ds36
mount /dev/marry/tmp/boot.img /mnt
cp /tmp/image/boot288.img.std /tmp/bootroot2/bootroot2.img marry -a /tmp/bootroot2/bootroot2.img  mount /dev/marry/tmp/bootroot2/bootroot2.img /mnt2 rm -rf /mnt2/* cp -rp /mnt/* /mnt2
umount /mnt marry -d /tmp/boot.img rm /tmp/boot.img
修改/mnt2/etc/default/boot文件,其中第一行改为 DEFBOOTSTR=fd(44)unix.Z ramdisk=fd(44)/ramdisk.Z root=ram(7) ram.preload=7 swap= none ksl.disable
建立root盘
cd /dev  mv fd096ds15 fd096ds15.std  mv rfd096ds15 rfd096ds15.std 
>/tmp/root.img marry -a /tmp/root.img  ln /dev/marry/tmp/root.img /dev/fd096ds15 l /dev/fd096ds15 mknod rfd096ds15 c 76 1
mkdev fd 选2. Emergency Boot and Root floppy filesystems         选1.  96tpi, double sided, 15 sectors per track (1.2Mb 5.25 inch) 选1. Root filesystem 选y                Would you like to format the floppy first? (y/n) 选y                Do you want to place extra files on the root filesystem? (y/n) <bootroot2>  rm /mnt/bin/basename rm /mnt/bin/cat rm /mnt/bin/dd rm /mnt/bin/dirname rm /mnt/bin/dparam rm /mnt/bin/du rm /mnt/bin/ed rm /mnt/bin/od rm /mnt/bin/telinit rm /mnt/bin/uname rm /mnt/etc/badtrk rm /mnt/etc/chroot rm /mnt/etc/dkinit rm /mnt/etc/emulator rm /mnt/etc/fixperm rm /mnt/etc/mvdir rm /mnt/etc/uadmin rm /mnt/usr/bin/getopt rm /mnt/usr/bin/ping rm /mnt/usr/bin/rcmd rm /mnt/usr/bin/rcp rm /mnt/usr/bin/rlogin rm /mnt/usr/bin/tput rm /mnt/usr/bin/zcat
cp /usr/bin/vi /mnt/usr/bin mkdir -p /mnt/usr/lib/terminfo/a cp /usr/lib/terminfo/a/ansi /mnt/usr/lib/terminfo/a
cp –rp /etc/fscmd.d/HS /mnt/etc/fscmd.d cp –rp /etc/fscmd.d/ISO9660 /mnt/etc/fscmd.d chown -R root:sys /mnt/etc/fscmd.d chmod 755 /mnt/etc/fscmd.d
cp /etc/reboot /mnt/etc/reboot cp /usr/bin/tar /mnt/usr/bin/tar cp /etc/default/tar /mnt/etc/default/tar cp /bin/chmod /mnt/bin/chmod cp /bin/df /mnt/bin/df cp /bin/find /mnt/bin/find
        exit
提示如下 Placing extra file, ./etc/uadmin Placing extra file, ./etc/haltsys Placing extra file, ./etc/mvdir Placing extra file, ./bin/basename Placing extra file, ./bin/dirname File system statistics, Free 512 byte blocks and inodes /mnt      (/dev/marry/tmp/ramdisk ):      136 blocks     1261 i-nodes Compressing ramdisk image ... File system statistics, Free 512 byte blocks and inodes /mnt      (/dev/fd096ds15   ):      232 blocks       29 i-nodes Root filesystem floppy creation complete. 选q 退出
cd /dev  mv fd096ds15.std fd096ds15  mv rfd096ds15.std rfd096ds15 
mount /dev/marry/tmp/root.img /mnt cp /mnt/* /mnt2
umount /mnt marry –d /dev/marry/tmp/root.img rm /tmp/root.img
cp -rp /tmp/btld/hpsas /mnt2
umount /mnt2  marry -d /dev/marry/tmp/bootroot2/bootroot2.img
/usr/local/bin/mkisofs -r -l -v -o /tmp/bootroot2.iso -b bootroot2.img /tmp/bootroot2
制作引导光盘
cp /tmp/image/boot288.img.std /tmp/boot288/boot288.img
marry -a /tmp/boot288/boot288.img  mount /dev/marry/tmp/boot288/boot288.img /mnt 
cd /mnt rm ahslink unix.notebook
cp -rp /tmp/btld/hpsas /mnt cp –rp /tmp/btld/aacraid /mnt cp –rp /tmp/btld/lsil /mnt cp –rp /tmp/btld/ipsraid /mnt cp –rp /tmp/btld/wd506 /mnt
cd / umount /mnt  marry -d /dev/marry/tmp/boot288/boot288.img 
/usr/local/bin/mkisofs -r -l -v -o /tmp/boot288.iso -b boot288.img /tmp/boot288         
安装系统 方式一 使用SCO507光盘和USB软驱或ILO2端口引导,换SCO506光盘进行安装
方式二 使用引导光盘引导,换SCO506光盘进行安装
1- 使用制作好的引导光盘启动,输入引导字符串 Now add the following install boot string    boot  : defbootstr link=fd(64)hpsas Sdsk=hpsas(0,0,0,0) Srom=wd(0,0,0,0) 当提示插入hpsas驱动盘时,回车继续安装
2- 当系统安装蓝色界面出现后,取出引导光盘,插入SCO OpenServer 5.0.6安装盘 输入正确序列号,依提示输入必要信息 当信息配置结束时,见下文 The BTLD package will now be extracted         mount: Bad address                   Please select the floppy device you are using            (1) /dev/fd0   (2) /dev/fd1 
choose option (2) and you will be asked to insert the  lsil BTLD floppy disk again:  这里需要选择2 
Please insert the floppy for BTLD package: hpsas and press <Return>:  
执行 RETURN 系统会有如下信息:        mount: Bad address, Could not mount the BTLD floppy  You may:  (a) try again   (b) abort BTLD load, but continue installation   (c) abort the installation   Respond with one of (a,b,c):            choose option "b". 这里选择b 直到系统安装完毕
安装btld驱动到硬盘 方式一 使用SCO507光盘和USB软驱引导到硬盘,加载btld驱动到硬盘
方式二
使用应急光盘2引导到硬盘,插入应急光盘2引导系统到boot提示符下,敲入引导字符:
boot  : defbootstr root=hd(42) Srom=wd(0,0,0,0) 系统引导后,进入单用户状态: (注意:系统一定要进入单用户状态操作,也就是在Ctrl+D选项时,直接输入root用户口令) 执行以下操作安装hpsas 驱动到系统中 Mount the BTLD Boot CD and install the "hpsas" BTLD:
mount /dev/cd0 /mnt mkdir /mnt2 marry -a /mnt/bootroot2.img mount -r /dev/marry/mnt/bootroot2.img /mnt2 btldinstall /mnt2 提示是否更新hpsas驱动选择"Y",到安装完成并手工LINK核心 relink the kernel /etc/conf/conf/link_unix
un-marry and unmount the BTLD Boot CD and reboot
umount /mnt2 marry -d /dev/marry/mnt/bootroot2.img umount /mnt init 6 至此安装系统结束
测试 安装 略
引导到硬盘 mount /dev/cd0 /mnt hpsas vi
引导到软盘 mount /dev/cd0 /mnt mount /dev/hd0root /mnt hpsas vi
[local]1[/local] [local]2[/local] [local]3[/local]
(本文已被浏览 1347 次)
|
|