Install Ubuntu on USB hard drive

sudo qemu -hda /dev/sdc -cdrom kubuntu-10.04-desktop-i386.iso -boot order=d

That’s it.

(you can also try VirtualBox)

Except that I get an error: “Executing ‘grub-install /dev/sda’ failed. This is a fatal error.”

After this Ubiquity crashes.

Related posts:

Tags: , , , ,

  1. cmd’s avatar

    that’s hardly an easy or great way to install ubuntu on a usb hard drive

  2. Risto H. Kurppa’s avatar

    Thanks for pointing that out. Any better ideas?

  3. walker’s avatar

    i just saw on the one hand “hda”, on the other hand “sda”. maybe it’s that?

  4. Risto H. Kurppa’s avatar

    qemu –help

    -fda/-fdb file use ‘file’ as floppy disk 0/1 image
    -hda/-hdb file use ‘file’ as IDE hard disk 0/1 image
    -hdc/-hdd file use ‘file’ as IDE hard disk 2/3 image

    that’s where hda comes from.

    /dev/sdc is the usb image on the host computer
    /dev/sda is the only hard drive Ubuntu live session sees.

  5. Alan Pope’s avatar

    Burn the ISO to a CD or USB stick and boot from that, then run the installer as normal and install onto another USB stick?

    That’s how I did it.

  6. Ron’s avatar

    Why not just use unetbootin ???

  7. Alan Pope’s avatar

    Unetbootin will give you a live USB stick, but it’s not quite the same as having a full install on a stick.

  8. Risto H. Kurppa’s avatar

    @Alan: That’s the first thing I tried – but the installed didn’t let me select the drive to install to, it only showed hda, the internal hard disk. Is ubiquity supposed to support USB drives..?

  9. Niko’s avatar

    I have kubuntu running from usb hard drive, I installed it like Alan did.