Re: [FIXED] Re: Messed up OpenBSD boot after dualbooting via grub - cannot boot without OpenBSD boot CD.

2011-03-26 Thread Super Biscuit
The 128G limit usually means from the beginning of the disk.
I also use chainloader +1 for booting BSDs from x86 machines.
Apologies for keeping the thread alive.

--- On Sat, 3/26/11, Amarendra Godbole  wrote:

From: Amarendra Godbole 
Subject: Re: [FIXED] Re: Messed up OpenBSD boot after dualbooting via grub - 
cannot boot without OpenBSD boot CD.
To: "Kenneth R Westerback" 
Cc: "misc" 
Date: Saturday, March 26, 2011, 7:02 PM

On Sun, Mar 27, 2011 at 12:23 AM, Kenneth R Westerback
 wrote:
> On Sat, Mar 26, 2011 at 11:59:17PM +0530, Amarendra Godbole wrote:
>> Okay, seems like I sent a hasty reply earlier.
>>
>> Got this fixed, by booting off a 4.8 CD, and "upgrading" - fsck all
>> filesystems, say no to bsd, bsd.mp and base, it created device nodes,
>> and congratulated me for completion of the upgrade. Rebooted, and the
>> system came up nicely.
>
> And now has 4.8 or 4.9 installed?

4.9, since I said no to everything. I re-created device nodes after
booting, so hopefully things are okay.

>> Noticed two things:
>> (a) the * after hd0+ is gone during boot>
>
> The '*' reports a failure to find an OpenBSD disklabel.
> The '+' reports the BIOS claiming support of EDD, a.k.a. BIOS LBA, access.
>
>> (b) the disklabel now shows proper values for "boundstart" and
>> "boundend" - earlier both were 0.
>
> Because earlier the OpenBSD partition was not found, and thus unable to
> provide the bound information.

Yes, that was nagging me earlier, but somehow I could not fix it -
there is too much to understand for the i386 boot process, and the
partition and disklabel is a source of confusion for me.

Thanks for your pointers, I atleast had heart to continue trying to
fix (agree, I did not understand all - but since the CD boot was
working fine, and I have a full backup of my data, I decided to
probe.)

-Amarendra

>
>>
>> Thanks to all those who replied. Now I am off to reading more about
>> boot, and friends (though I am not sure if things are well at this
>> point!).
>>
>> -Amarendra
>>
>> On Sat, Mar 26, 2011 at 7:01 PM, Kenneth R Westerback
>>  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.
>> >>
>> >> (2) Installed Windows XP ghost image to the first partition. Sadly,
>> >> ntldr was not installed so machine still booted directly into OpenBSD
>> >>
>> >> (3) Installed grub. Here is what /grub/menu.lst looks like:
>> >> default 0 timeout 5
>> >> title Windows XP
>> >> root (hd0,0)
>> >> chainloader +1
>> >>
>> >> title OpenBSD
>> >> root (hd0,1)
>> >> chainloader +1
>> >>
>> >> (4) grub started fine, and Windows XP boots fine, but when I try to
>> >> boot OpenBSD, I get something like this:
>> >> Loading...
>> >> probing: <>
>> >> 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 

Re: [FIXED] Re: Messed up OpenBSD boot after dualbooting via grub - cannot boot without OpenBSD boot CD.

2011-03-26 Thread Amarendra Godbole
On Sun, Mar 27, 2011 at 12:23 AM, Kenneth R Westerback
 wrote:
> On Sat, Mar 26, 2011 at 11:59:17PM +0530, Amarendra Godbole wrote:
>> Okay, seems like I sent a hasty reply earlier.
>>
>> Got this fixed, by booting off a 4.8 CD, and "upgrading" - fsck all
>> filesystems, say no to bsd, bsd.mp and base, it created device nodes,
>> and congratulated me for completion of the upgrade. Rebooted, and the
>> system came up nicely.
>
> And now has 4.8 or 4.9 installed?

4.9, since I said no to everything. I re-created device nodes after
booting, so hopefully things are okay.

>> Noticed two things:
>> (a) the * after hd0+ is gone during boot>
>
> The '*' reports a failure to find an OpenBSD disklabel.
> The '+' reports the BIOS claiming support of EDD, a.k.a. BIOS LBA, access.
>
>> (b) the disklabel now shows proper values for "boundstart" and
>> "boundend" - earlier both were 0.
>
> Because earlier the OpenBSD partition was not found, and thus unable to
> provide the bound information.

Yes, that was nagging me earlier, but somehow I could not fix it -
there is too much to understand for the i386 boot process, and the
partition and disklabel is a source of confusion for me.

Thanks for your pointers, I atleast had heart to continue trying to
fix (agree, I did not understand all - but since the CD boot was
working fine, and I have a full backup of my data, I decided to
probe.)

