Subject: Re: Installing with an ISA floppy card
To: Mike Woods <mike@the-rubber-chicken-network.co.uk>
From: Jochen Kunz <jkunz@unixag-kl.fh-kl.de>
List: port-prep
Date: 01/05/2003 19:13:17
On 2003.01.04 23:51 Mike Woods wrote:

> Right, i have a 43p running linux pcc...=20
What type of 43P? A -100 / -120 / -133 =3D=3D IBM7248 or a -140 =3D=3D IB=
M7043?

> i just cant get my head around net booting=20
What is the problem? A bit of bootp / dhcp and tftp - that's it.
I found it very comfortable to netboot my 43P-100 for instalation.
Floppys are always broken...

Anyway. You can boot the instalation system from floppy. The floppy is
unusable _after_ the machine has booted. Note that you can't use the
installation programm. It can't make the disk bootable. When you have
booted the instalation system exit sysinstall and proceed like this:
- FTP the generic floppy image (generic.fs or generic_com0.fs) to the
already mounted ram disk or NFS mount a volume where this image is
located.=20
- dd this image to the raw disk like "dd if=3Dgeneric.fs of=3D/dev/rsd0c".
This makes the disk bootable.
- Edit the MBR partition table on the disk. There is one partition of
sysid 65 (Personal RISC boot) that contains the kernel. You can extend
the size of this partition to e.g. 3 or 4 MB to make sure you have room
for later kernels. Do not alter the beginning of this partition! Make an
other partition after this boot partition that coveres the rest of the
disk. Use sysid 169 (NetBSD).
- Make a disklabel. The disklabel lives in the sysid 169 partition and
contains the NetBSD slices (=3Dpartitions). Slice a is the root file
system, b is swap, c is the entire BSD part of the disk, d or e can be
/var or /usr depending on your preferences. Easy way to make a disklabel
on a virgin disk is
disklabel sd0 > dl		# get default disklabel
disklabel -rR sd0 dl	# write it to the disk
disklabel -i sd0		# edit the disklabel
The later works only when there is already a disklabel. Therefore you
must install a default disklabel first.=20
- Make file systems:=20
newfs /dev/rsd0a
newfs /dev/rsd0e
...
- mount them:=20
mount /dev/sd0a /mnt
mkdir /mnt/usr
mount /dev/sd0e /mnt/usr
...
- unpack the distribution sets:
cd /mnt
tar xpzf /mnt2/pub/NetBSD/NetBSD-1.6/prep/binary/sets/etc.tgz
tar xpzf /mnt2/pub/NetBSD/NetBSD-1.6/prep/binary/sets/base.tgz
tar ....
- reboot. The machine should load the kernel from disk and ask you for
the root file system. Answer "sd0" for the first SCSI disk and the
machine should mount its / and drop to single user mode.
- set $TERM and do basic system configuration, i.e. edit /etc/fstab,
/etc/rc.conf (see /etc/defaults/rc.conf)


My fdisk and disklabel:
Disk: /dev/rsd0c
NetBSD disklabel disk geometry:
cylinders: 4390 heads: 8 sectors/track: 125 (1000 sectors/cylinder)

BIOS disk geometry:
cylinders: 4390 heads: 8 sectors/track: 125 (1000 sectors/cylinder)

Partition table:
0: sysid 65 (Linux/MINIX (sharing disk with DRDOS) or Personal RISC
boot)
    start 0, size 6000 (2 MB), flag 0x80
        beg: cylinder    0, head   0, sector  1
        end: cylinder    5, head   7, sector 61
1: sysid 169 (NetBSD)
    start 6000, size 4398480 (2147 MB), flag 0x0
        beg: cylinder    6, head   0, sector  1
        end: cylinder  293, head   7, sector 61
2: <UNUSED>
3: <UNUSED>


# /dev/rsd0c:
type: SCSI
disk: DFHSS2F       !
label: fictitious
flags:
bytes/sector: 512
sectors/track: 125
tracks/cylinder: 8
sectors/cylinder: 1000
cylinders: 4390
total sectors: 4404489
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0		# microseconds
track-to-track seek: 0	# microseconds
drivedata: 0=20

7 partitions:
#        size    offset     fstype  [fsize bsize cpg/sgs]
 a:    344000      6000     4.2BSD   1024  8192    86   # (Cyl.    6 -
349)
 b:    263000    350000       swap                      # (Cyl.  350 -
612)
 c:   4398480      6000     unused      0     0         # (Cyl.    6 -
4404*)
 d:      6000         0     unused      0     0         # (Cyl.    0 -
5)
 e:   3791489    613000     4.2BSD   2048 16384   332   # (Cyl.  613 -
4404*)

--=20



tsch=FC=DF,
         Jochen

Homepage: http://www.unixag-kl.fh-kl.de/~jkunz/