Hello misc@
Target machine is a work laptop so unfortunately I can't change the main
bios settings or touch the main hard drive (sd0). I'm using the bios
'one time boot' menu to boot from an external 250Gb usb hard drive as
sd1.
First and second stage boot both load successfully (see below) but the
second stage hangs when trying to load the kernel.
Everything works if I boot /bsd from cd0a via 'boot -a' to put root and
swap on sd1, but clearly this isn't ideal.
I've tried a couple of different USB hard drives with the same result.
Thanks in advance for any ideas or suggestions.
Martin
==================
Transcript of boot
==================
sing drive 0, partition 3.
Loading...
probing: pc0 com0 pci mem[635K 3013M 992M a20=on]
disk: hd0+ hd1+*
OpenBSD/i386 BOOT 3.18
boot> machine diskinfo
Disk BIOS# Type Cyls Heads Secs Flags Checksum
hd0 0x80 label 1023 255 63 0x2 0xd30e9578
[external USB HD]
hd1 0x81 label 1022 255 63 0x0 0xf6c0c43e
[internal HD]
boot> set
OpenBSD/i386 BOOT 3.18
Addr 0x0
howto
device hd0a
tty pc0
image /bsd
timeout 0
db_console unset
boot> ls /bsd
-rw-r--r-- 0,0 9045137 hd0a:/bsd
boot> boot
booting hd0a:/bsd: / [hangs]
=========
fdisk sd1
=========
Disk: sd1 geometry: 30401/255/63 [488397168 Sectors]
Offset: 0 Signature: 0xAA55
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
------------------------------------------------------------------------
-------
0: 00 0 0 0 - 0 0 0 [ 0: 0 ]
unused
1: 00 0 0 0 - 0 0 0 [ 0: 0 ]
unused
2: 00 0 0 0 - 0 0 0 [ 0: 0 ]
unused
*3: A6 0 1 2 - 30400 254 63 [ 64: 488392001 ]
OpenBSD
=============
disklabel sd1
=============
# /dev/rsd1c:
type: SCSI
disk: SCSI disk
label: HM250HI
duid: cfc615af6c04aea8
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 30401
total sectors: 488397168
boundstart: 64
boundend: 488392065
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 2097152 64 4.2BSD 2048 16384 1 # /
b: 6697560 2097216 swap # none
c: 488397168 0 unused
d: 8388576 8794784 4.2BSD 2048 16384 1 # /tmp
e: 20735136 17183360 4.2BSD 2048 16384 1 # /var
f: 4194304 37918496 4.2BSD 2048 16384 1 # /usr
g: 2097152 42112800 4.2BSD 2048 16384 1 #
/usr/X11R6
h: 20971520 44209952 4.2BSD 2048 16384 1 #
/usr/local
i: 4194304 65181472 4.2BSD 2048 16384 1 #
/usr/src
j: 4194304 69375776 4.2BSD 2048 16384 1 #
/usr/obj
k: 414821888 73570112 4.2BSD 4096 32768 1 # /home
====================
dmesg (booted from cd0a)
====================
OpenBSD 5.2 (GENERIC) #278: Wed Aug 1 10:04:16 MDT 2012
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC
RTC BIOS diagnostic error
b5<clock_battery,config_unit,memory_size,invalid_time>
cpu0: Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz ("GenuineIntel"
686-class) 2.50 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,
CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,NXE,LONG,SSE3,PCLMUL,MWAI
T,DS-CPL,VMX,SMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,SSE4.1,SSE4.2,x2APIC,POPCN
T,AES,XSAVE,AVX,LAHF
real mem = 3160715264 (3014MB)
avail mem = 3098234880 (2954MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/14/11, SMBIOS rev. 2.6 @
0xbcd95000 (27 entries)
bios0: vendor Hewlett-Packard version "68SCF Ver. F.27" date 06/14/2012
bios0: Hewlett-Packard HP EliteBook 8460p
[...]
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
[...]
ehci1 at pci0 dev 29 function 0 "Intel 6 Series USB" rev 0x04: apic 0
int 16
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
[...]
ahci0 at pci0 dev 31 function 2 "Intel 6 Series AHCI" rev 0x04: msi,
AHCI 1.3
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: <ATA, SAMSUNG MZ7PC128, CXM0> SCSI3
0/direct fixed naa.5002538043584d30
sd0: 122104MB, 512 bytes/sector, 250069680 sectors, thin
cd0 at scsibus0 targ 1 lun 0: <hp, CDDVDW SN-208BB, HH03> ATAPI 5/cdrom
removable
[...]
uhub5 at uhub1 port 1 "Intel Rate Matching Hub" rev 2.00/0.00 addr 2
umass0 at uhub5 port 2 configuration 1 interface 0 "Iomega Storage" rev
2.00/1.00 addr 3
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: <SAMSUNG, HM250HI, > SCSI2 0/direct fixed
serial.059b047019FC15231FFF
sd1: 238475MB, 512 bytes/sector, 488397168 sectors
[...]
root device (default cd0a): sd1a
swap device (default sd1b):
root on sd1a swap on sd1b dump on sd1b