How to Create Bootable Linux USB Drive using Linux Terminal

How to Create Bootable Linux USB Pen Drive and Flash Drive using Linux Terminal. The most effective way to make any Linux Distro in a bootable USB drive using Linux Terminal. The main usage of USB drive while installing any Linux Distro using this method is the most faster way to install Linux distros on your systems. This method is tested without using any third party scripts and applications. It is the method that you can use use your easy Linux terminal.

How to Create Bootable Linux USB Pen Drive using Linux Terminal?

Step-1 (Check your USB stick full Path)
[email protected] ~ # fdisk -l
Sample Output
Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x6b07969f

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 206847 204800 100M 7 HPFS/NTFS/exFAT
/dev/sda2 206848 143566847 143360000 68.4G 7 HPFS/NTFS/exFAT
/dev/sda3 143566910 426172319 282605410 134.8G f W95 Ext'd (LBA)
/dev/sda4 426172416 488392703 62220288 29.7G 7 HPFS/NTFS/exFAT
/dev/sda5 143566912 365514751 221947840 105.9G 7 HPFS/NTFS/exFAT
/dev/sda6 365527008 426172319 60645312 28.9G 7 HPFS/NTFS/exFAT

Partition table entries are not in disk order.

Disk /dev/sdd: 7.5 GiB, 8036285952 bytes, 15695871 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x20ac7dda

Device Boot Start End Sectors Size Id Type
/dev/sdd1 3224498923 3657370039 432871117 206.4G 7 HPFS/NTFS/exFAT
/dev/sdd2 3272020941 5225480974 1953460034 931.5G 16 Hidden FAT16
/dev/sdd3 0 0 0 0B 6f unknown
/dev/sdd4 50200576 974536369 924335794 440.8G 0 Empty

Partition table entries are not in disk order.

Note: Check and note the USB stick full path and most important while checking the full path please note your USB drive capacity while check in this methods.

Step-2 (Format the USB stick using FAT32 file system)
[email protected] ~ # mkfs.vfat -n 'LinuxDistro' -I /dev/sdd
Step-3 (After formatting unmount the USB drive)
[email protected] ~ # umount /dev/sdd
Step-4 (Install the syslinux package on respective Linux Distro)

Note: The syslinux package must be install on respective Linux Distribution In order to convert ISO DVD images into USB Pen Drive using the sub commands isohybrid tools.

Install on Debian / Ubuntu and its derivative
[email protected] ~ # apt-get install syslinux -y
Install on RHEL / CentOS and its derivative
[email protected] ~ # yum install syslinux -y
Install on Fedora and its derivative
[email protected] ~ # dnf install syslinux -y
Install on OpenSUSE and its derivative
[email protected] ~ # zypper install syslinux -y
Install on ArchLinux and its derivative
[email protected] ~ # pacman -S syslinux -y
Step-5 (Make ISO image compatible for USB bootable with syslinux sub commands)
[email protected] ~ # isohybrid /root/Desktop/LinuxDistro.iso
Sample Output
isohybrid: Warning: more than 1024 cylinders: 1228
isohybrid: Not all BIOSes will be able to boot this device
Step-6 (Make Bootable USB drive)

Note: The dd command is used here for write the ISO DVD image to the USB pendrive disk full path.

[email protected] ~ # sudo dd if=/root/Desktop/LinuxDistro.iso of=/dev/sdd bs=4M && sync
Sample Output
307+0 records in
307+0 records out
1287651328 bytes (1.3 GB) copied, 353.813 s, 3.6 MB/s
Step-7 (Check the Bootable Linux USB Drive)
[email protected] ~ # ls -l /dev/sdd
brw-rw----. 1 root disk 8, 48 Nov 16 17:09 /dev/sdd

OR

[email protected] ~ # fdisk -l
Step-8 (Finally boot using Linux USB drive)

During BIOS is running keep Hitting the F12 , F2 , Esc , Depending on your BIOS manufacturer.

Final Words

Now you have enabled and created the Linux USB drive. Now go for Installations of Linux drive for USB installation of respective Linux distributions. For issues regarding the usages of the commands please use the command section bellow.

Hot Right Now

Related Post

Develop New SysAdmin Skills with E-books (FREE Download)

COMMENTS