How do I create a bootable USB pen drive to start my CentOS / Fedora Linux? How do I create a bootable USB flash pen for installation of Linux, and for creation of rescue and other special-purpose boot disks using command line options?
You need to format your USP pen device as Win FAT32. Once formatted type the following commands to make it bootable.
Our Device Names
- USB Pen Device Name : /dev/sdb1
- DVD Mount : /media/cdrom0
- USB Mount Point : /media/usb
- USB File System : Win FAT32
- ISO or DVD Image : Fedora / CentOS / RHEL
To find information about your devices and current partitions run:
# dmesg | less
# dmesg | egrep -i 'cd|dvd'
# fdisk -l
Use the first command to identify the USB device name.
Mount CD/DVD ISO or DVD ITSELF
Type the following command to mount Fedora 12 iso image:
# mount Fedora-12-x86_64-netinst.iso -o loop /media/cdrom0/
# ls -l $DVD
total 6 dr-xr-xr-x 3 root root 2048 2009-11-09 05:37 EFI drwxr-sr-x 3 root 499 2048 2009-11-09 05:37 images drwxr-sr-x 2 root 499 2048 2009-11-09 05:36 isolinux
You need to use files stored in isolinux directory to create a bootable usb pen.
Say Hello To “USB Startup Disk Creator”
You can also use “USB Startup Disk Creator” utility in Ubuntu that creates a persistent Ubuntu image on a USB disk. This is called a “Live USB”. You can use the Live USB to install Ubuntu on your computer or to run Ubuntu without affecting your system hardware. You need USB disk 1 GB (2GB is suggested) or larger in size and Ubuntu systems 8.10 or later. You also need Ubuntu ISO Image which can be downloaded from the official website. To start USB Startup Disk Creator visit
System > Administration > USB Startup Disk Creator
- Click the Other… button and specify the Ubuntu image you downloaded in the previous step.
- Under USB Disk to use your USB disk is highlighted.
- To make the Live USB a writeable disk, indicate how much memory to use for extra storage. If you donâ€™t want the Live USB to be modifiable, select the second option, Discarded on Shutdown.
- Finally click Make Startup Disk to make a Live USB.
Finally, you can always use LiveCDs to recover or fix Linux system issues.
- See man pages – fdisk, mkfs, syslinux, and usb-creator-gtk (Ubuntu specific tool)