-Amarendra

>
>>
>> Thanks to all those who replied. Now I am off to reading more about
>> boot, and friends (though I am not sure if things are well at this
>> point!).
>>
>> -Amarendra
>>
>> On Sat, Mar 26, 2011 at 7:01 PM, Kenneth R Westerback
>>  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.
>> >>
>> >> (2) Installed Windows XP ghost image to the first partition. Sadly,
>> >> ntldr was not installed so machine still booted directly into OpenBSD
>> >>
>> >> (3) Installed grub. Here is what /grub/menu.lst looks like:
>> >> default 0 timeout 5
>> >> title Windows XP
>> >> root (hd0,0)
>> >> chainloader +1
>> >>
>> >> title OpenBSD
>> >> root (hd0,1)
>> >> chainloader +1
>> >>
>> >> (4) grub started fine, and Windows XP boots fine, but when I try to
>> >> boot OpenBSD, I get something like this:
>> >> Loading...
>> >> probing: <>
>> >> 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.
>> >
>> > If you have any knowledge on how to reliably detect that the BIOS/Hardware
>> > will correctly support EDD access beyond 128GB, we are very interested.
>> >
>> >  Ken
>> >
>> >> --
>> >>
>> >> disklabel reads:
>> >> --
>> >> OpenBSD_49$ disklabel sd0
>> >> # /dev/rsd0c:
>> >> type: SCSI
>> >> disk: SCSI disk
>> >> label: ST9320423AS
>> >> duid: 93cf9b951f02f209
>> >> flags:
>> >> bytes/sector: 512
>> >> sectors/track: 63
>> >> tracks/cylinder: 255
>> >> sectors/cylinder: 16065
>> >> cylinders: 38913
>> >> total sectors: 625142448
>> >> boundstart: 0
>> >> boundend: 0
>> >> drivedat

[FIXED] Re: Messed up OpenBSD boot after dualbooting via grub - cannot boot without OpenBSD boot CD.

2011-03-26 Thread Amarendra Godbole
Okay, seems like I sent a hasty reply earlier.

Got this fixed, by booting off a 4.8 CD, and "upgrading" - fsck all
filesystems, say no to bsd, bsd.mp and base, it created device nodes,
and congratulated me for completion of the upgrade. Rebooted, and the
system came up nicely.

Noticed two things:
(a) the * after hd0+ is gone during boot>
(b) the disklabel now shows proper values for "boundstart" and
"boundend" - earlier both were 0.

Thanks to all those who replied. Now I am off to reading more about
boot, and friends (though I am not sure if things are well at this
point!).

-Amarendra

On Sat, Mar 26, 2011 at 7:01 PM, Kenneth R Westerback
 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.
>>
>> (2) Installed Windows XP ghost image to the first partition. Sadly,
>> ntldr was not installed so machine still booted directly into OpenBSD
>>
>> (3) Installed grub. Here is what /grub/menu.lst looks like:
>> default 0 timeout 5
>> title Windows XP
>> root (hd0,0)
>> chainloader +1
>>
>> title OpenBSD
>> root (hd0,1)
>> chainloader +1
>>
>> (4) grub started fine, and Windows XP boots fine, but when I try to
>> boot OpenBSD, I get something like this:
>> Loading...
>> probing: <>
>> 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.
>
> If you have any knowledge on how to reliably detect that the BIOS/Hardware
> will correctly support EDD access beyond 128GB, we are very interested.
>
>  Ken
>
>> --
>>
>> disklabel reads:
>> --
>> OpenBSD_49$ disklabel sd0
>> # /dev/rsd0c:
>> type: SCSI
>> disk: SCSI disk
>> label: ST9320423AS
>> duid: 93cf9b951f02f209
>> flags:
>> bytes/sector: 512
>> sectors/track: 63
>> tracks/cylinder: 255
>> sectors/cylinder: 16065
>> cylinders: 38913
>> total sectors: 625142448
>> boundstart: 0
>> boundend: 0
>> drivedata: 0
>>
>> 16 partitions:
>> #size   offset  fstype [fsize bsize  cpg]
>>   a:  2104508293603940  4.2BSD   2048 163841 # /
>>   b:  8385937295708448swap
>>   c:6251424480  unused
>>   d: 41945696304094400  4.2BSD   2048 163841 # /usr
>>   e:  4192960346040096  4.2BSD   2048 163841 # /tmp
>>   f: 20964832350233056  4.2BSD   2048 163841 #
/usr/local
>>   g:  4192960371197888  4.2BSD   2048 163841 #
/usr/X11R6
>>   h:125821056375390848  4.2BSD   2048 163841 # /home
>>   j:  8385952501211904  4.2BSD   2048 163841 # /var
>>   k:  8385920509597856  4.2BSD   2048 163841 #
/usr/src
>>   l: 12578912517983776  4.2BSD   2048 163841 #
/usr/obj
>> OpenBSD_49$
>> --
>>
>> dmesg is
>> -
>> OpenBSD 4.9-current (kernel) #5: Wed Mar 23 23:58:17 IST 2011
>> r...@zimbu.vxindia.veritas.com:/home/amar/site-specific/builds/kernel
>> cpu0: Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz ("GenuineIntel"
>> 686-class) 2.40 GHz
>> cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SE

