Install Ubuntu 17.10 Usb



I regularly have the need to try things out on Linux. Sometimes a virtual machine won't cut it for me typically due to memory, disk and performance limitations. Moreover, a decent, up-to-date, bootable Linux environment is a great backup in case all of my other computers are broken, infected or stolen. That entails having the Linux installation on an external, USB-attached hard disk drive which can boot with relative ease on any UEFI-enabled PC (driver compatibility notwithstanding). Moreover, all the preparatory work has to be performed using a single-boot Windows computer without ending up having a dual boot system. It sounds tough. It is tough, but I'm writing this from my portable Ubuntu Linux installation running off a USB-attached SSD!

With a bootable Ubuntu USB stick, you can: Install or upgrade Ubuntu. Test out the Ubuntu. Get the correct Ubuntu installation file, 'the iso file', via this link or Ubuntu flavour via this link. Download the iso file into your running computer (for example into the directory Downloads in the internal drive, not into the USB flash drive that you want to make into a USB boot drive). Check with md5sum (or another checksum tool) that.

  • Download the Ubuntu 17.10 ISO, and create a bootable USB drive. Insert the USB, and hold ‘option’ key while booting. Select the USB drive to boot from. Select “Try Ubuntu” (not “Install Ubuntu”) from the menu. Once it boots to the Ubuntu Desktop Open the “Install Ubuntu” icon and follow the installation.
  • Download Ubuntu 17.04; Once the ISO file is downloaded then burn it to USB drive or DVD and make it bootable. In this article I am assuming you are going to install Ubuntu 17.04 on a fresh system(64-bit) Step:1 Boot Your System with above created bootable USB or DVD.
  • Download Ubuntu 18.04 ISO File. Before you start, make sure you have read the prerequisites,.
Ubuntu

What you need

  • An empty external (USB) hard drive. I used a USB 3 drive enclosure with a cheap 256Gb SSD. For those of you worrying about performance, the USB 3.0 port is faster than the maximum transfer rate of any SSD I've seen to this date.
  • Ubuntu Linux bootable USB drive. Very easy to create using Rufus on Windows. I used a cheap, promotional flash drive. Reduce, reuse, recycle FTW.
  • Windows System Repair Disc (a bootable USB drive with Windows recovery tools which you can make yourself) or a Windows installation or rescue CD-ROM / DVD-ROM. I used another promotional flash drive.

Remember to take backups of all your critical files and folders before continuing. You are going to make changes to your computer. If it breaks don't cry, I warned you. Also test both your bootable media. Twice. You will need them both!

Caveats

Having a dual- or multi-boot system isn't as straightforward as it used to be a decade ago. Nowadays, in the interest of security, performance and backwards compatibility, there are many semi-hidden options and features which can get in your way. Given enough experience and patience you can work around them. Below is a selection of problems that got me moderately stumped along the way.

Secure boot caveat

I have only tested these instructions with Secure Boot turned off. Even though Ubuntu does support Secure Boot (it comes with signed bootloaders) I have no idea if my method uses the signed bootloaders or not. I suggest turning off Secure Boot if possible.

FastBoot caveats

Many boards come with some sort of 'fast boot' or 'boot optimization' options. For example, my Intel NUC has an option called Fast Boot which won't let me choose an alternative boot device at startup. It also has an option to support Intel Rapid Start Technology which does get in the way of booting to multiple OS. I had to disable both.

It's worth noting that Windows 8 and 10 have an Fast Startup or Fast Boot feature. This feature takes some shortcuts when it comes to booting and also makes the NTFS filesystem remain in a dirty state, making it unwriteable from Linux. It's best to understand what it does and disable it if you plan on writing to your Windows drive from Linux.

Ubuntu

USB host controller caveat

Some firmwares will present the USB host controller as UHCI (USB 1.1) at boot time. When Linux probes for an xHCI (USB 3) host controller during the boot process they will respond positively. At this time Linux loads the xHCI driver and the USB host controller resets itself.

