Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 ?

share|improve this question
    
Hi! Did you find a way to solve this? I have the same problem from ubuntu 12.04 and from Archlinux. Can't even mount the device after dd'ing =/ –  Marco Sep 13 '13 at 21:04
add comment

3 Answers

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 like sdb, in which case your dd command would look like:

dd if=FreeBSD-9.0-RELEASE-i386-memstick.img of=/dev/sdb bs=64k
share|improve this answer
    
In my question, I quoted from the FreeBSD manual page; on my system, I did use the correct device to dd the USB stick - I guess I would have noticed if I had dd'd the installation image to some other device in my system ;-) –  ssc Jan 17 '12 at 13:18
add comment

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 ?

share|improve this answer
2  
The image can absolutely be written from other operating systems - even Windows with the correct tool. Check my answer and see if I'm on the right track. –  James O'Gorman Jan 16 '12 at 8:18
    
I would think so too, but I've double-checked every step of what I've been doing and went through the entire process several times before asking here - same result. Apart from the different OSs, I can't seem to see any other reason why the USB stick created under Linux does not boot. BTW: I ended up installing Windows just for the purpose of running the USB stick creation tool mentioned on the FreeBSD site. –  ssc Jan 17 '12 at 13:22
    
Long-shot, but have you tried it from Linux without the bs=64k? –  James O'Gorman Jan 17 '12 at 14:25
add comment

I added the option "conv=sync" to dd, and I could create a boot disk on Ubuntu. The whole command looks like:

dd if=FreeBSD-9.0-RELEASE-i386-memstick.img of=/dev/sdb bs=64k conv=sync
share|improve this answer
    
this is the way to do it from Linux! –  Oz123 Nov 22 '12 at 20:37
    
did not work for me –  ibrahim May 25 '13 at 8:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.