Find the answer to your Linux question:
Results 1 to 7 of 7
I am wondering if anyone knows of a way to install netbsd onto a hard drive or, failing that, a usb stick without having to burn a cd? More specifically, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2011
    Posts
    14

    netbsd "gorilla" install


    I am wondering if anyone knows of a way to install netbsd onto a hard drive or, failing that, a usb stick without having to burn a cd?

    More specifically, my PC (i686 celeron) has both FreeBSD and my own custom Linux (similar to Linux From Scratch but with a lot of modifications). I've successfully cross-built the entire distribution under Linux (and must say build.sh is impressive) but don't have a single cd to burn, and since I'm a shut in the next time I can get to the store is going to be a while off.

    I was thinking something like laying out a netbsd chroot from within freebsd (don't know if it's possible, the docs are kind of slim on binary compat except as it relates to Linux) and then creating my netbsd disklabel and slices from within the chroot, using the native tools. Then manually extracting the installation sets and a kernel.

    So would this be possible? Is there an easier way possibly? My understanding is that the ufs implementation differs enough that creating the slices and disklabel from FreeBSD is not an option.

  2. #2
    Just Joined!
    Join Date
    Nov 2011
    Location
    New Zealand
    Posts
    79
    Would the following link help?

    genericzero.wordpress.com/2009/08/01/install-netbsd-from-a-usb-memory-stick-the-easy-way/

    Would have put the link in the post but I cant do that until I do 15 posts or more.

  3. #3
    Just Joined!
    Join Date
    Sep 2011
    Posts
    14
    Thanks for the link.

    In reading over the script, it looks as if it is meant to be run from within a functional NetBSD installation (of which I have none yet) so it's still sort of a chicken and egg situation.

    What I have to work with is a functional FreeBSD-8.2 installation and a Linux installation. To do what I want to do I'd have to find a way to perform the following steps (I think):
    1) Create a NetBSD disklabel and ffs partitions.
    2) Mount the created partitions rw and untar the distribution sets I've built.
    3) Run "installboot" to get the boot loader onto the correct partition.

    So my question is possibly better worded as, is there a way to get steps 1 and 3 done from either Linux or FreeBSD (step 2 is easy)? Or should I just wait until I can get the physical media and burn an installation disk from the iso file that build.sh prepared?

  4. #4
    Administrator jayd512's Avatar
    Join Date
    Feb 2008
    Location
    Kentucky
    Posts
    5,023
    While I've never played around with any of the BSDs, you might have some luck using Unetbootin.
    I've used it several times, and it works pretty well.
    Jay

    New users, read this first.
    New Member FAQ
    Registered Linux User #463940
    I do not respond to private messages asking for Linux help. Please keep it on the public boards.

  5. #5
    Just Joined!
    Join Date
    Sep 2011
    Posts
    14
    Ah, but down in the comments I just saw a link to some memstick images, which should be possible to dd onto a pendrive and get then do my "gorilla install" using my newly built binaries after booting NetBSD from the resulting pendrive. So you managed to provide me a solution anyway, in a roundabout way.

    And so I say THANKS!

  6. #6
    Just Joined!
    Join Date
    Nov 2011
    Location
    New Zealand
    Posts
    79
    Yeah, NetBSD does have memstick images but they are slightly hidden on their site from memory.

    Unetbootin (as mentioned) could be another option

  7. #7
    Just Joined!
    Join Date
    Dec 2011
    Posts
    4
    my personal favourite is using virtualbox with the install iso of the new os and a raw-disk vmdk of the drive you want to install onto

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •