- Boot from CD or start your OpenBSD VM.
- At the "Install, Upgrade or Shell" prompt, select the shell.
- Insert the pen drive. You will see kernel messages about the insertion, including the virtual SCSI drive # assigned to the drive. For this example, I will use "sd0" but it may be another number.
- Put an MBR on the drive, reserve all space as a single MBR partition for OpenBSD:
# fdisk -iy sd0 - Put an OpenBSD disklabel on the drive, assign all available space as a single "a" partition on sd0:
# disklabel -E sd0
Use "a a" to add partition a, take the defaults for all prompts, once the partition is created, use the "q" command to exit the disklabel program. Answer "y" to write the disklabel. - Format the "a" partition on sd0 as an OpenBSD FFS partition:
# newfs sd0a - Mount it:
# mount /dev/sd0a /mnt - Copy the second stage boot loader and the ramdisk kernel to it:
# cp /bsd.rd /mnt
# cp /usr/mdec/boot /mnt - Create an /etc/boot.conf on the drive so you do not have to request the ramdisk kernel manually at boot time:
# mkdir /mnt/etc
# echo set image /bsd.rd > /mnt/etc/boot.conf - Install the PBR:
# /usr/mdec/installboot -v /mnt/boot /usr/mdec/biosboot sd0 - Unmount the pen drive:
# umount /mnt
Saturday, October 3, 2009
OpenBSD - Howto create bootable media (thumb drive)
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment