欢迎 HiLanny 加入本站!
 免费注册  用户登陆  汇款方式  汇款确认  产品报价  联系我们  帮助中心
加入收藏
设为首页
会员体系
申请VIP
网站首页 光盘超市 软件下载 技术文章 专题 用户中心 VIP会员 技术论坛 网站留言 娱乐中心 卓越资源
今天是:2008年11月21日 星期五  您现在位于: 首页 → 技术文章 → 制作带有hpsas驱动...
   制作带有hpsas驱动的SCO5.0.6应急和引导光盘安装G5
作者:天地续缘  出处:bbs.chinaunix.net  更新时间: 2008年05月28日 
制作带有 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 次)
 发布人:sdccf
 → 推荐给我的好友
上篇文章:Fedora 9新特性和安装截图
下篇文章:SCO OpenServer 5自动关闭机器电源...
 相关文章:
SCO OpenServer 5.0.7制作紧急启动光盘的方法 如何把一个软盘镜像HBA文件转光盘ISO格式HBA文件
SCO操作系统安装Serial ATA (SATA)硬盘的方式 sco unix 5.07 使用windows FAT 格式的USB盘过程
联想扬天M2600C安装SCO5.0.6+Windows XP Sco UNIX的核心引导过程详解
SCO OpenServer 6使用中文界面的KDE3.5.2 IBM X365安装SCO OpenServer5.0.6过程
部分双核处理器平台无法正确安装OSR6的解决办法 使用SCO OpenServer 5.0.X通过ADSL上网
SCO OpenServer 5.06 下安装 KDE-1.1.2 SCO OpenServer 5 安装 Proliant 网卡
SCO6链接SCO5的动态链接库注意事项 SCO OpenServer 5如何使用sysadmsh
SCO OpenServer 5.0.7下安装新太阳u盘驱动 SCO OpenServer 5下的字符时钟的C程序
SCO UNIX基本命令 SCO UNIX基本命令---常用命令简介
SCO UNIX基本命令---VI命令 SCO UNIX基本命令---数学计算命令

相关搜索
查看百度中关于制作带有hpsas驱动的SCO5.0.6应急和引导光盘安装G5的更多内容
查看google中关于制作带有hpsas驱动的SCO5.0.6应急和引导光盘安装G5的更多内容
   文章分类
操作系统 |
SCO_UNIX  Sun_Solaris  IBM_AIX  HP_UX  Linux  BSD  Tru64_UNIX 
通用UNIX知识  Windows  Minix 
程序设计 |
Shell编程  C/C++  汇编  PHP  JAVA  Perl  Python 
ASP/HTML  XML  中间件 
数据库 |
Oracle  Informix  Sybase  Fox  DB2  SQL  MySQL 
PostgreSQL 
网络应用 |
网络应用 
计算机硬件 |
计算机主机  打印机  路由器  交换机  终端  磁带机  MO 
刻录机  终端服务器  调制解调器 
   文章评论
  → 评论内容 (点击查看)   共0条评论,每页显示5条评论   浏览所有评论
(没有相关评论)
  → 发表我的评论
您的姓名: 您的Email:
评论内容:
250字内
发表评论:      发表评论须知 →
  • 尊重网上道德,遵守《全国人大常委会关于维护互联网安全的决定》及中华人民共和国其他各项有关法律法;
  • 本站有权保留或删除您发表的任何评论内容;
  • 关于我们 ┋  网站留言 ┋  网站地图 ┋  友情链接 ┋  与我在线 ┋  汇款确认 ┋  管理 ┋  TOP
    Linux.Unix爱好者家园  http://www.unix-cd.com/
    联系我们:sdccf@163.com
    腾讯QQ: 7644599
    备案序号:鲁ICP备05000455号
    Copyright (c) 2001-2008 Unix-cd.com. All Rights Reserved.