- Ubuntu Documentation
- Booting the Computer from USB
- Boot menu
- Hotkey
- Edit the BIOS settings
- Select ‘hard disk/USB-HDD0’
- Chainloading
- The 40_custom method
- The Chainloader
- PLoP Boot Manager
- Requirements
- Flow chart for trouble-shooting
- How to Install Linux OS on USB Drive and Run it On Any PC
- Requirements:
- Step 1: Create Bootable Linux Installation Media
- Step 2: Create Partitions On Main USB Drive
- Step 3: Install Linux on USB Drive
- Step 4: Customize the Lubuntu System
- If You Appreciate What We Do Here On TecMint, You Should Consider:
- Running Linux From a USB Drive As a Virtual Machine or Bootable Disk
- Running Linux from a USB drive in Windows
- Boot Linux from a USB drive
- Which Linux distribution should I install?
Ubuntu Documentation
Booting the Computer from USB
Remove all unneeded USB items, but keep the network cable attached.
Boot menu
Instead of editing BIOS settings, you can choose a boot device from the boot menu. Press the function key to enter the boot menu when your computer is booting. Typically, the boot screen displays which key you need to press. It maybe one of F12, F10, F9.
Hotkey
Insert the bootable USB flash drive that you just created in your target computer and restart it. Most newer computers can boot from a USB flash drive. If your computer does not automatically do so, you might need to edit the BIOS settings.
Restart your computer, and watch for a message telling you which key, hotkey to press to enter the BIOS setup.
- It will usually be one of F1, F2, F9, F10, DEL, Enter or ESC.
- The hotkey should be described in the user manual provided by the manufacturer of the computer (a printed or electronic document).
You can also search your hardware on boot-keys.org.
Press this hotkey continuously or tap repeatedly (different between computers) while your computer is booting to edit your BIOS settings. (On HP Mini Netbooks, the correct key is usually F9.)
Edit the BIOS settings
Select ‘hard disk/USB-HDD0’
Note: with some motherboards you have to select ‘hard disk/USB-HDD0’ to choose the USB flash disk. It may work like this because the system sees the USB drive ‘a mass storage device’ as a hard disk drive, and it should be at the top of the boot order list.
So you need to edit the Boot Order. Depending on your computer, and how your USB key was formatted, you should see an entry for «removable drive» or «USB media». Move this to the top of the list to make the computer attempt to boot from the USB device before booting from the hard disk.
Normally you would enter into the BIOS/UEFI menus directly at boot as described above, but if you are running Windows, you can also get there according to this link.
Chainloading
The 40_custom method
In the particular case, that you have linux and grub installed there is also the 40_custom method. Some pendrives boot from grub even if they won’t boot from the computer’s own BIOS USB boot menu entry. See the following link for a background about grub Scripts: /etc/grub.d/
Add the following text to the file 40_custom (notice that it is important to keep the first lines, that come with the file)
and run the command
Then you will get a grub menu option to boot from a second drive (hd1), which could be a USB pendrive. If another drive is hd1, you can edit the line to (hd2) etc.
If there is no grub menu, press the left shift key during boot, and it should appear.
This chainloading method does not work in UEFI mode.
The Chainloader
This method is developed into a method to boot the computer with one USB drive that is a good booter, and chainload to another USB drive, where the operating system resides. See this link Howto help USB boot drives
PLoP Boot Manager
- For old computers that cannot boot from USB. Some computers can see the USB flash drive and may have the option to boot from USB but cannot actually do so. All hope is not lost.
Requirements
- Windows running on the computer
- USB flash drive, ready to boot (shown below)
PLoP Boot Manager — Your alternative USB boot method, https://www.plop.at/en/bootmanager/index.html
Just follow the instructions on the PLop website.
A detailed guide to make Plop Boot Manager work from GRUB by installing it on hard drive is available here — http://mgw.dumatics.com/how-to-boot-from-usb-when-bios-does-not-have-the-option/
Flow chart for trouble-shooting
There is a flow chart for trouble-shooting and corresponding lists of possible causes of problems to boot from USB at the following link,
Installation/FromUSBStick/bootUSB (последним исправлял пользователь nio-wiklund 2020-07-29 13:21:38)
The material on this wiki is available under a free license, see Copyright / License for details
You can contribute to this wiki, see Wiki Guide for details
Источник
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:
- One Pendrive 4GB or More (Let’s call it as Main USB drive/Pendrive).
- One more Pen drive or DVD disk to use as bootable Linux installation media.
- Linux OS ISO file, for example Lubuntu 18.04.
- 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.
Источник
Running Linux From a USB Drive As a Virtual Machine or Bootable Disk
Live Linux environments work just like a typical operating system but run entirely from a CD or USB stick — the latter being the most common choice these days. Since nothing is written to the host computer’s local storage, when you’re done all you need to do is remove the media, reboot, and everything will be exactly as it was.
There are a number of uses to this, from simply test driving Linux to troubleshooting a Windows PC, or work on the go from someone else’s computer but running your own OS securely with all your personal files and settings.
There are basically two options when it comes to running Linux from a USB drive: from within Windows using virtualization software such as VirtualBox, or creating a boot disk. This quick guide details both methods in a few easy steps.
Running Linux from a USB drive in Windows
This option will come in handy if you want to run a Live Linux environment but need to retain access to Windows. Perhaps you just want to do something real quick without rebooting, or want to be able to hide the virtualized Linux instance. Our preferred weapon of choice here is a little tool called LinuxLive USB Creator.
It’s free, open-source software, and it has a built-in virtualization feature that lets you run a self contained version of VirtualBox from the USB drive. This means the host computer you’ll run Linux from doesn’t need to have VirtualBox installed.
Here’s what you’ll need to do:
- Download and transfer the ISO image of your preferred Linux distribution to a USB drive.
- Download and install LinuxLive USB Creator.
- Launch LiLi USB Creator and follow the straightforward steps guiding you through the process.
- Step 1. Select the USB drive where you want Linux installed.
- Step 2. Choose the source ISO file of the Linux distribution you downloaded.
- Step 3. Choose Live Mode.
- Step 4. Leave the third box checked, the other two are up to you and self-explanatory.
You will need and internet connection to complete the process — mainly to download VirtualBox if you don’t have it installed. Once the process is finished, open your USB key in Windows Explorer and you should see a folder called VirtualBox containing two executable files: VirtualizeThisKey.exe and VirtualBox.exe.
Running VirtualizeThisKey.exe will launch your Linux distribution in Windows (inside VirtualBox), whereas VirtualBox.exe opens the full VirtualBox interface.
Boot Linux from a USB drive
If you’d rather load Linux without going through Windows first this is the way to go. There are a few different tools for creating bootable USB drives around the web but one I’m particularly fond of is YUMI — short for Your Universal Multiboot Installer.
This is the successor to our MultibootISO and can be used to install more than one distribution to run from your USB. It’s extremely simple to use, and all files from each Linux distribution are stored within the Multiboot folder, making for a nicely organized Multiboot Drive that can still be used for other storage purposes.
- Download the ISO image of your preferred Linux distribution.
- Download and install YUMI.
- Launch YUMI and follow three simple steps guiding you through the process.
- Step 1. Select the USB drive where you want Linux installed.
- Step 2. Select the Linux distribution you’ll be installing from the list.
- Step 3. Choose the source ISO file of the Linux distribution you downloaded.
Once YUMI is done you’re all set. To boot into Linux just plug the USB drive into the host computer, reboot, and press the required key during this process to enter the Boot Menu (usually F10). After choosing your USB drive you should see the YUMI boot menu where you can pick the desired Linux distribution in Live mode.
You can run YUMI’s boot drive creator again to add More ISOs/distributions to your drive as needed and they’ll all show up in this menu during boot.
Which Linux distribution should I install?
There’s no single right answer to that question. For a new user jumping into the world of Linux-based operating systems the amount of options available can be overwhelming. Finding the «right» distro for you can only be done though experience but there are plenty of resources online to help you figure it out.
Popular choices for newcomers include Ubuntu, Mint and PCLinuxOS. If you are looking for a secure operating system to take with you anywhere, you might also want to give Tails a try. The latter received a lot of press recently when it was disclosed that Edward Snowden was using it to avoid NSA snooping.
Источник