Re: [FIXED] Re: Messed up OpenBSD boot after dualbooting via grub - cannot boot without OpenBSD boot CD.

2011-03-26 Thread Kenneth R Westerback
On Sat, Mar 26, 2011 at 11:59:17PM +0530, Amarendra Godbole wrote:
> Okay, seems like I sent a hasty reply earlier.
> 
> Got this fixed, by booting off a 4.8 CD, and "upgrading" - fsck all
> filesystems, say no to bsd, bsd.mp and base, it created device nodes,
> and congratulated me for completion of the upgrade. Rebooted, and the
> system came up nicely.

And now has 4.8 or 4.9 installed?

> 
> Noticed two things:
> (a) the * after hd0+ is gone during boot>

The '*' reports a failure to find an OpenBSD disklabel.
The '+' reports the BIOS claiming support of EDD, a.k.a. BIOS LBA, access.

> (b) the disklabel now shows proper values for "boundstart" and
> "boundend" - earlier both were 0.

Because earlier the OpenBSD partition was not found, and thus unable to
provide the bound information.

> 
> Thanks to all those who replied. Now I am off to reading more about
> boot, and friends (though I am not sure if things are well at this
> point!).
> 
> -Amarendra
> 
> On Sat, Mar 26, 2011 at 7:01 PM, Kenneth R Westerback
>  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.
> >>
> >> (2) Installed Windows XP ghost image to the first partition. Sadly,
> >> ntldr was not installed so machine still booted directly into OpenBSD
> >>
> >> (3) Installed grub. Here is what /grub/menu.lst looks like:
> >> default 0 timeout 5
> >> title Windows XP
> >> root (hd0,0)
> >> chainloader +1
> >>
> >> title OpenBSD
> >> root (hd0,1)
> >> chainloader +1
> >>
> >> (4) grub started fine, and Windows XP boots fine, but when I try to
> >> boot OpenBSD, I get something like this:
> >> Loading...
> >> probing: <>
> >> 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.
> >
> > If you have any knowledge on how to reliably detect that the BIOS/Hardware
> > will correctly support EDD access beyond 128GB, we are very interested.
> >
> >  Ken
> >
> >> --
> >>
> >> disklabel reads:
> >> --
> >> OpenBSD_49$ disklabel sd0
> >> # /dev/rsd0c:
> >> type: SCSI
> >> disk: SCSI disk
> >> label: ST9320423AS
> >> duid: 93cf9b951f02f209
> >> flags:
> >> bytes/sector: 512
> >> sectors/track: 63
> >> tracks/cylinder: 255
> >> sectors/cylinder: 16065
> >> cylinders: 38913
> >> total sectors: 625142448
> >> boundstart: 0
> >> boundend: 0
> >> drivedata: 0
> >>
> >> 16 partitions:
> >> # ? ? ? ? ? ? ? ?size ? ? ? ? ? offset ?fstype [fsize bsize ?cpg]
> >> ? a: ? ? ? ? ?2104508 ? ? ? ?293603940 ?4.2BSD ? 2048 16384 ? ?1 # /
> >> ? b: ? ? ? ? ?8385937 ? ? ? ?295708448 ? ?swap
> >> ? c: ? ? ? ?625142448 ? ? ? ? ? ? ? ?0 ?unused
> >> ? d: ? ? ? ? 41945696 ? ? ? ?304094400 ?4.2BSD ? 2048 16384 ? ?1 # /usr
> >> ? e: ? ? ? ? ?4192960 ? ? ? ?346040096 ?4.2BSD ? 2048 16384 ? ?1 # /tmp
> >> ? f: ? ? ? ? 20964832 ? ? ? ?350233056 ?4.2BSD ? 2048 16384 ? ?1 # 
> >> /usr/local
> >> ? g: ? ? ? ? ?4192960 ? ? ? ?371197888 ?4.2BSD ? 2048 16384 ? ?1 # 
> >> /usr/X11R6
> >> ? h: ? ? ? ?125821056 ? ? ? ?375390848 ?4.2BSD ? 2048 16384 ? ?1 # /home
> >> ? j: