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

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

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

65 Responses

  1. Enrico Pallazzo says:

    It does not work for me. I am trying to make a Debian web server without GUI. I did everything as mentioned. My Disk is “sdh“, i made a partition sdh1 flagged "/", left the rest of the space for later partitioning, wrote bootloader into sdh, finished installing.

    After reboot it goes to GRUB and wants to start Debian and then it says: “Gave up waiting for file system

    Alert1 /dev/sdh1 does not exist” and then i am left in initramfs prompt.

    I think the problem is, that it is specifically looking for sdh1 instead of sdX1. Any idea?

  2. Mike Martone says:

    I am trying to create a boot-able USB Drive using a 9Gig Centos 7 Image. I tried a couple of tools but each one requires the USB to be formatted using FAT32 and FAT32 can only handle 4Gig files.

    Is there a way for me to create a bootable USB drive with a 9 Gig Centos 7 image?

    Thanks

  3. Anthony Ciantar says:

    does this not assume I am already using linux? I am a windows user.

  4. Steve R says:

    I would truly like to be able to have a Linux system on a stick but I have run into install failed 3 times. Twice the install failed because “GRUB Installation Failed. The ‘grub-efi-……….‘ package failed to install into /target/.

    Without the GRUB boot loader, the installed system will not boot”. I don’t have the exact grub-efi wording but the system I’m building this on is an ASUS U56E-RBL7, Windows 10 1803 with UEFI, Secure boot, fast start, 8GB RAM. I am wanting to use Linux Mint 19.1 Cinnamon.

    I have set up (partitioned) a 32 GB USB using GPARTED with 15GB Ext4 and 16GB FAT32. I thought I had gotten over the hurdle of Step 7 and setting the mount point. I reset both partitions same as before. The resulting partition table appeared ALMOST EXACTLY as in this tutorial image except that the FAT32 partition box in the format column was not checked.

    I tried repeatedly to change the partition but the box to format the partition would not change to be checked. The partition had been formatted previously so I left it as is. The installation began then shortly after tells me that I am setting up a UEFI installation and that it might be a problem for running on a BIOS system computer.

    My options were to proceed or to go back. Not sure what I would go back to anyway so I have selected the UEFI option. The installation proceeds all the way to the end, requests my signin info and then gives the error message. The USB will not boot and the computer opens directly into Windows.

    I’ve read many many websites about grub failing, etc. though these have all been on HDD installations. I have read about selecting GPT as the FAT32 partition type and I’ve seen options to set the Ext4 as a EFI partition type and one suggestion was to remove the live USB before proceeding with the installation.

    I’m stumped! I certainly don’t want to do anything to mess up the UEFI setting on the computer though I have entered system settings and selected UEFI as the first boot option and it works fine for the distro USB. I’d very much appreciate some direction. I feel certain the key is in step 7 but I don’t know which combination of options will magically fix the problem. Looking forward to hearing from you all and appreciate anything you might suggest.

    • Amit Nandkumar Hambar says:

      Once you have installed Linux on USB (any Ubuntu based Linux). Without restarting your PC (In live OS only), install one app called boot-repair with following Commands

      $ sudo add-apt-repository ppa:yannubuntu/boot-repair
      $ sudo apt-get update
      $ sudo apt-get install -y boot-repair && boot-repair
      

      Last command will install and open boot repair.

      Go to advanced option and select your main usb disk drive (Important), apply and click on recommended repair.

      Follow all the instructions properly. and after completion restart your system to usb drive.
      It will fix the problem.

  5. Carlos says:

    Hi,

    I tried this method, but it failed. It seems that the reason is because my machine uses UEFI.
    I explained the problem in details here:

    https://forums.linuxmint.com/viewtopic.php?f=46&t=281270

    Can you please help me fix the boot? I would like to remove that ubuntu boot option from my internal disk (which wasn’t meant to be there, but in my USB drive).

    • tazmo8448 says:

      You may be able to ‘disable’ Secure boot in BIOS this is the UEFI microcode in boot

    • Amit Nandkumar Hambar says:

      You can try boot-repair app.
      Install it on Live OS without restarting after installation on main usb.

      $ sudo add-apt-repository ppa:yannubuntu/boot-repair
      $ sudo apt-get update
      $ sudo apt-get install -y boot-repair && boot-repair
      

      go to advanced option and select main usb drive and follow all the instructions by clicking Recommended repair.

  6. Rick Wade says:

    I have an old Asus netbook that had Windows XP. When that was no longer supported, I put Linux on it. I really don’t like Linux, so I turned it into a quasi-Chromebook (using Cloud Ready). However, I think it might be nice to have Linux available to have apps available that aren’t cloud-dependent.

    Do you see any problems with running it this way (after I create the USB using my Windows computer)? Are apps added when running off the flash drive and data downloaded/created saved on the flash drive?

  7. SaiRam says:

    I think only Live cd / live cd with /home persistence will be bootable on any pc. Once you install it, the way you did here, only relevant drivers for the hardware at the time of installation get installed. So, you can’t expect to boot from same pendrive on a different PC. It will possibly freeze !!

    I don’t know about lubuntu but puppylinux, antix & mxlinux are good at persistence with frugal install, (and can be booted on PCs with different hardware.)

  8. Zumbruk says:

    Is the resultant USB stick mountable on a Windows system, such that Windows can access the FAT partition? I’ve read that Windows won’t mount sticks formatted like this and offers to reformat them because it doesn’t understand the Ext4 partition at the beginning. I don’t have have a Windows system to try it on.

  9. Karol says:

    It works nicely on my laptop which I used for installation, but on my PC the system almost freezes after like 2 min or so. When I barely manage to launch task manager there is no load on CPU or RAM. Any idea what may be causing this?

    • Amit Nandkumar Hambar says:

      May be it is because of USB read write speed/ USB read write problem.

    • Rooster says:

      Maybe you didn’t installed the proper distribution x32 bits or it could be hardware issue, try to look for a refreshment setup or program that adapts to changes in the hardware environments

    • D says:

      Mine will freeze unless, upon boot, I press "e" and add "acpi=off" then it runs fine without freezing.

Leave a Reply to Amit Nandkumar Hambar Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.