Subject: Re: Booting a USB key - 'Error B'
To: David Brownlee <email@example.com>
From: David Laight <firstname.lastname@example.org>
Date: 10/15/2004 20:10:39
On Fri, Oct 15, 2004 at 07:23:06PM +0100, David Brownlee wrote:
> I had a quick pass at putting a kernel on a USB key,
> mount /dev/sd0e /mnt
> cp /boot /netbsd /mnt
> umount /mnt
> installboot -v /dev/sd0e /usr/mdec/bootxx_msdos
> fdisk -i sd0
> I can quite believe something is missing, but the result
> gives me an 'Error B', which is an errcod which doesn't
> appear to be listed anywhere in arch/i386/stand/mbr/mbr.c
I presume you meant mbr.S ...
> Does anyone have any idea?
That error is from bootxx/pbr.S
1) Does the 'USB key' look like a hard disk, or a floppy?
(more particularly does it have an MBR that describes 4 partitions)
2) Does the FAT filesystem have 8k of space for the boot code?
(FAT filesystems can have space at the required place).
David Laight: email@example.com