Fix for Ubuntu 10.04 Server USB Install

dl380A bunch of tricky issues arise when trying to install Ubuntu Server from a USB drive. Also, there exists a bug in the GRUB installer that threatens to muck things up once you work through the issue of even getting Ubuntu Server installed.  Today I’ll be describing how to fix all of these issues to successfully install Ubuntu 10.04 Server.

The Issues

Issue 1 – The CD-ROM Drive:

While trying to install Ubuntu Server from a USB stick, the installer throws an error when trying to detect the CD-ROM drive on servers without a CD-ROM drive.  For me, it was with version 10.04.2 (Lucid Lynx) 64-bit, but in the research I did while troubleshooting this issue I found that people using all different versions of Ubuntu Server were running into this exact problem.  Many posts to help forums have been made, but no solid resolutions have been offered.

Issue 2 – GRUB:

Ubuntu normally detects and installs GRUB (the bootloader) to the correct partition.  When installing to a server running RAID5 (at least in my case) it puts it on the wrong partition.

My Setup

Before I start explaining how to fix this problem it’s only fair that I give you a quick rundown of my setup.  This way you can modify or replicate my environment when working through this issue yourself.  To load a bootable Ubuntu 10.04.2 64-bit Server ISO onto a 1GB USB stick, I used a tool called UNetbootin on my Windows 7 64-bit machine.  This worked out fine, except it was throwing errors at me when I booted it on my newly acquired HP ProLiant DL380 G5.  This particular ProLiant doesn’t have a CD-ROM drive.  My more tech-savvy reader may wonder why I opted to use USB rather than a PXE-based netboot install.  I fooled around with netbooting it, but I wanted the convenience of not having to depend on the availability of a TFTP server in the future should I need to set up another server.  I like stand-alone solutions with minimal dependencies — it’s just my style.  Too many moving parts usually seems to end in disaster, so I tend to aim for simple, elegant solutions.

There are three parts to the resolution of this compound issue.  The first actually involves correcting an issue with the filenames on the USB stick, the second involves setting a boot option during the boot of the USB drive, and the third involves fixing GRUB, which for some reason, Ubuntu installs to the wrong partition.  All steps must be completed to consider this issue resolved.

Step 1: Fix the Filenames

After creating the bootable USB drive in Windows (using unetbootin), we access the USB drive under My Computer and go into /pool/main/l/linux on the drive.  In here will be a bunch of files with a .udeb extension.  Notice that almost of them end with the .udeb file extension, but a few of them don’t.  This is a problem.  We can fix them by renaming anything that doesn’t end in .udeb to .udeb.  I don’t know why unetbootin truncates these filenames (it could have something to do with a character limit in Windows pathnames), but this will fix that issue.  We can now eject this USB drive and plug it into our server.

Step 2: Type in the Required Boot Option

The next issue with CD-ROM drive detection can be resolved quite simply.  The work-around is to add


as an option on the kernel boot line.  By doing this, the Ubuntu installer will allow the USB drive to function as install media, rather than going haywire when it realizes the CD-ROM drive it expects to see is not present.

Step 3: Fix GRUB

None of the aforementioned steps will have much of an effect if we’re not able to boot our freshly installed operating system, right?  If this last step isn’t performed, we will be able to get through the entire Ubuntu installer process, and when we reboot, we’ll be greeted by a blinking cursor — and that’s it.  To turn this major issue into a minor annoyance, we need to tell the Ubuntu installer where GRUB should be, since it obviously guesses this incorrectly when left to figure this out automatically.

If we boot our server from our USB stick again, and choose Rescue Mode from the boot menu, it gives us a neat little option that allows us to manually install GRUB to a partition of our choice.  We need it to exist on /dev/cciss/c0d0, which is our RAID array.

Once GRUB is installed on /dev/cciss/c0d0, the server can be rebooted and we should be greeted by a login prompt.  Ubuntu Server is finally installed and booting!


Michael is the creator and main author of the Smalley Creative Blog. He is a guy who enjoys technology (particularly open source), educating people about technology, and working with people who enjoy technology as much as he does. Follow him on Twitter @michaeljsmalley.

15 comments: On Fix for Ubuntu 10.04 Server USB Install

  • Many thanks for that post!!!
    I’ve banged my head for hours trying to figure out why I had 1) file errors, and 2) GRUB errors.
    Again, thanks a lot for that must-have link for HP owners ^^

  • Thank you for writing this. This guide is so close to solving my issue. The only thing I’m not clear on is how to complete Step 2. My setup differs from yours in that I’m using a different machine without a CD-ROM drive and that there isn’t a raid set up on my system. I’ve used Unetbootin to create my bootable flash drive and completed Step 1. When and where do I add the boot option? I’ve never done it before and most guides seem to be for pre-existing installations of GRUB.

  • hi i have a similar problem. my netbook doesnt come with a cdrom, so im trying to install ubuntu server via a usb stick. im very new to linux so i dont really understand the part about editing the kernel boot line (cdrom-detect/try-usb=true)

    im using a asus 1005p netbook. thanks for your help

    • I don’t own that specific hardware, but it shouldn’t be much different than most netbook installs of Ubuntu. I would suggest you try working through this guide over at the Ubuntu forums. You may also find this useful, as it’s community documentation written specifically for your hardware series. Even though it says it’s for 1001P, it should be okay. If you go to the 1005P page it just redirects you to this page.

      As for the kernel boot line section that reads, cdrom-detect/try-usb=true:
      This is a kernel boot line option. The kernel boot line allows a user to pass options to the kernel that control how it behaves. These options can be built-in when configuring the kernel or they can alternatively be entered interactively by you during startup. In this guide, we enter this parameter during startup. This particular option tells the kernel to try using booting from our USB drive.

  • Thanks for the help, it worked like a charm

  • Thank you so much for this valuable information!!!

    How can I verify that my correct partition is “/dev/cciss/c0d0”. I’m using an HP ProLiant DL380 G7 with a Hardware Raid 1+0.?

    thank you,

  • Just renaming the file extensions worked for me. Thanks a bunch!!

  • Thank you SO much for this post. I have some legacy hardware that needs an old version of Ubuntu and this fix still works!!!

  • Hi,
    I don’t know how to access kernel boot line at Step 2. Is there some shortcut? When should I use it?

    Thanks for answer!

Leave a reply:

Your email address will not be published.

Site Footer