- 論壇徽章:
- 0
|
制作帶有 hpsas 驅(qū)動(dòng)的SCO OpenServer 5.0.6應(yīng)急光盤和引導(dǎo)光盤安裝HP DL380 G5
安裝SCO OpenServer 5.0.6虛擬機(jī)用來(lái)制作應(yīng)急光盤和引導(dǎo)光盤
安裝SCO OpenServer 5.0.6虛擬機(jī)
1、 配置AMD PCNet-PCI網(wǎng)卡參數(shù)
2、 配置硬盤為SCSI 0:0 blc(0,0,0,0)
3、 配置光驅(qū)為IDE 0:0 wd(0,0,0,0)
4、 只安裝SCO OpenServer Enterprise System (ver 5.0.6j)
制作installation drivers only應(yīng)急光盤1
使用installation drivers only的unix核心文件,特點(diǎn)是能link驅(qū)動(dòng),不能mount光驅(qū),能mount硬盤
安裝準(zhǔn)備
安裝cdrtools-1.8a23-VOLS.tar,得到mkisofs命令
提取SCO安裝光盤的引導(dǎo)文件
用UltraISO打開(kāi)SCO OpenServer 5.0.6.iso,點(diǎn)擊“啟動(dòng)光盤”->“保存引導(dǎo)文件”,保存為boot288.img.std,有2.88M,這樣做是為了產(chǎn)生一個(gè)EAFS文件系統(tǒng)且能放下boot和root兩張盤的內(nèi)容。
以root用戶登陸SCO系統(tǒng)
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驅(qū)動(dòng)的btld盤,從hp網(wǎng)站上下載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核心調(diào)整
刪除與blc驅(qū)動(dòng)沖突的ad驅(qū)動(dòng)
/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應(yīng)急光盤2
使用currently installed drivers的通用unix核心文件,特點(diǎn)是不能link驅(qū)動(dòng),能mount光驅(qū),能mount硬盤
安裝準(zhǔn)備
安裝cdrtools-1.8a23-VOLS.tar,得到mkisofs命令
提取SCO安裝光盤的引導(dǎo)文件
用UltraISO打開(kāi)SCO OpenServer 5.0.6.iso,點(diǎn)擊“啟動(dòng)光盤”->“保存引導(dǎo)文件”,保存為boot288.img.std,有2.88M,這樣做是為了產(chǎn)生一個(gè)EAFS文件系統(tǒng)且能放下boot和root兩張盤的內(nèi)容。
以root用戶登陸SCO系統(tǒng)
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驅(qū)動(dòng)的btld盤,從hp網(wǎng)站上下載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核心調(diào)整
刪除與blc驅(qū)動(dòng)沖突的ad驅(qū)動(dòng)
/etc/conf/bin/idinstall -d ad
安裝各種btld驅(qū)動(dòng)和網(wǎng)卡驅(qū)動(dòng)
建立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
制作引導(dǎo)光盤
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
安裝系統(tǒng)
方式一
使用SCO507光盤和USB軟驅(qū)或ILO2端口引導(dǎo),換SCO506光盤進(jìn)行安裝
方式二
使用引導(dǎo)光盤引導(dǎo),換SCO506光盤進(jìn)行安裝
1- 使用制作好的引導(dǎo)光盤啟動(dòng),輸入引導(dǎo)字符串
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)
當(dāng)提示插入hpsas驅(qū)動(dòng)盤時(shí),回車?yán)^續(xù)安裝
2- 當(dāng)系統(tǒng)安裝藍(lán)色界面出現(xiàn)后,取出引導(dǎo)光盤,插入SCO OpenServer 5.0.6安裝盤
輸入正確序列號(hào),依提示輸入必要信息
當(dāng)信息配置結(jié)束時(shí),見(jiàn)下文
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>:
執(zhí)行 RETURN 系統(tǒng)會(huì)有如下信息:
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
直到系統(tǒng)安裝完畢
安裝btld驅(qū)動(dòng)到硬盤
方式一
使用SCO507光盤和USB軟驅(qū)引導(dǎo)到硬盤,加載btld驅(qū)動(dòng)到硬盤
方式二
使用應(yīng)急光盤2引導(dǎo)到硬盤,插入應(yīng)急光盤2引導(dǎo)系統(tǒng)到boot提示符下,敲入引導(dǎo)字符:
boot
: defbootstr root=hd(42) Srom=wd(0,0,0,0)
系統(tǒng)引導(dǎo)后,進(jìn)入單用戶狀態(tài):
(注意:系統(tǒng)一定要進(jìn)入單用戶狀態(tài)操作,也就是在Ctrl+D選項(xiàng)時(shí),直接輸入root用戶口令)
執(zhí)行以下操作安裝hpsas 驅(qū)動(dòng)到系統(tǒng)中
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驅(qū)動(dòng)選擇"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
至此安裝系統(tǒng)結(jié)束
測(cè)試
安裝
略
引導(dǎo)到硬盤
mount /dev/cd0 /mnt
hpsas
vi
引導(dǎo)到軟盤
mount /dev/cd0 /mnt
mount /dev/hd0root /mnt
hpsas
vi
[local]1[/local]
[local]2[/local]
[local]3[/local]
[ 本帖最后由 天地續(xù)緣 于 2008-5-15 21:22 編輯 ] |
|