Linux ubuntu from flash

Linux ubuntu from flash

With a bootable Ubuntu USB stick, you can:

  • Install or upgrade Ubuntu
  • Test out the Ubuntu desktop experience without touching your PC configuration
  • Boot into Ubuntu on a borrowed machine or from an internet cafe
  • Use tools installed by default on the USB stick to repair or fix a broken configuration

Creating a bootable Ubuntu USB stick is very simple, especially from Ubuntu itself, and we’re going to cover the process in the next few steps.

Alternatively, we also have tutorials to help you create a bootable USB stick from both Microsoft Windows and Apple macOS.

2. Requirements

  • A 4GB or larger USB stick/flash drive
  • Ubuntu Desktop 14.04 or later installed
  • An Ubuntu ISO file. See Get Ubuntu for download links

3. Launch Startup Disk Creator

We’re going to use an application called ‘Startup Disk Creator’ to write the ISO image to your USB stick. This is installed by default on Ubuntu, and can be launched as follows:

  1. Insert your USB stick (select ‘Do nothing’ if prompted by Ubuntu)
  2. On Ubuntu 18.04 and later, use the bottom left icon to open ‘Show Applications’
  3. In older versions of Ubuntu, use the top left icon to open the dash
  4. Use the search field to look for Startup Disk Creator
  5. Select Startup Disk Creator from the results to launch the application

4. ISO and USB selection

When launched, Startup Disk Creator will look for the ISO files in your Downloads folder, as well as any attached USB storage it can write to.

It’s likely that both your Ubuntu ISO and the correct USB device will have been detected and set as ‘Source disc image’ and ‘Disk to use’ in the application window. If not, use the ‘Other’ button to locate your ISO file and select the exact USB device you want to use from the list of devices.

Click Make Startup Disk to start the process.

5. Confirm USB device

Before making any permanent changes, you will be asked to confirm the USB device you’ve chosen is correct. This is important because any data currently stored on this device will be destroyed.

After confirming, the write process will start and a progress bar appears.

6. Installation complete

That’s it! You now have Ubuntu on a USB stick, bootable and ready to go.

If you want to install Ubuntu, take a look at our install Ubuntu desktop tutorial.

Источник

Ubuntu Documentation

Outline

