Ubuntu Live USB: Difference between revisions
From charlesreid1
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
= Flashing USB Stick= | =From Kali= | ||
== Flashing USB Stick== | |||
Here's the deal. | Here's the deal. | ||
| Line 7: | Line 9: | ||
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.) | 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== | ===Step 0: Insert USB Stick=== | ||
Yup. Just stick it in there. | Yup. Just stick it in there. | ||
==Step 1: Find the USB Stick== | ===Step 1: Find the USB Stick=== | ||
On Kali Linux, the USB drive pops up in the folder viewer. Otherwise use parted: | On Kali Linux, the USB drive pops up in the folder viewer. Otherwise use parted: | ||
| Line 43: | Line 45: | ||
Okay, so our 2 GB flash drive is at <code>/dev/sdc</code>. | Okay, so our 2 GB flash drive is at <code>/dev/sdc</code>. | ||
==Step 2: Format the USB Stick== | ===Step 2: Format the USB Stick=== | ||
Now we format the drive (BE CAREFUL WITH dd): | Now we format the drive (BE CAREFUL WITH dd): | ||
| Line 49: | Line 51: | ||
<pre> | <pre> | ||
$ dd bs=1M if=ubuntu-14.04.2-desktop-amd64.iso of=/dev/sdc | $ dd bs=1M if=ubuntu-14.04.2-desktop-amd64.iso of=/dev/sdc | ||
</pre> | |||
or, on the Mac, | |||
<pre> | |||
$ dd bs=1m if=ubuntu-14.04.2-desktop-amd64.iso of=/dev/sdc | |||
</pre> | </pre> | ||
Revision as of 07:16, 9 August 2015
From Kali
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
or, on the Mac,
$ 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.