Author Topic: Running Linux from USB  (Read 1660 times)

0 Members and 1 Guest are viewing this topic.

Offline Altis

  • Thread Starter
  • Posts: 974
  • Location: Canada
Running Linux from USB
« on: Thu, 30 January 2014, 18:17:53 »
So far, I've only tried Ubuntu and Slacko Puppy Linux distros, installing them to USB 2.0 drives.

While Ubuntu worked, it was constantly accessing the USB stick, and it locked up frequently... eventually just died completely.

Slacko Puppy doesn't seem to be the nicest looking distro, but it works very well on USB 2.0. It only accesses the drive every 10 minutes or so. Quite good.

I do this so I can boot to a Windows laptop that is all locked down with an encrypted drive and is too heavily tracked to be able to access non-work email and such (which, oddly enough is required for work).

Anyone else have any experience with running Linux or another OS from a USB drive?  I imagine USB 3.0 would work much better.
WhiteFox (Gateron Brown) -- Realforce 87U 45g -- Realforce 104UG (Hi Pro 45g) -- Realforce 108US 30g JIS -- HHKB Pro 2 -- IBM Model M ('90) -- IBM Model M SSK ('87) -- NMB RT-101 & RT-8255C+ (Hi-Tek Space Invaders) -- Chicony KB-5181 (Monterey Blue Alps) -- KPT-102 (KPT Alps) -- KUL ES-87 (62/65g Purple Zealios) -- CM QFR (MX Red) -- Apple Aluminum BT -- Realforce 23u Numpad -- Logitech K740 -- QSENN DT-35 -- Zenith Z-150 (Green Alps)

Offline tuxsavvy

  • Posts: 441
  • 白HHKBの魔法使い
Re: Running Linux from USB
« Reply #1 on: Fri, 31 January 2014, 00:34:39 »
I have ran a few live distros on USB before, I guess more or less the same theory would apply here even when one runs liveCD/liveDVD for that matter. Most of the problem lies in the fact that USBs were notoriously slow (even though it is much more stable than running linux for instance through optical drives and the media itself.

Another problem to think of is the lack of swap space I guess or part thereof under live environment may cause lockups. If it is not the lack of swap space it maybe issues with the hardware that could cause lockups and at that even lockups can occur on proper installations (that is linux was installed on a hard drive rather than some small flash drive).

Ubuntu is not that great of a choice I personally believe, there are a few variants of ubuntu such as kubuntu, lubuntu, xubuntu for instance which I tend to recommend more rather than just ubuntu itself. Heck even linux mint.

For machines with small amounts of RAM (something in the order of maybe 1GB of RAM or less, I would suggest either using a lighter live distribution such as puppy linux and/or setup swap space somewhere (besides on RAM).
HHKB Pro JP Type-S | Northgate Omnikey 101 | APC/"Clicker" F-21 (GOG3YL) | Cherry G80-5000 HAMDE

僕の日本語が下手です。我的中文也一樣爛。

Offline phoenix1234

  • Posts: 584
  • Location: Saigon - Vietnam
Re: Running Linux from USB
« Reply #2 on: Fri, 31 January 2014, 03:33:25 »
So far, I've only tried Ubuntu and Slacko Puppy Linux distros, installing them to USB 2.0 drives.

While Ubuntu worked, it was constantly accessing the USB stick, and it locked up frequently... eventually just died completely.

Slacko Puppy doesn't seem to be the nicest looking distro, but it works very well on USB 2.0. It only accesses the drive every 10 minutes or so. Quite good.

I do this so I can boot to a Windows laptop that is all locked down with an encrypted drive and is too heavily tracked to be able to access non-work email and such (which, oddly enough is required for work).

Anyone else have any experience with running Linux or another OS from a USB drive?  I imagine USB 3.0 would work much better.

Unlike SSD, the life cycle of a normal usb is very short. So, when you want to run on USB drive, the most important thing to do is to reduce the number of writing operations.
First, please use ext2 partition, instead of default ext3 or ext4
Second, please use RAM disk for anything required a high number writing operations like Firefox cache, /tmp etc.
Third, please choose a good USB like Corsair GT, Kingston HyperX ...

Nevertheless, in my experience, no matter what we try to optimize, the USB drive will die sooner or later when it reaches to its physical limit.
I like linear switches

Offline IvanIvanovich

  • Mr. Silk Underwear
  • Posts: 8199
  • Location: USA
Re: Running Linux from USB
« Reply #3 on: Fri, 31 January 2014, 12:40:18 »
I've always used light distro like crunchbang, and set to load the entire thing to memory when using live so it's not sluggish using the usb flash drive. Even system that have small memory like 1GB can do it as it is very very light on resources. Another good one, though it is geared towards disk management is partedmagic. It still have basics like a browser and etc and you can choose to load it to memory from the initial boot menu.

Offline blackbox

  • Posts: 725
Re: Running Linux from USB
« Reply #4 on: Sun, 16 March 2014, 11:43:11 »
I've always used light distro like crunchbang, and set to load the entire thing to memory when using live so it's not sluggish using the usb flash drive. Even system that have small memory like 1GB can do it as it is very very light on resources. Another good one, though it is geared towards disk management is partedmagic. It still have basics like a browser and etc and you can choose to load it to memory from the initial boot menu.

+1. Have you tried any other distros or thumb drives since you started the tread tuxsavvy?
Keyboards: Dell AT102W (matias standard clicky), Maltron two-hand 3D fully ergonomic keyboard (Vintage MX Black). CM QF XT (MX Grey) IBM model M

The LAN table!
http://geekhack.org/index.php?topic=62536.0