View Single Post
  #4   (View Single Post)  
Old 28th October 2010
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

I built a small FreeBSD LiveUSB a while ago using syslinux and isolinux. I can use the same image & syslinux config for booting both from USB and CD.

In my case I just load the entire image in memory and go from there, since the image is fairly small in my case (~15M) this is not a problem. More advanced solutions would be required for larger images.

For FreeBSD I use:
Code:
KERNEL /boot/syslinux/memdisk
APPEND initrd=/boot/freebsd.img.gz harddisk raw
I would expect that this will also work for OpenBSD. Now the `raw' keyword, this is vital.

The main advantage of using syslinux is that you can just format your drive as FAT32 and use it for other things too.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote