02.09.2019

Install Centos From Usb

Active9 months ago
  1. How To Install Centos From Usb
  2. Install Centos From Usb Step By Step
  • ISO2USB utility creates bootable USB drive from CentOS/RedHat 5.x/6.x installation disk or corresponding ISO image. Created USB drive may be used to perform installation on machines that lack optical drive. Custom installation disks (with kickstart configuration files) are fully supported.
  • Feb 09, 2019  CentOS ISO downloads are available in two different variations - Minimal ISO and DVD ISO. So what are these? In this guide, you will know how to create a CentOS Live USB drive that can also be used to install CentOS.

In this article, we will show you how to install CentOS 7 in a USB drive. Before you begin with the installation, perform a flight check and ensure you have the following: An installation media (DVD or USB drive of 4 GB or more). A 16 GB USB drive onto which we will install CentOS 7.

We all know we can create bootable USB with Rufus and live ISO like LiveGNOME ISO file, but in my experience it can't save settings and data which means it'll reset to default value every time you reboot it.

So I'm thinking: is it possible to act USB as an computer hard drive if it got enough I/O speed and storage? If yes, then is it possible in install CentOS in the USB using DVD/everything ISO by selecting USB as the drive in the installation process? Also, will it modify the things on other drive in the installation process to the USB drive? Last, can we boot the CentOS on other computer using the USB stick with the settings we've set on previous computer?

I know it might looks like I have a few questions in this question but basically I just want to know if can we install CentOS on USB like the normal way we install on computer with DVD/everything ISO file?

How To Install Centos From Usb

Jeff Schaller
49.6k11 gold badges73 silver badges165 bronze badges
Andrew.WolphoeAndrew.Wolphoe

4 Answers

Yes you can install centos in USB drive. Don't install it in the same USB disk which you're using as installer. Use separate usb disk as installer and installation. Or you can keep the installer in a CD disk.

Select boot drive properly while using the CentOS installed in the usb. You may install bootloader into the usb drive to make it bootable and select it as first boot drive. Otherwise skip bootloader installation in the usb drive and make a proper enty in grub configuration of your existing Linux system in hard drive

Installation procedure is same as installing in hard deive. It's better to install in a USB 3 drive for better performance.

Abhik BoseAbhik Bose
1,6521 gold badge6 silver badges26 bronze badges

Yeah. That is how you create a portable Linux. You can't have the source and destination as the same USB.

One way to do that without buying an additional USB is to mount the installation ISO to a Virtual Box and then boot into that by making sure your real USB is also connected to it. Select the USB position as the destination for Linux installation.

Some times you might see a UIUD not find issue when you try to boot the real USB. In that case enter the fallback mode in and fix the errors by googling around.

NishantNishant

Yes it is. Plug in the usb drive you want to install the os on. Make an ext partion on it with gparted. Run command sudo blkid and note down it's UUID. Burn the live iso to another usb drive. Boot from it. Plug in the installation target usb. Note it's device name. (Something like sdxn, x is a letter, n is a number). And choose that partition as the installation target. Note that partitioning the usb might not be necessary as installation program might do it for you.

sagasaga

If you install CentOS 7.6 using LVM scheme on one machine, then transfer your USB drive onto another machine and run yum update there, you may encounter the bug I just had (2018-12-07):

the newly installed kernel (or more like newly built initrd) won't let you boot!

I just found that initrd excluded dm (Device Mapper) and lvm from Dracut modules for some reason.

I had to bring USB drive back to the original machine (laptop) and run there:

$ sudo yum reinstall 3.10.0-957.1.3.el7.x86_64

After this my USB drive containing CentOS 7.6 started booting the new kernel on both machines.

Probably a bug, I am not sure. Just noting.

saulius2saulius2

Not the answer you're looking for? Browse other questions tagged centosbootusbusb-driveiso or ask your own question.

Have you ever fancied a portable instance of a CentOS 7 installation in your USB pen drive? You probably might not have known it, but you can easily install CentOS 7 in a USB drive just as you would install it in a physical hard drive or a virtual environment.

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

This would enable you to plug your USB on any PC and seamlessly run your CentOS 7 after setting the PC to boot from your USB drive. Sounds cool right?

In this article, we will show you how to install CentOS 7 in a USB drive.

Prerequisites

Before you begin with the installation, perform a flight check and ensure you have the following:

  1. An installation media (DVD or USB drive of 4 GB or more).
  2. A 16 GB USB drive onto which we will install CentOS 7. This needs to be formatted by Gparted and the existing filesystem deleted to create unallocated space for installation.
  3. A software utility for making the USB drive bootable. For this guide, we will use Rufus.
  4. A CentOS 7 Live CD. This can be downloaded at CentOS main website.
  5. A PC. It’s important to note that no changes will be made to your system, so no worries.
  6. Internet Connection

Installing CentOS 7 in USB Drive

With all the prerequisites in check, it’s time now to make the USB drive bootable by downloading a copy of Rufus utility tool.

Once the download is complete, double click on the installer and the Window below will be displayed. Be sure to select your USB drive and the CentOS 7 Live installer ISO.