However, your root filesystem is inside a device attached to this USB controller. Therefore the controller resetting means that Linux can no longer communicate with the USB-attached hard drive. Therefore the Linux boot will hang forever without any further indication as to what went wrong.

Most affected boards (including my Intel NUC) have an option to enable the xHCI host controller interface by default. Enabling the xHCI option in the BIOS fixes the hanging boot issue. If you are only using modern operating systems with USB 3 support (anything newer than and including Windows 8.1 and Ubuntu Linux 15.04) you can safely enable that option.

Installing Linux

Boot your computer from the Ubuntu Linux bootable USB drive. Remember that you may have to enter your computer's boot manager to do that (on my Intel NUC I have to press F10; on most other BIOS I've seen it's F9; consult your BIOS documentation).

Install Ubuntu Linux regularly. When it prompts you about the disk layout choose Something Else and partition your external HDD the way you want. I chose to create a modestly sized root partition (about 40Gb), a swap partition that's as big as the biggest RAM configuration I am going to be using this installation with plus one Gb (my computers max out at 16Gb so I made a 17Gb swap partition) and the rest of the disk went to a massive /home partition.

Caveat: I chose to use btrfs which – as I learned along the way – makes things a bit more complicated down the line. For your sanity's sake I recommend using ext4. This guide assumes the use of btrfs and will point out the caveats with this approach.

Fix Windows 10 boot

Unfortunately the Ubuntu Installer assumes that you want a dual booting configuration alongside Windows. Therefore it adds itself (actually, the bootloader it uses, GRUB2) to your computer's UEFI configuration. This causes two problems. For starters, the external HDD is not portable as you cannot boot with it on another computer.

Secondly, if you remove this external HDD your Windows won't boot. Bummer. We have to fix that.

  • Shut down your computer.
  • Disconnect the Ubuntu HDD
  • Boot from the Windows system repair disc USB drive (or a Windows installation or rescue CD-ROM / DVD-ROM).
  • Select Repair your computer.
  • Select the operating system and click Next.
  • Choose Command Prompt.
  • In the command prompt run
  • Verify that the EFI partition is using the FAT32 file system. It will have a volume ID, let's say 99. Now we need to assign a drive letter to it. Back in the command prompt type:
  • Now we need to fix the boot record. Again in the command prompt type:
  • Finally, we need to re-create the BCD store which tells the Microsoft boot loader where to find Windows so it can boot it. From our trusted command prompt:
  • If this didn't work try

At this point exit the command prompt and shut down your computer.

Create an ESP on the Ubuntu HDD

A hard drive is not bootable with UEFI unless it has an ESP (EFI System Partition). An ESP is simply a FAT32 partition with a special flag that tells the EFI BIOS to look inside it for boot information. We have to create one on your hard drive.

  • Plug in your external HDD and the Ubuntu Linux bootable USB stick.
  • Boot with the Ubuntu Linux bootable USB stick using the option to try Ubuntu before installing.
  • Open a Terminal (CTRL-ALT-T)
  • Run sudo fdisk -l to get a list of partitions.
  • Identify from them the drive that has the Linux partitions, in my case /dev/sdb. I'll call it /dev/sdX from now on.
  • Also identify the partition that contains the root filesystem. I will call it /dev/sdXY from now on.
  • Launch GParted from the Terminal: Why not just click on GParted on your desktop? Well, I kept receiving errors about the Ubuntu Linux bootable USB stick because it was already in use. Of course it is, I am using it to run the computer off it, duh!
  • Resize the first partition on disk to have another 200 Mb of free space after it.
  • Create a new partition on the free space, changing the file system to fat32.
  • Apply operations. You need to do that now for the next step to be possible.
  • Right click the new partition.
  • Click on Manage Flags.
  • Set the boot and esp flags. This is what makes the partition 'special' to the EFI BIOS.
  • One more thing! Note down the the partition that contains the ESP filesystem. I will call it /dev/sdXZ from now on.

