[flashboot] Getting flashboot to boot properly
Boudewijn Ector
lists at boudewijnector.nl
Sat May 19 01:18:12 EST 2007
>> How to copy the bootloader?
>>
>
> cp - you can see an example in the installboot(8) EXAMPLES section.
>
Ok done that, still isn't working yet.
I've done these steps on a new CF disk (clean).
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
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 1013728 32 4.2BSD 2048 16384 323 # Cyl
0*- 494
c: 1014048 0 unused 0 0 # Cyl 0
- 495*
> d
partition to delete: [] a
> a a
offset: [32]
size: [1013728]
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: 495
total sectors: 1014048
free sectors: 0
rpm: 3600
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 1013728 32 4.2BSD 2048 16384 16 # Cyl
0*- 494
c: 101404
8 0 unused 0 0 # Cyl 0 - 495*
> w
> quit
No label changes.
root at foobar ~ # newfs sd0a
Warning: 32 sector(s) in last cylinder unallocated
/dev/rsd0a: 1013728 sectors in 990 cylinders of 32 tracks, 32 sectors
495.0MB in 4 cyl groups (323 c/g, 161.50MB/g, 20608 i/g)
super-block backups (for fsck -b #) at:
32, 330816, 661600, 992384,
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
More information about the flashboot
mailing list