1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Installing on a USB Flash drive?

Discussion in 'Installing and Upgrading FreeBSD' started by diskman, Jun 16, 2009.

  1. diskman

    diskman New Member

    Messages:
    4
    Thanks Received:
    0
    Am thinking of installing FreeBSD 7.2 on a spare 4GB flash drive I have rolling around here to make a diskless BSD box. However, the BIOS on the PC does not support boot to USB. Is there a way I could load the kernel from a floppy/CD then finish booting to USB? Has this ever been done with FBSD?

    Any ideas? Input?
     
  2. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,515
    Thanks Received:
    2,351
    Yes, you should be able to boot from a floppy and load the rest off a usb stick. I've done a similar thing in the past where the BIOS refused to boot of a relatively big harddisk (big for the BIOS standard of that time).
     
  3. Oko

    Oko Member

    Messages:
    565
    Thanks Received:
    78
    That is a very interesting question. Even on OpenBSD which can be boot from the single floppy unlike FreeBSD it would be tricky. There are three different boot floppies for OpenBSD depending what kind of lets say i386 you want to boot. (there is a regular PC floppy, laptop floppy, and RAID floppy).

    I would actually try something else. I am not sure if that can be done on FreeBSD though. OpenBSD provides something called cdbr which is the code for the first part of the boot process. It is only 2Kb. I would try to load that onto the floppy. cdbr will try to load bsd.rd (ram disk kernel) which contains about 5Mb of drivers necessary for honest boot. If you can actually specify that bsd.rd is on USB stick you will be in business.

    As I said I am not sure if that can be done on FreeBSD but I am really curious to hear about your experience.
     
  4. jenaniston

    jenaniston New Member

    Messages:
    54
    Thanks Received:
    0
    try ploplinux on a CD iso -
    it will then let you boot from USB even without bios support
     
  5. jenaniston

    jenaniston New Member

    Messages:
    54
    Thanks Received:
    0