View Single Post
Old 21st February 2010
comet--berkeley comet--berkeley is offline
Real Name: Richard
Package Pilot
 
Join Date: Apr 2009
Location: California
Posts: 163
Default any possible way to make install46.iso boot from usb to install to a old laptop

To recap, the first steps are to create an OpenBSD partition on the usb stick, format an ffs filesystem on the OpenBSD partition and then
setup the second stage boot program.

Assume that the usb stick is the /dev/sd1 device

Create an OpenBSD partition:
------------------------------------
$ sudo fdisk -e sd1
[...]
$ sudo disklabel -E sd1
[...]

Assuming that an sd1a OpenBSD partition was defined.

Create an ffs filesystem on the sd1a partition:
------------------------------------------------------
$ sudo newfs sd1a

Setup the second stage boot program
-----------------------------------------------
$ sudo mount /dev/sd1a /mnt
$ sudo cp /boot /mnt

$ sudo /usr/mdec/installboot -v /mnt/boot /usr/mdec/biosboot sd1

After doing the above you will have a USB stick with a bootable OpenBSD partition on it.

Next you must copy the kernel images and the zipped install files.

And then you must point the boot to the bsd.rd kernel image.

Let's say that the install CD is mounted on /cdrom
and that the USB stick is mounted on /mnt

Copy the kernel images and the zipped install files.
---------------------------------------------------------------
$ mkdir /mnt/4.6
$ cp -pR /cdrom/4.6/i386 /mnt/4.6

Point the boot to the bsd.rd kernel image for i386 architecture:
-----------------------------------------------------------------------------
$ mkdir /mnt/etc
$ echo "set image /4.6/i386/bsd.rd" > /mnt/etc/boot.conf
Reply With Quote