Make sure the Ubuntu installation on the external HDD can see the ESP

The new ESP on the external drive must be visible by the Ubuntu installation in the HDD. Otherwise GRUB2, the Linux bootloader, won't be able to update itself, making your system unbootable after the next kernel update at the latest.

  • Launch GParted from the Terminal, as we saw above:
  • Double click the partition with your Linux root (/) filesystem on the external HDD
  • Note down the UUID, e.g. 01234567-89ab-cdef-0123-4567890abcde
  • Double click the new FAT32 partition and note down the UUID, e.g. 0123-ABCD
  • Close GParted
  • Open a Terminal

The process is different depending on the format of your root partition on the external hard disk.

If you DID NOT use btrfs (e.g. you used ext4)

Ubuntu

If you DID use btrfs

If you DID use btrfs, you made your life complicated. We need to mount the btrfs subvolume containing the root partition instead of the entire partition. Otherwise you'll never be able to install GRUB and you'll probably lose an entire day, like me.

This will give you a line with a numeric ID. Let's say 123. Note it down.

The rest of the instructions are common, no matter if used btrfs, ext4 or something else

  • There is a line with /boot/efi already in this file. Comment it by placing a # in front of it.
  • Add the following line:

Install GRUB2 on the external drive's EFI System Partition

Install Ubuntu 17.10 Usb

Right now our external drive has an empty ESP. We need to put a bootloader in it to make it actually, well, bootable.

First caveat: all the instructions you find on-line assume you are using a dual boot system with Windows or macOS. When you have an external drive it is critical that you use the --removable option in the last step. This installs the EFI bootloader under the special 'fallback path' EFIBootbootx64.efi in the ESP. Normally this not supposed to be used for permanently installed Operating Systems. It's the mechanism used by EFI BIOS to boot arbitrary external media. Technically, that's exactly what our external hard drive is: arbitrary external media!

