I am trying to boot FreeBSD 9 from a USB stick that I created following the official guidelines:
dd if=FreeBSD-9.0-RELEASE-i386-memstick.img of=/dev/da0 bs=64k
Booting fails with a simple 'boot error'. I have used this USB stick for quite a while for the very purpose of booting / installing new OSs, but I tried a different one anyway - same problem. I have also reproduced the issue on a different machine. I've acquired to image file over torrent which AFAIK has an md5 check built in, but I downloaded it again anyway directly from a FreeBSD mirror. Same result.
Does anyone have any success with this ? I did not find anything related online which seems to suggest this is not a well-known problem. Does anyone have a thought where else to search for the cause of the problem ?
Did you actually use
/dev/da0
or did you replace it with the actual device name?The official guidelines only give you an example device name to write to.
da0
is a FreeBSD device name, not a Linux one so you probably didn't actually write to your USB stick.Use
dmesg
to work out which device your USB stick is under Linux - perhaps something likesdb
, in which case yourdd
command would look like:I added the option "conv=sync" to dd, and I could create a boot disk on Ubuntu. The whole command looks like:
I found the cause of the problem: I had created the USB stick under Linux - and it seems the stick can only be created under FreeBSD.
You would think it should not make a difference if dd is run under Linux or FreeBSD or any other OS, since all it does is copy bytes from one device to another, but in this case, it does.
I wonder: How is anyone supposed to install FreeBSD if a running installation of FreeBSD is needed to create the installation medium ?
I am in the process of installing FreeBSD 10 from scratch on that server and I took the opportunity to review this question. I am afraid the best answer is: Try again.
I have run the
dd
command on Linux with and without each of thebs=64k
(and other chunk sizes) andconv=sync
switches and every time the server booted fine from the USB stick.The only cause I can imagine that triggered the problem in the first place is that - as opposed to e.g. Debian - FreeBSD (among others) offers two ISO images, one called
...-disc-1.iso
and another one called...-memstick.iso
;dd
'ing the first one to a USB stick will cause the boot error described. Seems unlikely (as I even quoted the ISO name in the question), but if you come from e.g. Debian, skip reading the FreeBSD documentation and generally turn off your brain, this might happen.Thank you very much everybody for your responses, sorry this did not resolve in some gotcha that might be of use to anyone later on with the same problem.