Return to BSD News archive
Path: sserve!manuel!munnari.oz.au!mips!mips!sdd.hp.com!uakari.primate.wisc.edu!ames!agate!agate!usenet
From: cgd@agate.berkeley.edu (Chris G. Demetriou)
Newsgroups: comp.unix.bsd
Subject: Installing 'the right way' (Re: Sorry, everyone...)
Summary: it's not trivial!
Message-ID: <148ersINNr9t@agate.berkeley.edu>
Date: 18 Jul 92 06:48:28 GMT
References: <1992Jul17.160256.4518@news.iastate.edu> <1992Jul17.180345.1296@nrao.edu> <1992Jul18.044401.2343@uvm.edu>
Organization: Kernel Hackers 'r' Us
Lines: 110
NNTP-Posting-Host: agate.berkeley.edu
In article <1992Jul18.044401.2343@uvm.edu> wollman@sadye (Garrett Wollman) writes:
> [ various stuff about cpio and the install program... ]
first of all: Sun's CPIO reads the CPIO archives generated by 386bsd...
and now for the more fun stuff: how to install with a "real"
partitioning scheme...
If you didn't already notice, the "install" program makes *one large
partition* out of your disk, which is rather, umm, ugly...
I wanted to do the installation the right way, so i bullheadedly started
doing it my way, and here are my tips/instructions...
If they don't work for you, sorry...
Chris
HOW TO GET 386bsd 0.1 INSTALLED WITH "REAL" PARTITONING:
(remember, if things don't work, they might be in places that aren't
normally looked in... things should work as below, but you might have
to use explicit paths occasionally... the 'better' stuff -- mount,
umount, cp, etc... is in /usr/distbin on the fixit floppy... even
mknod is there, if the devices you need aren't on the fixit floppy...)
(1) boot the fixit floppy
(2) disklabel the disk as appropriate
(3) newfs the partitions
(4) mount the new root partition under /mnt
(5) mkdir /mnt/usr
(6) mount the new /usr partition under /mnt/usr
(7) cpio directory-by-directory (recursively -- by hand!) the entire
contents of the fixit floppy to the hard drive
you'll do something like:
cd /
ls | cpio -pdalmu /mnt
cd /sbin
ls | cpio -pdalmu /mnt/sbin
cd /usr
ls | cpio -pdalmu /mnt/usr
cd /usr/bin
ls | cpio -pdalmu /mnt/usr/bin
etc. yes, it's tiring.
(8) copy /usr/distbin/mount and /usr/distbin/umount to /mnt (so that
they'll be in the new root partition, so you can mount the new
/usr partition...)
(9) shutdown
and the eject the floppy.
(10) reboot off the hard drive, the fsck -p <root raw device>
If there are any errors, after the fsck is done, hit
ctl-alt-delete, and repeat this step.
(11) fsck -p <usr raw device>
(12) mount -u <root device> /
(13) mount <usr device> /usr
(14) insert 0.1 boot/install floppy (dist.fs) into floppy drive
and "mount /dev/fd0a /mnt"
(15) cd /mnt
and then
usr/bin/zcat etc/baselist.Z | usr/bin/cpio -pdalmu /
(16) cd /
and then
/mnt/usr/bin/zcat /mnt/etc/baseutils.cpio.Z | /mnt/usr/bin/cpio -idalmu
(17) umount /mnt then eject the floppy
(18) umount /usr
(19) shutdown
(20) reboot off the hard drive, and get all of the various files (the
bindist files, srcdist files, etc...).
I put them into /usr/tmp, because there wasn't enough space in
/tmp (because it was on a small root partition...).
(21) cd / ; cat <all the binary files> | uncompress | cpio -idalmu
(22) rm <all the binary files>
(23) put your hostname into "/etc/myname" and put your ip addr/hostname
into /etc/hosts.
(24) make an fstab for yourself. specifically, you want something like:
<root device name> / ufs rw 1 1
<usr device name> /usr ufs rw 1 2
congrats. you now have a working system!
you can repeat step 21 for the srcdist and etcdist files, as well,
if you wish...
have fun!
Chris
--
Chris G. Demetriou
cgd@berkeley.edu
I'm not from the computer center, and I'm *NOT* here to help *YOU*!