Tips. The above instructions use Ubuntu as the platform to create the bootable USB drive. The instructions above describe how to create a bootable USB drive using CentOS 5.7.
If you're attempting to create bootable drive using another version of CentOS, you must change the above code to reflect the name and installments of the ISO files. Note that the above instructions might not work with CentOS 6. The USB flash drive should be about 8 to 10 GB in size. Confirm during installation that Anaconda writes CentOS to the correct storage device inside the computer and not to the USB drive. Change all instances of 'i386' to 'x8664' if using an x86-64 instruction set.
The CentOS instance that we will install onto the bootable USB flash drive is CentOS-7-x86_64-Minimal-1503-01.iso. Requirements Windows: You will need to use a program like Cygwin. 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.
In this blog article, I’ll show you how to mount a USB Flash Drive on CentOS 7 terminal. In my case, I needed to mount a USB Flash Drive on my minimal CentOS 7 machine to copy a file to the USB Flash Drive.
USB Flash Drive The file system of my USB flash drive is FAT32. I used a Windows 10 computer to create a folder called System Volume Information on the USB flash drive. Mounting First, go to your CentOS 7 computer and create a folder where you’ll mount the contents of the USB flash drive to. Mkdir -p /media/USB /dev is a location that represents devices attached to your computer.
Check the /dev directory’s contents by typing: ls /dev/sd. You should see something like this: Next, insert your USB flash drive into the CentOS 7 machine. You could also use ls /dev/sd (then hit tab). You should see a new sdb and sdb1. Our USB flash drive is represented by /dev/sdb1.
We will mount the USB flash drive to the /media/USB folder that we created earlier. Mount -t vfat /dev/sdb1 /media/USB Check if the USB flash drive is mounted by listing the contents of /media/USB. root@buhpc6 # ls /media/USB System Volume Information Since the /media/USB contains System Volume Information, I know that the USB flash drive was mounted properly. Now, I can copy any file to the mounted USB flash drive folder. Cp nfs-utils-1.3.0-0.21.el72.x8664.rpm /media/USB/ Unmounting After you are done with the USB flash drive, always remember to unmount the USB flash drive from the folder it is mounted on. Umount /media/USB You can now safely eject the USB flash drive from the CentOS 7 machine.