tags:

views:

1296

answers:

3

I'm trying to install ubuntu on an usb, the problem is, I don't want to dual boot once done, I want to keep my windows but boot ubuntu using virtualbox and use the usb as my harddrive for ubuntu, but how?

Virtualbox will not recognize the usb as a harddrive when installing the iso

+1  A: 

In Virtualbox you have to make virtual hard disks. Make one on the USB drive and tell Virtualbox to install to the virtual hard drive you have just created.

EDIT: To answer some further questions:

In the new Virtual Disk dialog, next to the location field is a button. Click on that button. In order to get to the virtual disk onto the flash drive, next to Save In in the file select window is a drop down box, click on the arrow and you can get to your flash drive from there. I recommend setting the image to dynamically allocate, since the size of your flash drive isn't the available disk space. Name the image, then select that image to install Ubuntu to in VirtualBox. VirtualBox will never install directly to a drive, but will always install to a virtual disk. Windows will still be able to read your USB drive, but there will be a file on there ending in .vdi, that is your virtual disk drive.

indyK1ng
Just what I was going to say. :)
GalacticCowboy
How can I make a virtual hd with http://www.virtualbox.org/wiki/VirtualBox ?
kristian nissen
Sorry... I know this one, but I don't see my USB in in the list
kristian nissen
A: 

Follow the answer from xxzeenoxx @

http://ubuntuforums.org/showthread.php?p=2202027

CodeToGlory
Problem is, I'm trying to do this from windows, not ubuntu
kristian nissen
A: 

If you're still interested, here is a guide I wrote about booting VirtualBox from USB, and I tested it specifically on Ubuntu, so I guess this is what you are (were) looking for.

Lawand