The general procedure to install Ubuntu (or Ubuntu flavour, Kubuntu, Lubuntu, Xubuntu, . ) from a USB flash drive is:

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 the download was good.

  • Put Ubuntu onto your USB flash drive alias ‘stick’ alias ‘pendrive’ alias ‘thumb’. Tools for this purpose are described in this help page.
  • Configure your computer to boot from USB flash drive and boot from it.

    Try Ubuntu (Kubuntu, Lubuntu, Xubuntu, . ) before installing it.

  • Install Ubuntu to your internal drive (hard disk drive or solid state drive or external drive).
  • See also: Installation/FromUSBStickQuick for beginners starting from Windows.

    Introduction

    Ubuntu can be installed from a USB flash drive. This may be necessary for most new portable computers without DVD drives and is handy for others because a USB flash drive is so convenient. Also, you can configure Ubuntu on the USB flash drive to save changes you make, unlike a read-only CD/DVD disk.

    Booting from a USB flash drive created with usb-creator alias Startup Disk Creator and mkusb will behave just as if you had booted from the install CD. It will show the language selection and then the install menu, from which you can install Ubuntu onto the computer’s hard drive or launch the LiveCD environment. Other utilities, e.g. UNetbootin, may create slightly different boot drives or if on UEFI might not work at all with Debian iso files due to a bug

    Читайте также:  Зашифрованные файлы после переустановки windows

    Note: This article uses the term «USB flash drive» alongside USB stick, USB drive, USB device, USB pendrive and thumb drive.

    Prerequisites

    To create a USB installation device, you will need:

    a 4 GB USB flash device/drive/stick. If the iso file is smaller than 2 GB, it is possible to use a 2 GB USB device, at least with some of the methods. Files on this USB device will be erased, so backup the files you want to keep before making the device bootable. Some of the tools require that this USB device is properly formatted and mounted while other tools will overwrite whatever is on the target device. Please follow the instructions for each tool.

    an Ubuntu flavour ISO file downloaded from an official web page, ubuntu.com/download or http://releases.ubuntu.com, stored in your running computer (for example in the directory Downloads in the internal drive, not in the USB flash drive that you want to make into a USB boot drive).

    Check with md5sum (or another checksum tool) that the download was good. In Linux there is the tool ‘md5sum’. In Windows you can do it with Rufus: click on the circle with a tick mark (more about Rufus here.)

    Dummy headlines

    After a major remake of this help page the following headlines are kept here because they may be linked to from other web sites. Several other headlines further down in the page are also kept for this reason.

    Notes about speed

    Notes about size

    Notes about bootability

    The flash hardware

    There is a detailed description at the sub-page /pre

    Creating a bootable Ubuntu USB flash drive from Windows

    There are various methods available for Windows to create a bootable Ubuntu USB flash drive.

    NEVER try to use one of your hard disk drives or partitions in this process unless you really know what you are doing, as data will get erased.

    Rufus

    Rufus is the tool in Windows that is recommended officially by Ubuntu. A tutorial is available from here.

    balenaEtcher

    Pendrivelinux’s Universal USB Installer

    UNetbootin

    Win32 Disk Imager

    There is a detailed description at /fromWindows including Rufus, balena Etcher, Universal USB Installer, Unetbootin and Win32 Disk Imager.

    Creating a bootable Ubuntu USB flash drive from Ubuntu

    Install and run Startup Disk Creator alias usb-creator

    The Ubuntu Startup Disk Creator is dedicated to creating USB boot drives for Ubuntu and Ubuntu family flavours (Kubuntu, Lubuntu . Xubuntu).

  • Use another tool (e.g. ‘UNetbootin’ or ‘mkusb’), if you want to create a USB boot drive with another Linux distro (alias Linux operating system).
  • You can find usb-creator-gtk by typing «Startup Disk Creator» (Ubuntu Desktop) or usb-creator-kde in K-Menu—>Applications—>System—>Startup Disk Creator (Kubuntu). If it is not there, then you can install it using the Ubuntu Software Center.

    • Insert and mount the USB drive. Inserting the USB drive should auto-mount it.
    • Start the Startup Disk Creator
    • In the top pane of the Startup Disk Creator, pick the .iso file that you downloaded.
    • If the .iso file isn’t listed, click «Other» to locate and select the .iso file that you downloaded.
    • In the bottom pane of the Startup Disk Creator, pick the target device, the USB flash drive. If more than one choice, please check carefully, until you are sure that you will be writing to the correct device.
    • After checking that you are pointing to the correct target device, the USB flash drive, you can start the action.

    You must enter a password because this is a risky operation. Use the password of the current user ID (the same as for login and running tasks with 'sudo'. Password is not required when installing from a ‘live’ system (booted from a DVD disk or another USB flash drive).

    The Startup Disk Creator clones the iso file, which means that you need neither erase nor format the target drive. It will be completely overwritten anyway by the cloning process. The Startup Disk Creator looks like this in Ubuntu 18.04 LTS:

    Notes

    NEVER try to use one of your hard disk drives or SSDs or partitions in this process unless you really know what you are doing, as data will get erased.

    There are bugs that affect the Ubuntu Startup Disk Creator, when you run it in old Ubuntu versions in BIOS mode and try to create USB boot drives with other versions. In the Ubuntu Startup Disk Creator version 0.3.2 in Ubuntu 16.04 LTS, these bugs are no longer a problem, so you can install any version of the Ubuntu flavours from 16.04 LTS and newer versions.

    UNetbootin

    Download UNetbootin

  • UNetbootin works in and with most Linux distros.
  • It is an extracting tool (not a cloning tool).
  • It can make a persistence file up to 4GB in size to save data and defaults.
  • mkusb — dd image of iso file to USB device safely

    If you want to clone from a general image file to a drive, you can use mkusb. It lets you clone to any drive that is not busy, also an internal drive, and there are very obvious warnings to prevent mistakes.

  • mkusb can also
    • run in Debian and many linux distros that are similar to Ubuntu and Debian,
    • clone from iso files of most Linux distros to create USB boot drives,
    • create persistent live drives of the Ubuntu family and Debian, using all available drive space for persistence and/or data storage,
    • restore a USB boot drive to a standard storage device.
  • There is a detailed description at /fromUbuntu including the Startup Disk Creator, UNetbootin and mkusb.

    Creating a bootable Ubuntu USB flash drive from Mac OSX

    There is a good wiki page about booting with UEFI, and a good tutorial thread, UEFI Installing — Tips.

    Test if running in UEFI mode

    You may want to test if your Ubuntu flavour is running in [U]EFI mode. An installed system and a live system too is using the directory /sys/firmware/efi, so you can run the following command line,

    The following command line is more robust and also easier to understand, so you may prefer it (if you copy & paste and are not bothered by typing a long command line),

    Источник

    3 Ways To Boot Ubuntu Linux From a USB Flash Drive

    In this article we’ll see 3 way of installing Ubuntu on a USB drive.
    We’ll see how to create a live USB Ubuntu disk, just like your live CD. Only difference is that we’ll be booting and installing Ubuntu using this live USB diskette, and as last option how to do a full installation of ubuntu on your USB drive.

    Option 1: Boot Ubuntu as a Live CD from a USB Flash Drive

    Use this option to install Ubuntu as a Live Install, which allows you to boot from the USB flash drive in Ubuntu, experience the Linux environment but will not retain any changes or settings after you shut down. This is a great way to get a feel for the OS, test some of it’s capabilities as well as typical hardware compatibility.

    Programs you may need to download:

    Ubuntu 10.04 (soon 10.10) Live CD ISO available at ubuntu.com

    Universal USB Installer available at pendrivelinux.com

    What you will need:

    Running Windows XP/Vista/7

    Fat32 Formatted USB 2.0 Flash Drive, at least 1GB

    PC with a Bios that can boot from USB

    Now with all of the necessary components in place, we can begin to setup our Ubuntu Live USB Drive.

    1. Run the Universal USB Installer by Pendrivelinux.com that you downloaded earlier.

    2. Choose Ubuntu 9.10/10.04.1 Desktop i386

    3. Select the Ubuntu Live CD that you downloaded earlier

    4. Choose your Flash Drive

    5. In this instance, we are going leave the persistence option unchecked.

    This can take anywhere from 15 minutes to 30 minutes depending on the speed of your system. At one point the progress bar will freeze until it is done, and this is the lengthiest wait of the process.

    Once complete, you can reboot your computer with the USB flash drive in the USB port, press F12 for the Boot Menu and choose the removable media to boot from and you are in.

    As this is a Live USB, any changes you make to the Ubuntu environment will not persist through a reboot. This is because running in this mode, Ubuntu uses available RAM in place of Swap and Hard Disk space. This option also contains the install files needed to install Ubuntu directly to your desktop if you should so desire.

    Option 2: Boot Ubuntu as a Live CD with Persistence from a USB Flash Drive

    This option will install Ubuntu Linux onto your flash drive with an area for persistent storage. You will be able to restart the computer, boot back into the Linux environment and all settings or changes made previously will persist.

    NOTE: This option is particularly hard on Flash Memory, as there can be quite a bit of reading and writing to the Flash Memory.

    What you will need:

    Running Windows XP/Vista/7

    Fat32 Formatted USB 2.0 Flash Drive, at least 2GB

    PC with a Bios that can boot from USB

    Now with all of the necessary components in place, we can begin to setup our Ubuntu Live USB Drive.

    1. Run the Universal USB Installer by Pendrivelinux.com that you downloaded earlier.

    2. Choose Ubuntu 9.10/10.04.1 Desktop i386

    3. Select the Ubuntu Live CD that you downloaded earlier

    4. Choose your Flash Drive

    5. Select the Persistence Option of 1GB Casper-RW

    This can take anywhere from 15 minutes to 30 minutes depending on the speed of your system. At one point the progress bar will freeze until it is done, and this is the lengthiest wait of the process.

    Once complete, you can reboot your computer with the USB flash drive in the USB port, press F12 for the Boot Menu and choose the removable media to boot from and you are in.

    As this is a Live USB with Persistence, any changes you make to the Ubuntu environment will keep through a reboot. This option also contains the install files needed to install Ubuntu directly to your desktop if you should so desire.

    Option 3: Install Ubuntu directly to a USB flash Drive

    This option works through installing Ubuntu to the flash drive as a complete installation. It does not retain the installation files to install on another system. This will allow you to use Ubuntu exactly as if it were installed alone on the hard disk. You can boot from it with any computer that can boot from a USB flash drive.

    Note: This method requires that you disable your hard drive in BIOS to prevent overwriting your current operating system and force the install onto the USB drive.

    What you will need:

    USB 2.0 Flash Drive, at least 4GB

    PC with a BIOS that can boot from USB

    A Computer with the ability to Burn CD/DVD

    Now with all of the necessary components in place, we can begin the process.

    1. First, you will need to burn your Ubuntu ISO to CD using a program like ImgBurn available at ImgBurn.com

    2. Boot your computer and press F2 to enter the system BIOS. Within here you will want to disable your Hard Drive. If this is not an option in your BIOS, I would suggest shutting down your computer and unplugging the power and data cables from your hard drive before proceeding. NOTE: If you choose not to disable your hard drive, you run the risk of installing Ubuntu on top of your current OS and can lose valuable information.

    3. After you have disabled your hard drive, place the Ubuntu Live CD into your computer and boot from this.

    4. At the initial boot screen, choose to try Ubuntu, not install.

    5. Once Ubuntu loads, plug in the desired flash drive into the computer.

    6. Now, double click on the Install Ubuntu icon that appears on the desktop.

    7. The first 3 screens are language, time zone, and keyboard layout.

    8. Now Ubuntu will notify you that there is a disk mounted, and asks to unmount it. This is your flash drive. Give it permission to unmount.

    9. This is the prepare disk space screen. I chose to leave mine at default and let the installer handle the partitions needed by Linux.

    10. Now you will see the login and user information screen.

    11. Now you are ready to install, click install.

    12. At one point during the installation, you may notice a skip button appear on the bottom left. This is to skip the auto update, and finally the language packs. I chose to skip language packs update.

    13. This may take a while, mine took atbout 35 minutes to complete. When it is done, eject the disk and shut down the computer. Plug your hard drive back in if necessary, or boot your computer into bios and re-enable it. Reboot your computer and press F12 to enter the boot menu, choose the flash drive and boot into Ubuntu.

    About the Author

    Joshua Bulman is a full time web designer and IT support technician for a company that provides custom USB drives via the web marketplace. He enjoys reading fiction, writing just about anything, and discovering new technologies.

    Источник

    Читайте также:  Как вернуть процессы windows
    Оцените статью