Subject: Re: Booting a USB key - 'Error B'
To: David Laight <david@l8s.co.uk>
From: David Brownlee <abs@NetBSD.org>
List: port-i386
Date: 10/18/2004 20:47:46
On Fri, 15 Oct 2004, David Laight wrote:

> 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 ...

 	(ahem :)

>> 	Does anyone have any idea?
>
> That error is from bootxx/pbr.S

 	Ah - would it make sense to update mbr(8) to mention the
 	pbr abd associated Error code(s?)

> Questions:
> 1) Does the 'USB key' look like a hard disk, or a floppy?
>   (more particularly does it have an MBR that describes 4 partitions)

 	Hard disk - four partitions.

> 2) Does the FAT filesystem have 8k of space for the boot code?
>   (FAT filesystems can have space at the required place).

 	Good question - installboot ran without complaint:

-- 
 		David/absolute       -- www.NetBSD.org: No hype required --