How to install linux on usb from linux

Create the bootable media¶

The easiest way to install Linux Mint is with a USB stick.

If you cannot boot from USB, you can use a blank DVD.

How to make a bootable USB stick¶

In Linux Mint¶

Right-click the ISO file and select Make Bootable USB Stick , or launch Menu ‣ Accessories ‣ USB Image Writer .

Select your USB device and click Write .

In Windows, Mac OS, or other Linux distributions¶

Download Etcher, install it and run it.

Click Select image and select your ISO file.

Click Select drive and select your USB stick.

How to make a bootable DVD¶

Optical discs are slow and burning to disc is prone to errors.

To prevent issues, burn at the lowest possible speed.

Burn the content of the ISO onto the DVD, not the ISO file itself. When finished, your DVD should contain directories such as boot and casper , it shouldn’t be an empty DVD containing an .iso file.

In Linux¶

Install and use xfburn .

In Windows¶

Right-click the ISO file and select Burn disk image .

To make sure the ISO was burned without any errors, select Verify disc after burning .

In Mac OS¶

Right-click the ISO file and select Burn Disk Image to Disc .

© Copyright 2017, Linux Mint Revision 11740971 .

Источник

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

    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:

    Читайте также:  Windows установочный файл для флешки

    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),

    Источник

    How to Install Linux OS on USB Drive and Run it On Any PC

    Ever thought of using any computer which is not yours, with all your personal stuff and configuration? It is possible with any Linux distribution. Yes! You can use your own, customized Linux OS on any machine with just a USB drive.

    This tutorial is all about installing Latest Linux OS on your pen-drive ( fully reconfigurable personalized OS, NOT just a Live USB ), customize it, and use it on any PC you have access to. Here I am using Lubuntu 18.04 Bionic beaver for this tutorial (but, you can use any Linux distribution). So let’s gets started.

    Requirements:

    1. One Pendrive 4GB or More (Let’s call it as Main USB drive/Pendrive).
    2. One more Pen drive or DVD disk to use as bootable Linux installation media.
    3. Linux OS ISO file, for example Lubuntu 18.04.
    4. One PC (Warning: Disconnect internal hard drives to prevent boot record alteration).

    Important: While this procedure will not cause loss of data, some users have experienced changes to their internal drive’s bootup behavior depending on Linux distributions selected. To prevent any possibility of this occurrence, you may wish to disconnect your hard drive before continuing with the USB install portion of the tutorial.”

    TIP: Use 32 bit Linux OS to make it compatible with any available PC.

    That’s it! Go, and collect all of these. It’s time to do something new.

    Step 1: Create Bootable Linux Installation Media

    Use your Linux ISO image file to create a bootable USB installation media. You can use any software like Unetbootin, Gnome Disk Utility, Yumi Multi Boot, xboot, Live USB Creator, etc. to create bootable USB with the help of ISO image file.

    Alternatively, you can use DVD disk by writing that ISO image to it (but that is the old school method).

    Step 2: Create Partitions On Main USB Drive

    You have to make two partitions on your Main USB drive using Gparted or Gnome Disk Utility, etc.

    • The root partition of format ext4 of size according to your use.
    • Optionally you can use the rest of the space as a FAT partition for using it as a normal USB drive.

    I am having 16GB USB drive and I have created one root partition of 5GB and using rest 11GB as normal FAT partition. So my 16 GB USB drive is converted to 11GB drive for normal use on any PC. Sounds good.

    This step you can do while installing Linux also, but it will be very complex while installing Operating Systems like Arch Linux.

    Main USB Drive Partitions

    Once you have created required partitions on the Main USB drive. Now take a deep breath because it’s time to go for Linux installation section.

    Step 3: Install Linux on USB Drive

    1. First, boot Linux OS (Lubuntu 18.04) from your bootable installation media and launch installation application from a live session. Live session of Lubuntu 18.04 will look like this.

    Lubuntu Live Boot

    2. Installer welcome screen will appear, select Language there and hit Continue.

    Select Lubuntu Installation Language

    3. Select Keyboard Layout and continue…

    Select Lubuntu Keyboard Layout

    4. Select Wifi internet if you want to update Lubuntu while installation. I will skip it.

    Select Wifi to Update Lubuntu

    5. Select Installation Type and Third-party installation as per your choice and go to next..

    Select Lubuntu Software Updates

    6. Here select Something Else Option (It is Mandatory) and go to next…

    Select Lubuntu Installation Type

    7. This is an Important step, here you need to find out where your Main USB drive is mounted.

    Find Main USB Drive

    In my case /dev/sda are an internal hard disk of the PC and I am using /dev/sdb is USB Lubuntu Installation media from where this live session is booted.

    And /dev/sdc is my Main USB drive where I want to install my Linux system and where I have made two partitions in step number 2. If you have skipped step 2, you can also make partitions in this window.

    First, change the mount point of the first partition on this Main USB drive to ROOT (i.e. “ / ” ). And as shown in the second red square select bootloader installation device as the Main USB drive.

    In my case it is /dev/sdc . This is the most important step in this tutorial. If it is not done correctly your system will boot only on the current PC you are using, which is exactly opposite of your motivation to follow this tutorial.

    Once it is completed, double-check it and hit continue. You will get a small window showing devices and drive which will be affected.

    8. Make sure that the device and drives shown on this window are of your Main USB drive, which is in my case /dev/sdc . Hit continue

    Write Partition Changes to Disk

    9. Now select your Region and hit Continue

    Select Lubuntu Region

    10. Add username, password, and hostname, etc…

    Create a Lubuntu User

    11. Let the installation finish.

    Lubuntu Installation

    12. After completing installation hit restart and remove your installation media and press Enter.

    Lubuntu Installation Completes

    13. Congratulations, you have successfully installed your own Linux OS on your pen drive to use it on any PC. Now you can connect a USB drive to any PC and start your system on that PC by simply selecting boot from USB option while booting.

    Step 4: Customize the Lubuntu System

    Now it’s time for fun. Just boot your system on any PC and start customizing. You can install any software you want. You can change Themes, Icon themes, install docker.

    You can add and store your online accounts on it. Install/modify/customize whatever you want. All the changes will be permanent. They will not change or reset after rebooting or booting on other PCs.

    The following figure shows my customized Lubuntu 18.04.

    Lubuntu Running on USB Drive

    The main advantage of this method is you can use your personal stuff, your online accounts securely on any PC. You can even do secure online transactions as well on any available PC.

    I hope it will be helpful for you, if you have questions regarding this article, please feel free to ask in the comment section below.

    If You Appreciate What We Do Here On TecMint, You Should Consider:

    TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

    If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

    We are thankful for your never ending support.

    Источник

    Читайте также:  How to set timezone in linux
    Оцените статью