From charlesreid1

Revision as of 06:36, 31 July 2015 by Admin (talk | contribs)

Flashing USB Stick

Here's the deal.

First you download the ubuntu desktop edition installer. This is about 996 MB, just short of the 1 GB limit, so you can repurpose all those old thumbdrives that are too small for other distros.

The file you downloaded is an image file. Now you'll flash your USB drive with that image. It will create a boot partition, and a Linux partition, and then you'll be able to boot from the USB drive. (Presuming your operating system knows how to do so.)

Step 0: Insert USB Stick

Yup. Just stick it in there.

Step 1: Find the USB Stick

On Kali Linux, the USB drive pops up in the folder viewer. Otherwise use parted:

$ parted -l 

Model: ATA Hitachi HTS54502 (scsi)
Disk /dev/sda: 250GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start   End    Size    File system     Name                  Flags
 1      20.5kB  210MB  210MB   fat32           EFI System Partition  boot
 2      210MB   150GB  150GB   hfs+            Cronus
 3      150GB   151GB  650MB   hfs+            Recovery HD
 5      151GB   151GB  1049kB                                        bios_grub
 6      151GB   246GB  95.1GB  ext4
 4      246GB   250GB  4063MB  linux-swap(v1)


Model: PNY USB 2.0 FD (scsi)
Disk /dev/sdc: 2064MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      16.4kB  2064MB  2064MB  primary  fat16        lba

Okay, so our 2 GB flash drive is at /dev/sdc.

Step 2: Format the USB Stick

Now we format the drive (BE CAREFUL WITH dd):

$ dd bs=1M if=ubuntu-14.04.2-desktop-amd64.iso of=/dev/sdc

Note that this is slightly different notation from doing this same operation on the Mac, because on the Mac it uses BSD dd, while on Linux it's GNU dd. They take 1m and 1M as arguments, respectively.