How to Install Linux to a Thumb Drive
Written By
Alex Long
https://twitter.com
Published 5 months ago
Last edited 5 months ago

Let's face it, CDs and DVDs are a thing of the past. We no longer use them as a storage medium because they are slow, prone to failure in burning, and non-reusable. The future is flash memory. Flash memory is cheap, fast, and efficient. Eventually, flash drives might even replace discs as the preferred prerecorded selling format for movies.

But this Null Byte is not about movies, it's about operating systems.

A great tool to have in your arsenal is the ability to have an OS on a thumb drive. This allows you to install an OS quickly on any system, lets you load a live OS fast, and provides the convenience of having your entire operating system—complete with all of your files—on hand at all times. It would almost be like a cloud and synchronizing OS (expect someone to steal that idea).

Here, we will install a Linux distribution onto a thumb drive as an example. Let's look at what we need:

Requirements

  • Linux OS
  • Spare thumb drive
  • Computer capable of booting from a thumb drive
  • Linux ISO image

Step 1 Check Your Boot Capabilities

First, let's check out if our computer can actually boot from a thumb drive.

  1. Plug your thumb drive into a USB port.
  2. Restart your computer.
  3. Hit F12 during the POST before your OS starts to get into your boot menu.
  4. Look for a USB or thumb drive option. If it is there, congrats, you can boot from it!

Step 2 Install the Image to Your Drive

Follow along with me in this video so you can see how to use the unetbootin interface.

Commands

sudo pacman -S unetbootin

sudo unetbootin

Follow and Chat with Null Byte!

Image by salon

Comments

+3
Matthew Herman (22) 12/14/11 1:27 PM
There are some other alternatives, one for windows is pen drive linux (http://www.pendrivelinux.com/), unetbootin for windows (http://unetbootin.sourceforge.net/) to name a few
+1
Alex Skittles (4) 12/15/11 5:03 AM
This is one of the reasons I love null byte. Unfortunately, my old laptop is not capable of booting from USB.
+1
Alex Long (98) 12/15/11 10:16 PM
Awh, get in IRC then, haha :D.
+1
Ruben S. (47) 12/15/11 5:21 AM
how much space does the thumb drive need?
+3
Matthew Herman (22) 12/15/11 12:34 PM
It depends what OS you want to put on it. You will typically need a 4gb flash drive
+2
Alex Skittles (4) 12/15/11 2:39 PM
Yeah, all depends on the OS. Damn Small Linux or Puppy Linux are both designed for this, and Damn Small is about 50 MB and takes just that much RAM.
+2
Alex Long (98) 12/15/11 10:18 PM
I have a small version of LFS that I made a while ago, it's super awesome, it ended up being 4MB xD. Very limited in functionality though, haha.
+1
Ruben S. (47) 12/16/11 1:27 PM
hahha Woah xD :D Thank you all for response :D I only got my old 1 gb thumb drive xD :D
+2
Bird andBear (60) 12/16/11 10:50 AM
Want some serious OS hacking? Help me live boot a USB of mint or arch on my i5 10.6.8 Aluminum Unibody Macbook Pro :P

I had a live boot USB of BT4 for a while, but I lost it.. It was an 8gb too .
+1
Alex Long (98) 12/16/11 12:29 PM
Awh, bummer. Why, though? Your Mac should boot them just fine D;. Incompatible hardware?
+2
Bird andBear (60) 12/16/11 5:06 PM
Pretty much, it 1) would not acknowledge it as bootable media (even though it was on Windows) and then 2) once I got it to accept it as bootable media it just crashed/didn't boot properly.
+1
Alex Long (98) 12/16/11 6:45 PM
Might have been a bad iso? Could try it. Maybe try putting Arch on a thumb drive would help more since it's nice and small and will allow you to test quickly.
+2
Bird andBear (60) 12/16/11 8:21 PM
I'll need to get a new USB, I have lost both the USB's I had on hand recently. I believe I have a working Arch ISO lying around here somewhere, although the BT4 ISO worked just fine on every other computer I tried it. Also the BT4 worked on a VM on this laptop, although that's not exactly the same.
Add your comment:
0 / 2000

462 Members | 68 Contributing Members (15%)

Join Our World

  • Allen Freeman
  • Matthew Herman
  • Bird andBear
  • JT Newsome
  • occupytheweb otw
  • Justin Meyers
  • chi square
  • Bryan Crow
  • ChristopherVoute
  • Alex Salas
View All Members

Null Byte

Null Byte is a world for anyone interested in science, networking, social engineering, security, and getting root. Any like-minded tech enthusiast looking to protect themselves from malicious script kiddies and shorcuts for everyday life will find their home here.

We're going to take it from an IP address to programing, all the way to reverse engineering, getting root, and finding zero-day vulnerabilities.

If you don't understand any of this, don't worry, this is the place to begin!

Join us and discuss topics in a secure and anonymous format in our channel #nullbyte on IRC2P

Google+
Twitter

FREE sup_g | FREE kayla | FREE palladium | FREE topiary | FREE pwnsauce

Allen Freeman Allen Freeman - World Admin World created 7 months ago

loading...