Hi!
I'm having trouble using installboot. Here some facts that are the way
they are (Test environment on which I simulate things), no need to
discuss them:
OpenBSD4.3 (probably the same issue with any other version anyway)
Hardware is VMWare ESXi 4
Here's what I do:
- fresh install of OpenBSD on a 1GB HD (IDE). Disklabeled all in one
partiton
- Installation is working fine, machine boots OpenBSD fine, everything OK
- next I shutdown the machine and add an additional HD with the exact
same geometry the 1rst HD has. Then I boot the machine again, fdisk and
disklabel it the absolut exact same way I did with the first disk.
newfs, mount it to /mnt and copy /usr/mdec/boot to /mnt. Then I run
installboot:
# /usr/mdec/installboot -v /mnt/boot /usr/mdec/biosboot wd1
boot: /mnt/boot
proto: /usr/mdec/biosboot
device: /dev/rwd1c
/usr/mdec/biosboot: entry point 0
proto bootblock size 512
/mnt/boot is 3 blocks x 16384 bytes
fs block shift 2; part offset 63; inode block 24, offset 936
installboot: broken MBR
It gives me the exact same error all the time: broken MBR. I've tried
that a few dozen times with different HD sizes, disklabel layout and so
on. I have no idea what could be causing this. The only difference
between wd0 and wd1 is that wd1 is connected to IDE0:1 and wd0 is
connected to IDE0:0.
Below you can find the output of fdisk and disklabel for both, wd0 and
wd1. I'd be happy to get a hint what could be causing this.
Regards,
T.
##############################################################################
# fdisk wd0
Disk: wd0 geometry: 520/64/63 [2097152 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 1 - 519 63 63 [ 63: 2096577 ] OpenBSD
# disklabel wd0
# Inside MBR partition 3: type A6 start 63 size 2096577
# /dev/rwd0c:
type: ESDI
disk: ESDI/IDE disk
label: VMware Virtual I
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 64
sectors/cylinder: 4032
cylinders: 520
total sectors: 2097152
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 1846593 63 4.2BSD 2048 16384 1
b: 1 1846656 swap
c: 2097152 0 unused 0 0
d: 249983 1846657 4.2BSD 2048 16384 1
# fdisk wd1
Disk: wd1 geometry: 520/64/63 [2097152 Sectors]
Offset: 0 Signature: 0x0
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 1 - 519 63 63 [ 63: 2096577 ] OpenBSD
# disklabel wd1
# Inside MBR partition 3: type A6 start 63 size 2096577
# /dev/rwd1c:
type: ESDI
disk: ESDI/IDE disk
label: VMware Virtual I
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 64
sectors/cylinder: 4032
cylinders: 520
total sectors: 2097152
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 1846593 63 4.2BSD 2048 16384 1
b: 1 1846656 swap
c: 2097152 0 unused 0 0
d: 249983 1846657 4.2BSD 2048 16384 1