On Sat, Mar 26, 2011 at 7:01 PM, Kenneth R Westerback <kwesterb...@rogers.com> wrote: > On Sat, Mar 26, 2011 at 05:26:06PM +0530, Amarendra Godbole wrote: >> Hi, >> >> I have run into a deadend trying to understand, and troubleshoot this >> problem. Hence, I would like some pointers. Following is what I did to >> get my OpenBSD system running, and then subsequently messing it up (in >> sequence): >> >> (1) Installed OpenBSD/i386 on my Thinkpad X201, and built -current. >> Did reserve ~140G for Windows, and then installed OpenBSD as described > > ^^^^ OpenBSD will reliably boot only if located <128GB. A > recent change has made this explicit until a more reliable > way of booting from >128GB can be found. > >> in FAQ. Things were fine for a couple of months. >> [...] >> (4) grub started fine, and Windows XP boots fine, but when I try to >> boot OpenBSD, I get something like this: >> Loading... >> probing: <<additional details>> >> disk: fd0 hd0+* >> >> OpenBSD/i386 BOOT 2.13 >> open(hd0a:/etc/boot.conf): Invalid argument >> boot> >> booting hd0a:/bsd: open hd0a:/bsd: Invalid argument >> failed(22). will try ... >> >> And OpenBSD never boots. I don't recall changing anything else. From >> what I know (very little), biosboot was able to load the 2nd stage >> bootloader, but it now failed loading the kernel image. >> >> I can boot successfully into OpenBSD using a 4.8 boot CD though. I >> tried running installboot again (mindlessly!), and get this error: >> -------------------------- >> OpenBSD_49$ sudo /usr/mdec/installboot -n -v /boot /usr/mdec/biosboot sd0 >> Password: >> boot: /boot proto: /usr/mdec/biosboot device: /dev/rsd0c >> /boot is 3 blocks x 16384 bytes >> fs block shift 2; part offset 293603940; inode block 32, offset 10792 >> master boot record (MBR) at sector 0 >> partition 0: type 0x07 offset 63 size 293603877 >> partition 1: type 0xA6 offset 293603940 size 377487360 >> installboot: invalid location: all of /boot must be < sector 268435455. > > And here is the error now being generated. If you have a BIOS/Hardware > combo that can actually boot from >128GB, you can recompile installboot > and friends after changing the value of BIOSBOOT_MAXSEC in sys/sys/disklabel.h.
Okay, so I changed BOOTBIOS_MAXSEC and got installboot to work fine. Nothing seems to have changed though, as I still run into the "booting hd0a:/bsd: open hd0a:/bsd: Invalid argument failed(22). will try..." error message at boot>. What surprises me is OpenBSD booted fine *before* I had Windows XP, and the ~143G partition was still present. Possibly something else is broken... "makeactive" in menu.lst for grub did not help either (as I had guessed). -Amarendra [...]