pfr I was using it only as an example of what i'm NOT seeing (the MSDOS
partition).
Ah... A picture is not worth a thousand words then (or else I should learn to read more carefully).
It should be an EFI
partition there I think, but, with an empty disk I don't know. (I've always chickened out somewhere in this screen (or maybe the next) because my partitions are all jumbled up numerically and sysinst
gets very confused... I then slowly back away, then quietly close the door.)
pfr How is this achieved?
You first find the disk size (check dmesg
), then seek=NNN
(in combination with a suitable bs=NN
) and write zeros. It's only mildly tedious and I don't think you need to do it.
EDIT: See if sysinst
consents to carry on after you do this (you can use the USB boot image to run these commands):
% D=sd0 # CHANGE THIS--CORRECTLY
% gpt destroy $D # if GPT already present
% gpt create -A $D # make new GPT
% gpt add -a 1m -t efi -s 1g -l 9.3_EFI $D # add 1GB EFI partition
% dkctl $D listwedges # get wedge list
/dev/rsd0: 1 wedge:
dk16: b7fe3cfc-e5a3-4992-8cb9-af709b0491e6, 2097152 blocks at 2048, type: msdos
% newfs_msdos -F32 /dev/rdk16 # format as FAT32
% mount NAME=9.3_EFI /mnt # mount using GPT label
% mkdir -p /mnt/EFI/BOOT # EFI\BOOT\
% cp /usr/mdec/boot*.efi /mnt/efi/boot/. # copy EFI bootloader
% umount /mnt
To get a bootable system from here (at least, until the init
stage), you only need a FFS partition, /
, containing the kernel, /netbsd