Are all USB Flash Memory sticks bootable?

Randi Harper randi at freebsd.org
Fri Jul 24 01:47:02 UTC 2009


On Thu, Jul 23, 2009 at 6:27 AM, Sergio de Almeida Lenzi <
lenzi.sergio at gmail.com> wrote:

> Em Qui, 2009-07-23 às 12:52 +0800, Fbsd1 escreveu:
> Hello....
>
> I found here that some bios does have problem with booting
> from partitions they do not know....
>
> So first I initialize the USB stick with....
> ==========
> dd count=100 if=/dev/zero of=/dev/da0
> fdisk -BI da0
> sade
> ==========
> than edit the partitions...
> ls /dev/da* should show da0s1 da0s2
> than....
> disklabel -wB da0s1
> disklabel -wB da0s2
> newfs -L Freebsd7 da0s1a
> newfs -L Freebsd8 da0s2a
> boot0cfg -vB da0
> ============
> mount the partitions, copy the files
> boot from the usb...  it will show you the F1 F2 chooser....
>
> for me, this worked
>
>
> Sergio


Just to clarify, are you trying to boot from a USB stick that you've
installed FreeBSD onto, or is this a USB stick that you've dd'ed the
memstick.img to?

You should NOT use disklabel on a usb stick that you're dd'ing the
memstick.img to.

-- randi


More information about the freebsd-questions mailing list