SUMMARY: Installing new OS

From: Susan Thielen (thielen@irus.rri.uwo.ca)
Date: Wed Jun 23 1993 - 14:51:32 CDT


Well, I do believe I have actually installed the new OS onto
a secondary drive, without having to do a boot from a CD-ROM
etc. etc. I have outlined all the details in a psuedo-script
which will follow this post.
I can't, unfortunately, test it as it doesn't appear to be possible
at this time to boot from the Seagate disk attached via a PTI
sbus card.. I'll be posting a summary about that separately.

I'd like to thank

Alain Brossard EPFL-SIC/SII <brossard@siisun.epfl.ch>
Dan Razzell <razzell@cs.ubc.ca>
Ivan Warner <I.Warner@axion.bt.co.uk>
<Piete.Brooks@cl.cam.ac.uk>
Steinar Haug <Steinar.Haug@runit.sintef.no>
Sven.Ole.Skrivervik@sdata.no (Sven Ole Skrivervik)
dan@bellcore.com (Daniel Strick)
dburwell@telecom.telecom.com (David Burwell)
glenn@uniq.com.au (Glenn Satchell - Uniq Professional Services)
hkatz@nucmed.NYU.EDU (Henry Katz)
john@oncology.uthscsa.edu (John Justin Hough)
ldavis!woden!gunn@snowbird.Central.Sun.COM (David Gunn)
perryh@pluto.rain.com (Perry Hutchison)
rickn@copley.com (Richard J. Niziak)
ron@rocket.com (Ron Reimer)
synaptx!jen!rheaton@uunet.UU.NET
tommy@boole.att.com
zdv123@zam092.zam.kfa-juelich.de (V.Sander)

#!/bin/csh
# psudeo-script to set up newdisk via CD-ROM
#
# customized for the Imaging Research Lab
# Robarts Research Institute
# by Susan KJ Thielen

cd /newdisk
tar xvf /cdrom/export/exec/proto_root_sunos_4_1_3
cd /newdisk/usr
tar xvf /cdrom/export/exec/sun4_sunos_4_1_3/usr
tar xvf /cdrom/export/exec/sun4_sunos_4_1_3/debugging
tar xvf /cdrom/export/exec/sun4_sunos_4_1_3/demo
tar xvf /cdrom/export/exec/sun4_sunos_4_1_3/games
tar xvf /cdrom/export/exec/sun4_sunos_4_1_3/graphics
tar xvf /cdrom/export/exec/sun4_sunos_4_1_3/install
tar xvf /cdrom/export/exec/sun4_sunos_4_1_3/networking
tar xvf /cdrom/export/exec/sun4_sunos_4_1_3/openwindows_demo
tar xvf /cdrom/export/exec/sun4_sunos_4_1_3/openwindows_fonts
tar xvf /cdrom/export/exec/sun4_sunos_4_1_3/openwindows_programmers
tar xvf /cdrom/export/exec/sun4_sunos_4_1_3/openwindows_users
tar xvf /cdrom/export/exec/sun4_sunos_4_1_3/rfs
tar xvf /cdrom/export/exec/sun4_sunos_4_1_3/security
tar xvf /cdrom/export/exec/sun4_sunos_4_1_3/shlib_custom
tar xvf /cdrom/export/exec/sun4_sunos_4_1_3/sunview_programmers
tar xvf /cdrom/export/exec/sun4_sunos_4_1_3/sunview_users
tar xvf /cdrom/export/exec/sun4_sunos_4_1_3/system_v
tar xvf /cdrom/export/exec/sun4_sunos_4_1_3/text
tar xvf /cdrom/export/exec/sun4_sunos_4_1_3/tli
tar xvf /cdrom/export/exec/sun4_sunos_4_1_3/user_diag
tar xvf /cdrom/export/exec/sun4_sunos_4_1_3/uucp
tar xvf /cdrom/export/exec/sun4_sunos_4_1_3/versatec
mkdir /newdisk/usr/kvm
cd /newdisk/usr/kvm
tar xvf /cdrom/export/exec/kvm/sun4c_sunos_4_1_3/kvm
cd /newdisk/usr/kvm/sys
tar xvf /cdrom/export/exec/kvm/sun4c_sunos_4_1_3/sys

# now to build up the root...

cd /newdisk/usr/kvm/stand
cp -p /newdisk/usr/kvm/stand/vmunix /newdisk
cp -p /newdisk/usr/kvm/stand/kadb /newdisk
cp -p /newdisk/usr/kvm/stand/boot.sun4c /newdisk/boot

cp -p /newdisk/usr/bin/hostname /newdisk/sbin
cp -p /newdisk/usr/bin/sh /newdisk/sbin
cp -p /newdisk/usr/etc/ifconfig /newdisk/sbin
cp -p /newdisk/usr/etc/init /newdisk/sbin
cp -p /newdisk/usr/etc/mount /newdisk/sbin
cp -p /newdisk/usr/etc/intr /newdisk/sbin
cp -p /newdisk/usr/etc/hostconfig /newdisk/sbin

# next make the devices..

cd /newdisk/dev
./MAKEDEV std gpone0 pty{0,1,2} win{0,1,2}

# next is the boot block stuff

cd /newdisk/usr/kvm/mdec
./installboot -ltv /newdisk/boot bootsd /dev/rsd7a

