Do you know what a Bootable USB? Carrying our favorite operating system or our favorite operating systems in your pocket is great and very comfortable. Especially if the well-known BYOD (Bring Your Own Device), ie "bring your own device." It is much more comfortable to carry a pendrive than a whole computer. And not only that, you may be interested in having the mobility and comfort of a Live, but with the possibility of saving configurations and changes, which allows you a USB memory.
It is also not a bad idea if you are a security auditor to run your own distribution or tools on a pendrive, nor is it crazy if you dedicate yourself to repair equipment. A technician could have Linux distributions destined to the analysis and repair of equipment in a single pen, providing a source of tools with total portability and independence from the equipment we use. In short, whatever your task, the tutorial that we present gives you absolute mobility.
Like I said, have a LiveCD or a LiveDVD It is a good option to use certain tools or certain Linux distributions at any given moment, loading it from the RAM memory of our equipment without having to install it, and on any equipment. But what happens when the computer in which we want to start the system does not have an optical reader, as is the case with many modern portable computers, or what happens when we want to save some data or configuration, since a ROM memory such as that of an optical support does not allow it, but a flash memory does.
Therefore the flexibility of having a bootable USB memory with our favorite operating systems or distros and being able to count on the changes persistently is an advantage (when we unplug the pendrive from the USB port, everything will not be erased as it happens when removing the CD / DVD Live, since RAM is volatile). Yes, I speak in plurality since you can have different operating systems in a USB memory as if it were a traditional hard disk. A bootable pendrive with multiboot And that is precisely what we will explain to you how to do it step by step from your Linux distro.
In addition, for users who need to have a pendrive for install Linux from USB or for Windows 10 installation on any PC, whether or not it has an optical drive, you will also find an interesting section in this article. Windows 10 has grown and many developers have also been interested or attracted by that integration that Microsoft has made of Bash in one of its latest Builds or updates. If you want to use Bash, that "bit" of Ubuntu in Windows 10, you will also find a guide.
Table of Contents
- 1 Our proposal to create a Bootable USB
- 2 Create a Bootable USB with your favorite distros
- 3 Boot our bootable USB for the first time to test it
- 4 Windows 10 Installation USB + How to Install Bash
Our proposal to create a Bootable USB
You can modify the steps that we teach you to your liking to install different operating systems that interest you or different tools. You can replace our suggestions with very different ones that better suit your work or needs. Also you we explain how to make a multiboot, which is more complex, but if you want to install only a distribution or operating system, you can guide yourself through our steps, but only put an OS.
Our proposal, from LxA is to install Ubuntu on the pendrive together with Hiren's Boot CD, what we get with this is to have a friendly and generic distribution for our work and a lot of bootable tools to repair our equipment, analyze viruses or carry out other checks. However, as I say, you can substitute Ubuntu for any other distribution you like or any other operating system you need. The same with Hiren's Boot, replace it with other tools such as Rescatux or Super GRUB Disk, with a Microsoft Windows system in dualboot with the distro or whatever you want. Do you need more than two? Well, go ahead too ...
The necessary material for this you will need is:
- A team with a Linux distribution (You can do it from other operating systems like Microsoft Windows using tools like Easyboot).
- Un pendrive or USB memory, it can be an external hard drive as well.
- Software MULTISYSTEM, although other alternatives could be used.
- Our ISO images of bootable operating systems or tools we want to include.
- And of course tiempo to do it…
Create a Bootable USB with your favorite distros
Yes now, we explain step by step the procedure of how to create your bootable USB with different systems, you will see how it is simple:
Download and install MULTISYSTEM
MULTISYSTEM It will help us to properly install all the operating systems or bootable tools that we need within our USB memory and configure GRUB properly:
- Download MULTISYSTEM
- Unzip the package to extract the .sh script that comes inside.
- Now you can run it from the terminal with sudo ./install-depot-multiboot.sh or do it from the graphical interface by double clicking on install-depot-multiboot.sh.
- A menu should have been displayed in which you must select run in terminal or if you have done it directly from the terminal, you don't have to follow this step ... By the way, it will ask you for the root password because it needs privileges.
- Now you can launch MULTIBOOT from the application menu or from the console invoking its name.
When we launch MULTIBOOT, we see that it is a graphical mode program, it is intuitive and easy to use, that is why we have chosen it. In the main window you can select the USB memory in which we want to perform our operation and even change program language.
Now everything is ready to start the really good work:
- Once selected USB memory and we validate. It will notify us that GRUB is going to be installed and we wait for it to be done.
- It will present us with another new screen where we can drag and drop the ISOs (in the box that says Drag / Drop ISO / img) of our operating systems or bootable tools, it's that simple. Another option is to search for them from your menu. We have previously downloaded these ISO images, in this case Ubuntu 16.04 and Hiren's Boot CD 15.2.
- Once we have added it, we will see that the MULTIBOOT itself will installing properly on the USB. Wait for it to be done and repeat the step as many times as you want to add systems.
Once we have added everything necessary to our USB memory, you will see that on the MULTIBOOT screen there are other tabs such as Test, Non-Free, About, Menus, where we can modify the bootloader config:
- Click on the MENU tab by MULTIBOOT.
- Ingersa in GRUB settings.
- In the new pop-up window you can change text colors, GRUB background and add a custom image. If you are not an advanced user, better not modify grub.cfg, menu.lst, and syslinux.cfg.
- Now gives us several options, among them we can see how our GRUB has been if you want to do it.
- We finish and take out our USB from the port safely.
Boot our bootable USB for the first time to test it
You already have it! Now comes the litmus test, test if your bootable USB works with the system / s that you have put into it. It is as simple as clicking the pendrive or your USB memory (since it could also be an external hard drive) and starting the computer. Remember that for it to work you must enter your BIOS or UEFI and modify the priority of the Boot Priority menu.
Depending on the equipment, or rather, depending on the brand or model of BIOS / UEFI of your team you will have to enter it in a different way. Generally, you must press the Delete key as soon as you turn on the equipment several times and you will see how to access the Setup menu. In other computers you must press Esc or F2, you can consult the manual of your motherboard or laptop to know what to press in each case. If you don't have it, you can get it from the manufacturer's website or simply go to Google to see which is the correct key.
In some systems it also allows you to directly access the Boot menu by pressing F12 or F8. If you do not have the option of direct access to the Boot menu, then you must scroll to that tab using the keyboard arrows to move through the BIOS / UEFI and change the priority putting your USB as the primary device so that it is the first one in which find the operating system to boot. If you have doubts, I already explained it in more detail in our article on how to install with multiboot Ubuntu 16 and Windows 10. Once done, press F10 to exit and save changes ...
Et voilà, you have your bootable USB ready! Should appear to you the GRUB menu with the operating systems or options to boot ... Select the one you want and it will start.
Windows 10 Installation USB + How to Install Bash
Prepare the Windows 10 installation USB
Although here it says Windows 10You can also do it with another version of Microsoft's operating system, although Bash will only work if you have this latest version of Windows. The necessary material is:
- PC with Internet connection
- Pen drive USB 4GB or more.
- Image Windows 10 ISO (32 or 64-bit)
To start, the steps are:
- Insert the pendrive
- Download el necessary software to properly burn the ISO to USB. You must also access the official Windows website and download Windows 10 if you don't already have an ISO.
- Install the downloaded program.
- Open the program once the installation is finished.
- In Browser find the ISO image Windows 10 and add it before clicking Next. If you get an error, you may have to use the Rufus software. If what you want is to install Windows 10 directly on the USB as we did in the previous section with Ubuntu and Hiren's, you can also use the EasyBoot program.
- Now press create USB device.
- They will show you the devices USB connected, choose the one you want to use if there are several and then click on Begin copying.
- Wait for it to complete the process and the message of Booteable USB device appears to close the program.
You already have the bootable USB device to be able to boot it, previously selected the appropriate priority in the BIOS / UEFI as explained above and follow the steps of the Windows 10 installer. If you want to know how to install your Linux distro with Windows 10 on the same PC with dualboot, you can see our tutorial.
Install and use Bash in Windows 10
To dispose of this bit of Ubuntu within Windows 10, the step-by-step procedure is:
- Sign up for the program Windows Insider from this website to receive special updates.
- Go to Windows Update.
- Then Advanced Options.
- Press «Get Insider builds«.
- Then activate the developer mode in Windows Update, «For developers» and «Programmer mode«.
- Check for updates for them to download and install and reboot your system when prompted.
- Among the updates should be the one that integrates Bash with Windows 10.
- Now, once restarted, go to Control Panel, Programs and "Enable or disable Windows features."
- Look for one of the entries that says «Windows Subsystem for Linux»And activate it. It will ask you to restart, do it and that's it.
- Now you can already use bash, To do this, search for it ("bash") in the desktop search engine and you will be able to select it ...
Remember to leave your comments, be it some suggestions, doubts or anything else you want to express about this article. I hope it has helped you and serves your purposes ...