Last Update: "2005/06/23 22:47:28 makoto"
installboot
What is the installboot ?
It is the magic to allow OF 1/2 machine to boot from sector zero.
The sector zero is also called MBR, Master Boot Record.
nothing mounted
# df
Filesystem 512-blocks Used Avail Capacity Mounted on
/dev/md0a 3959 3617 342 91% /
mount target disk on /mnt
# mount /dev/wd0a /mnt
make sure the setup written in installed fstab
# cat /mnt/etc/fstab
/dev/wd0a / ffs rw 1 1
/dev/wd0b none swap sw 0 0
/dev/wd0d /export ffs rw 1 2
/dev/wd0g /usr ffs rw 1 2
kernfs /kern kernfs rw
procfs /proc procfs rw,noauto
mount /usr disk
# mount /dev/wd0g /mnt/usr
goto mounted mdec directory
# cd /mnt/usr/mdec
do installboot with old fashioned way:
# ./installboot -v /mnt/boot bootxx /dev/rwd0a
boot: /mnt/boot
proto: bootxx
device: /dev/rwd0a
proto bootblock size: 1024
entry point: 0x000e0000
/mnt/boot: block numbers: 2912 2928 2944 2960 2976 2992 2882
then sync and reboot
# sync
# sync
# reboot
boot from ata disk:
> boot ata/ata-disk@0:0
Or boot from scsi disk:
> boot scsi-int/sd@0:0
|