would liveCD on USB be faster than USB as hard drive?
Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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..
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..
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.