Testing Natty and Unity Safely With a USB Stick

There is quite the buzz in the community about the new Compiz-driven Unity, and I know many of you are keen to play with it. Of course, do remember that it is incredibly early in the cycle and more things are likely to be broken than fixed as the transition is made. Some of you will be bummed out with the announcement that there will be no Maverick PPA for Unity, but fortunately, it is really easy to try Natty and Unity in a way that won’t involve sacrificing your current stable installation, or even touching your hard drive. You simply install and boot from a USB stick, and I wanted to share how to get this running.

NOTE: although Unity has now landed in Natty, some features such as the dash (the Ubuntu button) and the Applications/Files places have not landed yet. They should land ready for Alpha 2.

To do this you will need…wait for it…a USB stick! Get one with at least 2GB of space. Fortunately there are some pretty large USB sticks that are really cheap. In fact many are given out for free at conferences. Just sayin’… :-)

Just follow these steps to get started:

Step 1: Download the latest Daily Natty image

Go to this page and download an ISO for your computer. It should be saved to the Downloads directory on your computer.

Step 2: Create the USB stick installation

Click Applications -> System -> Startup Disk Creater. It looks like this:

When you start the application, it will likely automatically find the ISO you downloaded, which is displayed in the top pane. If you don’t see it, click the Other button and go and select the ISO (typically in your Downloads/ directory in your home directory).

It is recommended you first erase your USB stick, so select it in the bottom pane and click the Erase Disk button. When this is complete, you can then use the slider underneath the Stored in reserved extra space slider to select how much disk space can be used for saving files, documents and other things. I personally move the slider all the way to the right to use the maximum space available.

Finally, click the Make Startup Disk button and Natty will be installed to your USB stick.

Step 3: Reboot

Now you need to boot from USB stick. To do this you may need to enter your BIOS to enable your computer to be able to boot from the USB stick. When this is enabled you will typically need to hit a button when you boot to see the BIOS’s boot menu (e.g. on my Thinkpad T400 it is F12) and then you can select the USB drive.

Ubuntu should boot and look and function the same as usual, apart from being much slower as you are running from the USB disk.

Step 4: Update

Although you installed the latest daily you should ensure it is up to date, and you can do this with:

sudo apt-get update
sudo apt-get upgrade

Step 5: Test and Report Bugs

Although Natty is still very much in the early stages of development, we want to know when you experience bugs. If we don’t know about the bugs our community can’t fix them!

Many of you will be particularly interested in testing Unity, and we are really keen to hear about bugs and problems in Unity. Filing a bug is simple. Just open a terminal and run:

ubuntu-bug unity

