layout: post title: ‘How to create a bootable USB memory stick from an ISO file, on RedHat 6’ —
Today I needed to make a bootable USB from an ISO image file, on my Red Hat Enterprise 6 (SLC6) machine. In particular, I had to install Ubuntu on my RedHat machine.
Here below the summary of all the steps:
.isofile you need. (In my today’s example, I downloaded the most recent Ubuntu’s image file)
Attach a USB key. The USB key is usually auto-mounted and a Nautilus window will show you its content. The key will be erased, so remember to backup somewhere all the files stored in the USB stick. Notice the mount path; in my example it is:
Check the name of the USB device:
In my example, I get the device name
Unmount the USB key with the terminal, NOT with Nautilus “Eject” (otherwise the
dd command used on next steps will not see it properly):
.iso file to the USB key (again: it will ERASE the USB key’s content!), using the path of the iso file as input and the device name of the USB stick as output; the
bs value is optional but setting it to a large value speeds up the process:
dd if=/downloads/ubuntu-14.04-desktop-amd64.iso of=/dev/sdc bs=512k
a) You can check the
bs values of the input iso file with:
isoinfo -d -i /downloads/ubuntu-14.04-desktop-amd64.iso | grep size ... Logical block size is: 2048
bs option to a larger value than that listed above.
dd to finish writing the image to the USB memory stick. The process is completed when you get an output like this below, and the command-line prompt appears again:
1928+0 records in 1928+0 records out 1010827264 bytes (1.0 GB) copied, 102.146 s, 9.9 MB/s
rootaccount and unplug the USB drive (which should be still unmounted).