Second caveat: installing the bootloader is only possible from inside the Linux installation we want to boot. However, we need the bootloader to boot that installation, leading to a Catch-22 issue. The solution is to run the bootloader installation through a chroot jail. The actual caveat that got me stumped for a day comes from the fact that I am using btrfs (because it's so much better for SSDs!). btrfs has subvolumes. If you mount the entire partition instead of a subvolume the grub-install script can't figure out the mapping between paths and devices, therefore failing to install itself on the ESP, returning the cryptic error

The error is misleading! /dev is mounted if you follow my instructions below. The actual problem, as I understand it, is that there is a discrepancy between the mounted device and the path to the chroot root. That's why I had you mount only the subvolume containing the root filesystem in the steps above. If you were not paying attention, you are not following the instructions step-by-step, you rebooted before this step or just came here directly looking for a solution to your problem about GRUB not installing look above for instructions on mounting the correct btrfs subvolume.

Download

Install Ubuntu 17.10 Usb

  • We need to prepare the chroot environment. The ESP must be mounted in the correct place and we have to bind system mount point for some special trees (most notably /dev). Moreover, we will copy the resolv.conf file to let the chroot environment have network access should it need it.
  • Finally we enter the chroot environment and install Grub in a way suitable for a removable device (see the first caveat above).

Now your external HDD is bootable. Reboot your computer, select it from the boot media selection of your UEFI BIOS and you're done!

Upgrade Ubuntu 17.10 To 18.04

Select an image

Ubuntu is distributed on two types of images described below.

Desktop image

Install Ubuntu 17.10 Usb Pc Camera

The desktop image allows you to try Ubuntu without changing your computer at all, and at your option to install it permanently later. This type of image is what most people will want to use. You will need at least 384MiB of RAM to install from this image.

There is one image available:

64-bit PC (AMD64) desktop image
Choose this to take full advantage of computers based on the AMD64 or EM64T architecture (e.g., Athlon64, Opteron, EM64T Xeon, Core 2). If you have a non-64-bit processor made by AMD, or if you need full support for 32-bit code, use the i386 images instead. Choose this if you are at all unsure.

Server install image

The server install image allows you to install Ubuntu permanently on a computer for use as a server. It will not install a graphical user interface.

There are two images available, each for a different type of computer:

64-bit PC (AMD64) server install image
Choose this to take full advantage of computers based on the AMD64 or EM64T architecture (e.g., Athlon64, Opteron, EM64T Xeon, Core 2). If you have a non-64-bit processor made by AMD, or if you need full support for 32-bit code, use the i386 images instead. Choose this if you are at all unsure.
32-bit PC (i386) server install image
For almost all PCs. This includes most machines with Intel/AMD/etc type processors and almost all computers that run Microsoft Windows, as well as newer Apple Macintosh systems based on Intel processors.

A full list of available files, including BitTorrent files, can be found below.

If you need help burning these images to disk, see the Image Burning Guide.

NameLast modifiedSize
Parent Directory -
FOOTER.html2018-01-12 05:38 27
HEADER.html2018-01-12 05:38 2.5K
MD5SUMS2018-08-02 02:32 867
MD5SUMS-metalink2018-01-12 05:38 213
MD5SUMS-metalink.gpg2018-01-12 05:38 916
MD5SUMS.gpg2018-08-02 02:32 916
SHA1SUMS2018-08-02 02:32 971
SHA1SUMS.gpg2018-08-02 02:32 916
SHA256SUMS2018-08-02 02:32 1.3K
SHA256SUMS.gpg2018-08-02 02:32 916
source/2018-01-12 06:09 -
ubuntu-17.10-desktop-amd64.iso2018-01-05 20:55 1.4G
ubuntu-17.10-desktop-amd64.iso.torrent2017-10-19 08:08 56K
ubuntu-17.10-desktop-amd64.iso.zsync2017-10-19 08:08 2.8M
ubuntu-17.10-desktop-amd64.list2018-01-05 20:55 7.5K
ubuntu-17.10-desktop-amd64.manifest2018-01-05 20:51 56K
ubuntu-17.10-desktop-amd64.metalink2017-10-19 08:15 44K
ubuntu-17.10-live-server-amd64.iso2017-10-18 09:03 566M
ubuntu-17.10-live-server-amd64.iso.torrent2017-10-19 08:09 22K
ubuntu-17.10-live-server-amd64.iso.zsync2017-10-19 08:09 1.1M
ubuntu-17.10-live-server-amd64.list2017-10-18 09:03 7.6K
ubuntu-17.10-live-server-amd64.metalink2018-01-12 06:09 1.0K
ubuntu-17.10-preinstalled-server-armhf+raspi2.img.xz2017-10-17 21:18 360M
ubuntu-17.10-preinstalled-server-armhf+raspi2.img.xz.zsync2017-10-19 08:12 631K
ubuntu-17.10-preinstalled-server-armhf+raspi2.manifest2017-10-17 21:18 14K
ubuntu-17.10-server-amd64.img2018-01-08 05:10 754M
ubuntu-17.10-server-amd64.iso2018-01-08 05:10 754M
ubuntu-17.10-server-amd64.iso.torrent2017-10-19 08:14 29K
ubuntu-17.10-server-amd64.iso.zsync2017-10-19 08:14 1.5M
ubuntu-17.10-server-amd64.jigdo2018-01-12 05:00 144K
ubuntu-17.10-server-amd64.list2018-01-08 05:10 105K
ubuntu-17.10-server-amd64.metalink2017-10-19 08:15 44K
ubuntu-17.10-server-amd64.template2018-01-08 05:10 131M
ubuntu-17.10-server-arm64.iso2017-10-17 20:48 672M
ubuntu-17.10-server-arm64.iso.torrent2017-10-19 08:13 26K
ubuntu-17.10-server-arm64.iso.zsync2017-10-19 08:13 1.3M
ubuntu-17.10-server-arm64.jigdo2017-10-19 08:13 168K
ubuntu-17.10-server-arm64.list2017-10-17 20:48 98K
ubuntu-17.10-server-arm64.metalink2018-01-12 06:09 1.0K
ubuntu-17.10-server-arm64.template2017-10-17 20:48 81M
ubuntu-17.10-server-i386.img2018-01-08 05:11 751M
ubuntu-17.10-server-i386.iso2018-01-08 05:11 751M
ubuntu-17.10-server-i386.iso.torrent2017-10-19 08:14 29K
ubuntu-17.10-server-i386.iso.zsync2017-10-19 08:14 1.5M
ubuntu-17.10-server-i386.jigdo2018-01-12 05:01 142K
ubuntu-17.10-server-i386.list2018-01-08 05:11 103K
ubuntu-17.10-server-i386.metalink2017-10-19 08:15 44K
ubuntu-17.10-server-i386.template2018-01-08 05:11 89M
ubuntu-17.10-server-ppc64el.iso2017-10-17 20:51 773M
ubuntu-17.10-server-ppc64el.iso.torrent2017-10-19 08:13 30K
ubuntu-17.10-server-ppc64el.iso.zsync2017-10-19 08:13 1.5M
ubuntu-17.10-server-ppc64el.jigdo2017-10-19 08:13 173K
ubuntu-17.10-server-ppc64el.list2017-10-17 20:51 100K
ubuntu-17.10-server-ppc64el.metalink2018-01-12 06:09 1.0K
ubuntu-17.10-server-ppc64el.template2017-10-17 20:51 91M
ubuntu-17.10-server-s390x.iso2017-10-17 20:52 597M
ubuntu-17.10-server-s390x.iso.torrent2017-10-19 08:13 24K
ubuntu-17.10-server-s390x.iso.zsync2017-10-19 08:13 1.2M
ubuntu-17.10-server-s390x.jigdo2017-10-19 08:13 137K
ubuntu-17.10-server-s390x.list2017-10-17 20:52 96K
ubuntu-17.10-server-s390x.metalink2018-01-12 06:09 1.0K
ubuntu-17.10-server-s390x.template2017-10-17 20:52 115M
ubuntu-17.10.1-desktop-amd64.iso2018-01-05 20:55 1.4G
ubuntu-17.10.1-desktop-amd64.iso.torrent2018-01-12 05:38 56K
ubuntu-17.10.1-desktop-amd64.iso.zsync2018-01-12 05:37 2.8M
ubuntu-17.10.1-desktop-amd64.list2018-01-05 20:55 7.5K
ubuntu-17.10.1-desktop-amd64.manifest2018-01-05 20:51 56K
ubuntu-17.10.1-desktop-amd64.metalink2018-01-12 05:38 50K
ubuntu-17.10.1-server-amd64.iso2018-01-08 05:10 754M
ubuntu-17.10.1-server-amd64.iso.torrent2018-01-12 05:36 30K
ubuntu-17.10.1-server-amd64.iso.zsync2018-01-12 05:36 1.5M
ubuntu-17.10.1-server-amd64.jigdo2018-01-12 05:36 144K
ubuntu-17.10.1-server-amd64.list2018-01-08 05:10 105K
ubuntu-17.10.1-server-amd64.metalink2018-01-12 05:38 50K
ubuntu-17.10.1-server-amd64.template2018-01-08 05:10 131M
ubuntu-17.10.1-server-i386.iso2018-01-08 05:11 751M
ubuntu-17.10.1-server-i386.iso.torrent2018-01-12 05:36 30K
ubuntu-17.10.1-server-i386.iso.zsync2018-01-12 05:36 1.5M
ubuntu-17.10.1-server-i386.jigdo2018-01-12 05:36 142K
ubuntu-17.10.1-server-i386.list2018-01-08 05:11 103K
ubuntu-17.10.1-server-i386.metalink2018-01-12 05:38 49K
ubuntu-17.10.1-server-i386.template2018-01-08 05:11 89M

Ubuntu 17.10 Download Iso

Apache/2.4.29 (Ubuntu) Server at old-releases.ubuntu.com Port 80