[Oberon] dd Oberon Boot Manager to disk.

peter at easthope.ca peter at easthope.ca
Sun Oct 25 20:04:09 CET 2020


Hi,

In the past I've installed Boot Manager from a running ETH Oberon 
system according to Andre's instructions.
Partitions.WriteMBR devN#0 BootManagerMBR.Bin ~
Partitions.FileToPartition devN#0 BootManagerTail.Bin 1 12 ~

(BootManagerTail.Bin contains 6144 bytes = 12 x 512 b)

Now that installation using a hypervisor is convenient, I think of the 
Linux dd command.  Using a hex editor, make file sig containing the 
two bytes 55h AAh.
dd if=/home/me/BootManagerMBR.Bin  of=/dev/sdX bs=446 seek=0   count=1
dd if=/home/me/sig                 of=/dev/sdX bs=2   seek=255 count=1
dd if=/home/me/BootManagerTail.Bin of=/dev/sdX bs=512 seek=1   count=12

And without the sig file.
dd if=/home/me/BootManagerMBR.Bin  of=/dev/sdX bs=446 seek=0   count=1
dd if=<(echo -n -e '\x55\xAA')     of=/dev/sdX bs=2   seek=255 count=1
dd if=/home/me/BootManagerTail.Bin of=/dev/sdX bs=512 seek=1   count=12

Ref. https://en.wikipedia.org/wiki/Master_boot_record#Sector_layout

Appears the size of the bootstrap code, 446, is cast in stone.

Comments?  

Thx,                              ... Lyall E.

-- 
Tel: +1 604 670 0140            Bcc: peter at easthope. ca



More information about the Oberon mailing list