OpenBSD Boot Hackery

MBR

It only took a few years, but I finally came across the bug in our Master Boot Record code. Mickey had a fix sitting in his source tree. This is fixed in -current.

If you are experiencing the Partition:0 Disk:3 hang, this new MBR should fix your problem. I have a downloadable copy here. To install it, boot from a floppy (or CD) and do a:

  # dd if=/dev/rwd0c of=mbr.save bs=512 count=1
  # fdisk -f mbr.new -e wd0
    Enter 'help' for information
    fdisk: 1> update
    Machine code updated.
    fdisk:*1> quit
    Writing current MBR to disk.

In Current, this is much easier, as fdisk has been fixed to act like the DOS FDISK /MBR command:

  # fdisk -uf mbr.new wd0

fdisk

OpenBSD's fdisk is a little less-than-friendly when it comes to large hard drives. I have made some fixes that make editing partitions over the 1024 cylinder mark significantly easier. Fixes include:

Large Hard Drives

To the best of my knowledge, booting >8G now works under OpenBSD. I had nothing whatsoever to do with it, though.

pintday.org » Fresh every Tuesday.