With everything in place, hit the ‘START‘ button to begin copying the installation files onto the USB drive. When the process is complete, eject the USB drive and plug it into a PC and reboot. Ensure to configure the boot order in the BIOS set up so that the PC first boots from the USB drive.

Save the changes and allow the system to boot.

Select the Appropriate Installation Option

Upon booting the Live CD medium, the default CentOS 7 home screen will be displayed as shown below. Click on the ‘Install to Hard Drive‘ option to begin the installation process.

Install CentOS 7 to Hard Drive

Select the Language

This takes you to the next step where you will be required to select your language of choice and hit the ‘Continue‘ button.

Configure Date and Time

The next step will prompt you to make a few configurations – Date and Time, Keyboard settings, Installation destination, and Network & Hostname.

CentOS 7 Installation Summary

To configure Date and Time, click on the ‘DATE & TIME‘ option.

This displays the world’s map. If your PC is already connected to the internet via internet or LAN cable, the installer will auto detect your current location, date and time.

Next, click on the ‘Done‘ button to save the changes.

Configure Date and Time

Configure Keyboard

Next step is the keyboard configuration. Click on the ‘KEYBOARD‘ option.

Install Centos From Usb Step By Step

In the KEYBOARD LAYOUT section, you can test the keyboard configuration on the right text input field and when you are satisfied with the results, click on the ‘DONE‘ button as before.

Configure Keyboard Layout

Select Installation Source

In the next step click on ‘INSTALLATION SOURCE‘ to customize your installation using other sources other than the traditional USB/DVD. This is the section that we shall instruct the installer to install the CentOS 7 OS on the USB drive.

There are two main partitioning configurations: Automatic and Manual.

Automatic Partitioning

With automatic partitioning, the system automatically and intelligently partitions the hard drive without your input into the three main partitions.

  • The /(root)
  • The /home
  • The swap

To take advantage of this nifty and useful feature, click on the hard drive and click on the ‘Automatic configure partitioning‘ as shown below.

Click on the USB drive and click on ‘Automatically configure partitioning‘ to allow the installer to intelligently partition the USB drive for you. Hit the ‘Done‘ button to save the changes.

Select Automatically Configure Partitioning

Manual Partitioning

If you wish to manually partition the USB drive and specify the memory capacity, click on ‘I will configure partitioning‘ option.

Campus love story tuguegarao city. Barangay Love Stories - Tuguegarao City (Campus Love Stories) has 1900 members. This is a fan-made group that posts featured love stories every sunday. Barangay Love Stories - Tuguegarao City (Campus Love Stories) memiliki 1.677 anggota. This is a fan-made group that posts featured love stories every. Aired on March 23, 2013 on Barangay Love Stories Tuguegarao narrated by DJ Papa Vhan. LISTEN to CAMPUS LOVE STORIES LIVE! Just click the the link below; http://www.ustream.tv/channel/radio-gma-893fm-tuguegarao. Aired on May 11, 2014 on Barangay Love Stories Tuguegarao narrated by DJ Papa Vhan.

This pops up the window as shown with LVM as the default option.

Other mount points you can choose from include:

  • Standard Partition
  • LVM Thin provisioning
  • Btrfs

Select Manual Partitioning Filesystem

To make your work easy, click ‘Click here to create them automatically‘ option. The USB drive will be automatically be partitioned by the Installed into the crucial mount mounts such as root, /boot and swap.

Click on the ‘Done‘ button to save the changes. A pop up will display a summary of changes that will be made to the disk. If all looks good, click on ‘Accept Changes‘.

Summary of Partition Changes

Configure Hostname

Install centos from usb mac

Lastly, click on the ‘NETWORK & HOSTNAME‘ option to define the system’s hostname. Type your desired hostname in the text field and click on ‘Apply‘. Once again, click on ‘Done‘ to save the changes.

Begin CentOS 7 Installation

With everything set and ready, click on the ‘Begin Installation‘ button to commence the installation process.

Begin CentOS 7 Installation

Set Root Password and Create a New User

The next step will require you to set the Root Password and create a new user.

Click on ‘ROOT PASSWORD‘ to create the root password. Type a strong password and click on ‘Done‘.

Set Root Password

Next, click on ‘USER CREATION‘ to create a New User. Fill all the required details and click on the ‘Done‘ button to save the changes.

With the root password set and a new regular user created, the installer will begin to install the CentOS system together with all the required packages, repositories, libraries, and bootloader.

CentOS 7 Installation Progress

Finalizing the CentOS 7 Installation

At the end of the installation process, you will get a notification at the bottom right corner that the system has been successfully installed.

Click on the ‘Reboot‘ button to finish up the configuration. Remove the installation media but keep the 16 GB USB drive plugged in.

Once the system reboots click on ‘LICENSE INFORMATION‘.

Select License Information

Accept the End User Agreement License by checking on the checkbox. Next, click on the ‘Done‘ button.

Finally, click on ‘FINISH CONFIGURATION‘ to complete the process. The system will reboot, and you will be prompted for a user name and password of the user you just created.

Conclusion

We have successfully installed CentOS 7 on a USB Drive. Going forward, you can plug this drive on another PC and boot into your CentOS 7 new installation and start working! Take care not to lose your drive.

Share