# make export with links

mkdir /newdisk/export; cd /newdisk/export; mkdir exec share;
ln -s /usr/share share/sunos.4.1.3; cd exec; ln -s /usr sun4
ln -s /usr sun4.sunos.4.1.3; mkdir kvm; cd kvm
ln -s /usr/kvm `arch -k`.sunos.4.1.3
ln -s `arch -k`.sunos.4.1.3 `arch -k`

# Set up correct timezone

cd /newdisk/usr/share/lib/zoneinfo; rm localtime;
cp -p EST5EDT localtime;

# Missing /etc/sm /etc/sm.bak in proto_root_sunos_4_1_3

cd /newdisk/etc; mkdir sm sm.bak ;

# installed original /usr/local from antares
cd /usr;
tar cvf /scratch/antares.usr.local.tar local
cd /newdisk/usr;
tar xvf /scratch/antares.usr.local.tar

# need to update files in /etc
cp -p /etc/hosts /newdisk/etc/hosts;
cp -p /etc/hosts.equiv /newdisk/etc/hosts.equiv;
cp -p /etc/shells /newdisk/etc/shells
cp -p /etc/group /newdisk/etc/group
cp -p /etc/netgroup /newdisk/etc/netgroup
cp -p /etc/ethers /newdisk/etc/ethers
cp -p /etc/exports /newdisk/etc/exports
cp -p /etc/hostname.le0 /newdisk/etc/hostname.le0
cp -p /etc/defaultdomain /newdisk/etc/defaultdomain
cp -pr /etc/defects /newdisk/etc/defects
cp -p /etc/bootparams /newdisk/etc/bootparams
cp -p /newdisk/etc/sendmail.cf /newdisk/etc/sendmail.cf.orig
cp -p /etc/sendmail.cf /newdisk/etc/sendmail.cf

# setup tftpboot direcory
mkdir /newdisk/tftpboot
cd /newdisk/tftpboot;
cp /tftpboot/boot.sun4c.sunos.4.1.1 /newdisk/tftpboot
ln -s boot.sun4c.sunos.4.1.1 81642828.SUN4C
ln -s boot.sun4c.sunos.4.1.1 81642828
ln -s . tftpboot

# edited /newdisk/etc/rc.local added lines

# editted inetd.conf

cp /etc/fstab /newdisk/etc/fstab
# then editted fstab

#
# set up the pointer to the budtool area
cd /newdisk/usr/local;
ln -s /mri/sparchive/budtool.40 budtool

# need to set up license manager for Flexlm

cd /newdisk/usr/local/etc
ln -s /mri/sparchive/matlab/etc/license.dat license.dat
ln -s /mri/sparchive/matlab/etc/lmboot lmboot
ln -s /mri/sparchive/matlab/etc/lmgrd lmgrd

# set up pcnfs stuff

cp -p /usr/etc/rpc.pcnfsd /newdisk/usr/etc/rpc.pcnfsd
mkdir /newdisk/var/spool/pcnfs;

# set up printer

cd /var/spool/lpd
tar cvf /scratch/antares/var.spool.lpd *;
cd /newdisk/var/spool/lpd;
tar xvf /scratch/antares/var.spool.lpd *;
cp /etc/printcap /newdisk/etc/printcap
# did a check of /etc/ttytab .. set ttya to be vt100

# set up crontab stuff

cp /var/spool/cron/crontabs/root /newdisk/var/spool/cron/crontabs/root

# install the ptsc driver software into the kernel

cd /newdisk/tmp
bar xvfZ /dev/rfd0
cd pt.install
cd sbs430.sun
cp ptscII.o /newdisk/usr/sys/sun4c/OBJ/ptscII.o
cp ptsc_conf.c /newdisk/usr/sys/scsi/adapters/ptsc_conf.c
# Added lines

scsi/adapters/ptscII.c optional ptscII scsibus device-driver
scsi/adapters/ptsc_conf.c optional ptscII scsibus

# to /newdisk/usr/kvm/sys/sun4c/conf/files

cd /newdisk/usr/kvm/sys/sun4c/conf
cp GENERIC PTSCII

# added line to PTSCII

device-driver ptscII # PT-SBS430 SCSI-2 Device Driver

# changed line
scsibus1 at esp
# to be
scsibus1 at ptscII

# and edittd users, and other details..

# still need the smt drivers..

# configured via

/newdisk/usr/etc/config PTSCII

cd ../PTSCII
make
cp /newdisk/vmunix /newdisk/vmunix.orig
cp vmunix /newdisk/vmunix

# make all necessary directories for cross mounting
mkdir vega vega/local vega/data trantor trantor/local trantor/data scratch oort oort/local oort/data oort/home oort/us mri mri/sparchive mimas mimas/optical hera hera/local hera/data

# find out the boot name

/usr/kvm/unixname2bootname sd7a
/sbus@1,f8000000/ptscII@1,800000/sd@:a

 
Susan KJ Thielen Application Programmer, System Manager
Robarts Research Institute Phone: (519) 663-3833
PO Box 5015, 100 Perth Drive Fax: (519) 663-3789
London, ON N6A 5K8 E-mail: thielen@irus.rri.uwo.ca



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:07:58 CDT