The ubuntu-bug program zips up some debugging data from your system and will then fire up a page in your browser where you can enter a bug report. This will then provide details of the problem to the Unity developers to help fix the bug.

  • jorge

    For the testing and filing bugs part:

    https://wiki.ubuntu.com/UnityFilingBugs

    This page has instructions for getting debugging packages and info installed which can lead to better bug reports.

  • http://www.ryansteele.ca Ryan Steele

    Hi Jono, thanks for posting this. Unfortunately, there appears to be a bug in the utility for creating the startup disk which prevents you from using the slider to select how much space should be reserved. The workaround is to move the ISO to a location that isn’t automatically detected by the utility (like /tmp) and select it manually using the “Other…” button.

    Source: https://bugs.launchpad.net/ubuntu/+source/usb-creator/+bug/557775

  • foo

    When will you upload Unity to Debian?

  • http://dylanmccall.blogspot.com Dylan McCall

    I should point out this bug report: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/562312

    Granted, I only just learned the persistent space on the live usb applies to the whole filesystem instead of just /home. (Hours of wasted time; glad I finally know this :b)

    If I understand correctly, you should actually leave a bit of extra space if you want updates to work properly.

  • fazil

    First let it work for ubuntu… then some one in the debian community can copy it over… why should people at canonical do that….

  • skalka

    This procedure works even with nvidia chipsets? noveau dirvers are not enough, from what I know, to launch Unity.

  • Thomas

    I installed the latest version yesterday on my USB, wanted to try unity.

    After booting in I got the classic Ubuntu ui(not unity), so I logged out(hoping I could choose unity from the login options). When trying to log in I had to add username and password, but I had none..

  • Greg

    Hi Jono, I think you meant System -> Administration -> Startup Disk Creator (rather than Applications -> System -> Startup Disk Creater)

  • http://randall.executiv.es/ Randall

    Hi Jono, Testers may also want to consider a full installation onto a USB stick/drive, rather than running it live. Old (small) laptop drives work well for this. Throw them in a USB caddy, format, install, and go!

  • Chris

    I always found it in the true spirit of the Canonical community that the instructions on the Ubuntu website dont mention how to install eg. the netbook edition for Linux. Step 2: http://www.ubuntu.com/netbook/get-ubuntu/download Step 2: http://www.ubuntu.com/desktop/get-ubuntu/download

    Windows, Mac, Ubuntu Windows, Mac, Ubuntu

    No mention of the L word.

  • obrowny

    No it doesn’t work with nvidia cards unless you install proprietary drivers. Some other cards are blacklisted as well. If 3d is not available, you will get gnome panel and metacity.

  • jorge

    According to seb128 the debugging page is a bit out of date so I am wrong, “ubuntu-bug unity” is the best way to report bugs, sorry for the confusion.

  • PhilT

    Got the USB to work via Unetbootin and the live version works with a cacophony of errors. Installed to Acer Aspire One just get a blank screen on boot :-(

    Can someone point me at a screenshot of what Unity should look like, I’m not sure if the Live version is giving me that or some of the other desktops mentioned above. Thx.

  • http://nocturn.vsbnet.be Guy Van Sanden

    Does this also work on systems with an Nvidia card? Because the GLX drivers are not on the CD/ISO?

  • Shane

    I get the Try Ubuntu or Install Ubuntu screen. When I “try ubuntu”, it loads a live environment that doesn’t persist after reboot. If I try to install, well, it tries to install to my hard drive. What am I missing? I used to do this just fine when we weren’t welcomed by the “try ubuntu” or “install ubuntu” screen.

  • http://www.omgubuntu.co.uk/2010/12/tray-natty-alpha-1-safely-using-a-usb-stick/ Tray Natty Alpha 1 safely using a usb stick

    [...] the guide over at jonobacon.org along with a bit of info on how to get involved in reporting any bugs you happen to [...]

  • kikito

    Just FYI, on my system (Ubuntu Maverick, recently re-installed) the Disk Creator was not in:

    Applications > System > Startup Disk Creator

    Instead, it was on:

    System > Administration > Startup Disk Creator

  • http://www.twm-kd.com/ BigWhale

    A couple of things that I noticed. Nvidia doesn’t work out of the box with free drivers. And you are unable to install proprietary drivers on UsB drive. Which is connected with the second problem.

    Persistent file isn’t really persistent. If you create a file in /home/ubuntu and reboot, the file will disappear.

    I’ll be filing bug reports later tonight. :)

  • ethana2

    Nouveau is easily capable of that, I’ve used it with compiz, it’s more fluid than the proprietary drivers, by a lot, and the only stability problems I had were from the lack of power management overheating (and maybe destroying, we’ll see if I can fix it..) my laptop.

    You just have to install experimental mesa or whatever that uses it. If you can get a version new enough to have half decent power management, you can have an awesome compiz-fueled experience.

  • ethana2

    :D

    Although I would say that has less to do with spirit than strategy and usability.

    People can handle a finite amount of options for any given choice they have to make. 3 is probably about the limit of that.

  • skalka

    So I can’t never try Unity unless I install Natty on a second partition and I will not do it.

  • jono

    Just install it to a USB stick. :-)

  • Jim

    Thanks for the guide Jono. Am pleased to report that on my little laptop here (Vaio, Intel Core Solo @1.2GHz, 1GB, i915 graphics) Unity feels much snappier than Maverick standard Gnome desktop. Exciting stuff.

  • Bryce Harrington

    “move the slider all the way to the right to use the maximum space available”

    Note that if you allocate all the free space for documents, it doesn’t leave space for the system. So then if you try upgrading a kernel or installing a kernel driver, it can fail and leave the usb key in an unusable state.

    So my advice would be to leave at least 800M unreserved for system files.

  • djm

    That’s what happened to mine Shane. I was under the impression that this would be a persistent version of Natty. I missed the step that enables the usefulness of this project.

  • Dick Smith

    Jono, when you say “install” do you mean after you make the start-up disk to then install it to the USB stick? I don’t find from the start-up disk that I can access a terminal to do the updates you suggest.

    Dick