LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-05-2013, 05:23 PM   #1
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,374

Rep: Reputation: Disabled
would liveCD on USB be faster than USB as hard drive?


So I've installed my distro on a USB stick, intending the stick to be my hard drive. I already regret it, because I didn't realize it would be this slow (especially when writing). Applications, especially my internet browser, keep freezing for short periods of time. (I haven't put a swap space on this stick, if it would help.)

I had been told about using a stick to make a liveCD instead of a normal hard drive installation, but chose not to. If I did run a USB liveCD instead, would it probably run any faster on account of loading itself into the RAM?
 
Old 04-05-2013, 09:29 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
You have a lot of issues here.

One is slowness of installed usb. As to why I can't say. My usb installs work quite well on many usb flash drives. I had one USB 3.0 that just would not work. Might be that you have an odd usb or might be a ram/swap issue. We might find an answer for that if you want.


Second issue is the "Toram" or other boot option that may be available to your distro. I forget the other names but many common distro's can be loaded to ram. Generally they are all live cd/dvd versions. The reason is that way back when Knoppix was making his live cd's, he found that he could put something like 3G worth of data in a cd in compressed form. That serves two uses. One is you move less data over slow cd access. Second is you can load to ram and only use 700 mb.


Last of your issue is a live cd to usb. The live to usb almost always still uses a compressed file that may increase speed on some few systems. In general, the usb speed ought to be OK for a common distro. If the bottleneck is the usb for some reason then moving only a compressed file or part of to the ram would be faster than moving the expanded part to ram to use.
 
1 members found this post helpful.
Old 04-06-2013, 08:43 AM   #3
bloody
Member
 
Registered: Feb 2013
Location: Berlin
Distribution: Gentoo, Debian
Posts: 172

Rep: Reputation: 25
A live-cd is usually using a squashfs compressed image which reduces the size of the installed apps/data and therefor reduces the amount of data that must be read, so it will enhance e.g. booting or starting big apps like Firefox.

The "toram" option offered by some live-cds offers to load the whole squashfs file into RAM in one go before proceeding. Once that is done, the rest (booting / launching apps) will fly at lightspeed.

Eventually, if you write alot, a faster USB stick is still recommended because some cheaper sticks are really very slow at this and the differences between USB stick models are sometimes huge.

I've installed a regular system on a USB stick which can read about 28 MB/s and write about 15 MB/s which isn't super-fast but alright, i can live with that. Some sticks are even ten times faster than that while others are ten times slower..
 
Old 04-07-2013, 08:27 AM   #4
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,374

Original Poster
Rep: Reputation: Disabled
I don't suppose I could put a liveCD on a stick that already had a Linux operating systemn installed, could I?
 
Old 04-07-2013, 09:39 AM   #5
bloody
Member
 
Registered: Feb 2013
Location: Berlin
Distribution: Gentoo, Debian
Posts: 172

Rep: Reputation: 25
You can also use e.g. GRUB to load a plethora of Linux installations from the stick, just like if they were installed on a local harddisk. Additional Live-CDs copied to the stick can also be booted but require special entries in the grub.cfg. I currently don't remember the exact formula(s) and those also depend on how the particular Live-CD was designed in the first place. But it's possible..
 
1 members found this post helpful.
Old 04-07-2013, 03:29 PM   #6
newbiesforever
Senior Member
 
Registered: Apr 2006
Location: Iowa
Distribution: Debian distro family
Posts: 2,374

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by bloody View Post
You can also use e.g. GRUB to load a plethora of Linux installations from the stick, just like if they were installed on a local harddisk. Additional Live-CDs copied to the stick can also be booted but require special entries in the grub.cfg. I currently don't remember the exact formula(s) and those also depend on how the particular Live-CD was designed in the first place. But it's possible..
So is it as simple as installing the liveCD on the stick and then adding the GRUB entries for my desired liveCD to the existing GRUB menu?

To anyone wanting to install a distro on a USB stick as a hard drive, I would not recommend the Kingston Datatraveler model.

Last edited by newbiesforever; 04-07-2013 at 09:17 PM.
 
Old 04-09-2013, 02:15 PM   #7
bloody
Member
 
Registered: Feb 2013
Location: Berlin
Distribution: Gentoo, Debian
Posts: 172

Rep: Reputation: 25
Quote:
Originally Posted by newbiesforever View Post
So is it as simple as installing the liveCD on the stick and then adding the GRUB entries for my desired liveCD to the existing GRUB menu?
You do need to pass the correct commands/params, e.g., the root file system is not some /dev/xxx but a squashfs file. Can sometimes be a bit tricky to figure out. Like i said, it also depends on the exact distro.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I own a laptop without a hard drive. What's the fastest livecd/usb/whatever solution? treewojima Linux - General 6 12-26-2011 08:06 AM
Install slackware on a USB drive without creating an USB livecd Barx Slackware 4 06-28-2010 01:31 PM
Installing Debian on USB Hard Drive/USB Jump Drive kushalkoolwal Debian 10 02-26-2009 01:46 PM
Linux on a USB hard drive without USB-FDD BIOS option jaro Linux - Hardware 1 07-15-2005 02:12 AM
Linux on a USB hard drive without USB-FDD BIOS option jaro Linux - Hardware 6 05-27-2004 11:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration