[flashboot] Getting flashboot to boot properly

Boudewijn Ector lists at boudewijnector.nl
Thu May 24 18:22:18 EST 2007


> If that's a direct paste, you never mounted the partition after
> running newfs on it...
>
>   

Hi Guys

I'm still stuck, would someone be so kind to give me a hint?
The commands below are entered on a 6GB MicroDrive system.

This is a literal copy:


root at foobar ~ # fdisk -i sd0
fdisk: sysctl(machdep.bios.diskinfo): Device not configured

        -----------------------------------------------------
        ------ ATTENTION - UPDATING MASTER BOOT RECORD ------
        -----------------------------------------------------

Do you wish to write new MBR and partition table? [n] y
root at foobar ~ # fdisk sd0
fdisk: sysctl(machdep.bios.diskinfo): Device not configured
Disk: sd0       geometry: 5859/64/32 [12000556 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 - 5858  63 32 [          32:    11999200 ] OpenBSD
root at foobar ~ # disklabel sd0
# Inside MBR partition 3: type A6 start 32 size 11999200
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: Card Reader   CF
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 5859
total sectors: 12000556
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:      11999200            32  unused      0     0      # Cyl     
0*-  5858
  c:      12000556             0  unused      0     0      # Cyl     0 
-  5859*
root at foobar ~ # disklabel -E sd0
# Inside MBR partition 3: type A6 start 32 size 11999200
disklabel: Can't get bios geometry: Device not configured

Treating sectors 32-11999232 as the OpenBSD portion of the disk.
You can use the 'b' command to change this.

Initial label editor (enter '?' for help at any prompt)
 > p
device: /dev/rsd0c
type: SCSI
disk: SCSI disk
label: Card Reader   CF
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 5859
total sectors: 12000556
free sectors: 11999200
rpm: 3600

16 partitions:
#             size        offset  fstype [fsize bsize  cpg]
  a:      11999200            32  unused      0     0      # Cyl     
0*-  5858
  c:      12000556             0  unused      0     0      # Cyl     0 
-  5859*
 > d
partition to delete: [] a
 > p
device: /dev/rsd0c
type: SCSI
disk: SCSI disk
label: Card Reader   CF
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 5859
total sectors: 12000556
free sectors: 11999200
rpm: 3600

16 partitions:
#             size        offset  fstype [fsize bsize  cpg]
  c:      12000556             0  unused      0     0      # Cyl     0 
-  5859*
 > a
partition: [a]
offset: [32]
size: [11999200]
FS type: [4.2BSD]
 > p
device: /dev/rsd0c
type: SCSI
disk: SCSI disk
label: Card Reader   CF
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 5859
total sectors: 12000556
free sectors: 0
rpm: 3600

16 partitions:
#             size        offset  fstype [fsize bsize  cpg]
  a:      11999200            32  4.2BSD   2048 16384   16 # Cyl     
0*-  5858
  c:      12000556             0  unused      0     0      # Cyl     0 
-  5859*
 > w
 > q
No label changes.
root at foobar ~ # newfs sd0a
Warning: 32 sector(s) in last cylinder unallocated
/dev/rsd0a:     11999200 sectors in 11718 cylinders of 32 tracks, 32 sectors
        5859.0MB in 37 cyl groups (323 c/g, 161.50MB/g, 20608 i/g)
super-block backups (for fsck -b #) at:
 32, 330816, 661600, 992384, 1323168, 1653952, 1984736, 2315520, 2646304,
 2977088, 3307872, 3638656, 3969440, 4300224, 4631008, 4961792, 5292576,
 5623360, 5954144, 6284928, 6615712, 6946496, 7277280, 7608064, 7938848,
 8269632, 8600416, 8931200, 9261984, 9592768, 9923552, 10254336, 10584096,
 10914880, 11245664, 11576448, 11907232,

root at foobar ~ # mount /dev/sd0a /mnt/
root at foobar ~ # cp /usr/mdec/boot  /mnt/boot
root at foobar ~ # mkdir /mnt/conf
root at foobar ~ # /usr/mdec/installboot -v /mnt/boot  /usr/mdec/biosboot sd0
boot: /mnt/boot
proto: /usr/mdec/biosboot
device: /dev/rsd0c
/usr/mdec/biosboot: entry point 0
proto bootblock size 512
/mnt/boot is 3 blocks x 16384 bytes
fs block shift 2; part offset 32; inode block 24, offset 936
using MBR partition 3: type 166 (0xa6) offset 32 (0x20)
root at foobar ~ # cp WRAP12.large.bsd /mnt/bsd
root at foobar ~ # umount /bsd


More information about the flashboot mailing list