HowTos - InstallFromUSBkey - CentOS Wiki
HowTos - InstallFromUSBkey - CentOS Wiki
CentOS
The procedures below have been tested by various users, but may
not cover all eventualities. There is a formal CentOS project
recommended approach and that is to use dd.
Motivation
dd if=CentOS-6.5-x86_64-bin-DVD1.iso of=/dev/sdb
You must write to the entire device and not a partition on it (so,
/dev/sdb not /dev/sdb1)
When asked for the media to install from, select "hard disk" and then
the device corresponding to the USB key.
Exactly the same method works for CentOS 7. Moreover, the CentOS
7 installer image has a special partitioning which, as of July 2014,
most Windows tools do NOT transfer correctly leading to undefined
behaviour when booting from the USB key. Applications known (so
far) to NOT work are unetbootin, multibootusb and "universal usb
installler" - do NOT use these. Confirmed as functioning correctly are
Rufus (may depend on options selected, there have been reports
of failure with rufus too), Fedora LiveUSB Creator, Win32 Disk
Imager, Rawrite32 and dd for Windows. If using a version of
Windows newer than 7, make sure you unmount the USB drive first
(formatting it prior to launching the disk copier is one way to
accomplish that), otherwise Windows might refuse to write on the
stick, bailing out with the "can't write to drive" error message.
If using dd for Windows, run dd --list and look carefully at the list of
NT Block Device Objects and use the one that looks like \\?
\Device\Harddisk1\Partition0 where the description is something like
Removable media other than floppy. Block size = 512. Be very careful
about which output device you pick or you may overwrite something
you did not intend to! On my machine I ran dd if=CentOS-7.0-1406-
DVD.iso of=\\?\Device\Harddisk1\Partition0 - your device names
and command may vary accordingly!
Older Method
This method has been reported as still viable for CentOS 6.4
/mnt/USB/.
6. Rename /mnt/USB/syslinux/isolinux.cfg to
/mnt/USB/syslinux/syslinux.cfg
of 11 Jan 2012, the install requires the .iso (see below), but
10. Copy the .iso file to /mnt/USB. Do not use the LiveCD or
the contents - the install now wants the .iso file itself, which it
required if your system wants the USB key as the first drive, so
14. During the installation process, the user is asked "What type of
has tried to mount image #1, but cannot find it on the hard
the first partition of the USB key, but it's on the second
umount /mnt/isodir
mount the second partition on the USB device. This will be the
same device used in #14 above - for example
mount -t ext3 /dev/sda2 /mnt/isodir
17. Finish the installation and reboot without the USB device
boot record was written to the wrong device. See How to re-
Alternatives
https://git.fedorahosted.org/cgit/livecd/plain/tools/livecd-iso-to-
disk.sh
Just download it, chmod +x and run:
The resulting key could directly be used for installations, without the
need of placing the iso manually on the key.
key.
these.
Using Windows
First of all, take into account that the instructions for modern
CentOS versions ( CentOS 6 > 6.5, CentOS 7 ) are at the top of this
page.
Starting with CentOS 6.5, one can create a bootable USB key simply
by installing the ISO file on the key using a program such as
Win32 Disk Imager. This will delete all information already on the
key.
iso2usb.
or additions.