This guide will show you how to make a bootable USB memory stick (pendrive) for installing Kwheezy. Or perhaps just to use as a portable Live session.
This guide requires that you have an existing Linux or *BSD installation. We will be using the dd command.
The dd command is very powerful, be very careful when using it, particulary when specifying the drive.
First, make sure you have the iso (image) file you want to image to the USB stick. Let's say it's in your Download folder. Open the command terminal.
Plug in the USB stick. In the terminal, enter:
dmesg | grep Attached
The last line (or there abouts) should show the device ID. As can be seen below, mine is 'sdg'.
[45203.941766] sd 10:0:0:0: Attached scsi generic sg6 type 0 [45203.958139] sd 10:0:0:0: [sdg] Attached SCSI removable disk
Now we know the device ID we can proceed to dd the image to the USB drive:
Remember to change the device id!
dd if=Downloads/kwheezy-1.2-64bit.iso of=/dev/sdg bs=1M ; sync
Then wait until it has finished copying the data to the drive / memory stick.
- dd is the command.
- "if=" tells dd what the input stream is, in this case the iso file.
- "of=" tells dd what the output stream is, in this case the USB stick.
- "bs=" tells dd what block size to use, in this case 1M (1 megabyte) is reasonable.
- ";" seperates the commands
- "sync" tells the system to sync all data to disks (so that we know it has finished physically copying all data)
That's all folks. You may now try to boot off the USB stick.