LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
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
 
LinkBack Search this Thread
Old 05-03-2009, 01:55 PM   #1
linuxisgreat
Member
 
Registered: Nov 2008
Posts: 53

Rep: Reputation: 16
Load LiveCD into ram


Hi

I was wondering if it was possible to load the entire contenses of the ubuntu liveCD into the ram so it doesn't need to access the CD as much.

I have 4GB of ram now.
 
Old 05-03-2009, 06:50 PM   #2
FewClues
Member
 
Registered: Jul 2005
Location: Mission TX
Distribution: Ubuntu, Mint
Posts: 119

Rep: Reputation: 19
I noticed alot of people reading but not replying. The answer is no, not that I am aware of. Unless of course you install a virtual machine on your current host and then mount Linux in the VM.
 
Old 05-03-2009, 07:08 PM   #3
mrclisdue
Member
 
Registered: Dec 2005
Distribution: Slackware -current, 13.37
Posts: 860

Rep: Reputation: 83
Actually, I'm sure it is possible, however it is beyond my scope, at the moment.

You would have to rebuild the live distro to accomplish this - perhaps even trim it down. There are many live distros already that load to ram, though I'm hesitant to recommend any as being *close* to ubuntu.

For some hints and links, check out this thread:

http://www.linuxquestions.org/questi...kware+live+ram

At the moment, it seems as though the idea is being "brainstormed" on the ubuntu forums, and it may become an option in the future. Apparently *Casper* had/has this option, though it's broken.

I'd be surprised if no one *out there* has actually made this happen, but a quick google or two didn't yield anything worthwhile.

cheers,

Last edited by mrclisdue; 05-03-2009 at 07:10 PM.
 
Old 05-03-2009, 07:08 PM   #4
thew00t
LQ Newbie
 
Registered: Feb 2004
Distribution: Slackware 9.1 and BSD 5.2
Posts: 28

Rep: Reputation: 16
In theory you could maybe make a ramdisk of the size needed, but you'd have to make the ramdisk every boot and do all the copying, and then I don't know how you would init the actual CD without perhaps adding a bootloader to use ramdisks...you know, this is probably more trouble than it is worth. I would recommend breaking down and getting a 2nd hard disk for Linux, or partitioning one you already have, as overall performance would be better (you do have 4 gigs of RAM and then you wouldn't have to load up some crazy RAM-based environment every time.
 
Old 05-04-2009, 12:15 AM   #5
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,215

Rep: Reputation: 56
As live cd/dvd builder myself, I might be able to add a little input. The way I make my live distro doesn't allow the whole OS to be copied to the ram. UnionFS is what I use to create a fork between the cd/dvd which is read-only, and a ram drive that uses some of the ram which is read-write, this allows me to compile, test and install software to the live cd/dvd, which of course you loose once you reboot.

While it wouldn't be impossible to create live distro that would run entirely from the ram, by the time it would copy across, remembering that the copy process would only be as fast as the slowest device, in this case the cd/dvd drive. It would probably be quicker to install the OS on another drive.
 
Old 05-04-2009, 05:05 AM   #6
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 229Reputation: 229Reputation: 229
Actually, MEPIS & Knoppix have had this feature for some time -- just add the kernel option "toram" in the GRUB menu at boot time.

I don't know for sure how this works; but since it is a kernel option added at boot, I strongly suspect it is a feature of the kernel. It was documented as a "cheat code" in Knoppix 5; & I discovered that it worked in MEPIS 7 by just trying it. I suggest you do the same.

As to time savings, the copy process in MEPIS 8 w/ a modern CD drive takes about 4 minutes, whereas an install takes 12 or so, not counting the time (including thinking it through) to partition. It is worth the extra boot time if you plan a long session w/ the live CD, are using a lot of s/w from the CD, or need to free the CD for another operation -- like burning an .iso to a CD.

<aside>
I have a work laptop that is infected w/ the XP virus which I wish I could figure out how to get to hibernate in Linux. Then I could run Linux nearly permanently very conveniently.
</aside>


W/ 4 GiB of RAM you could probably load the CD & use the UnionFS at the same time -- each want a minimum of 1 GiB. In MEPIS & Knoppix the kernel option for UnionFS is "aufs". Given that all 3 of these distros are Debian based, & that, at least IMO, this is a kernel feature, just try it. Of course, as fotoguy says, it all disappears at the next reboot.
 
Old 05-04-2009, 06:57 AM   #7
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,989

Rep: Reputation: 63
It doesn't work out of the box, but there is a (somewhat involved) procedure to re-spin a CD to work with the toram option. I've not tried it, but there's an article on it here: https://wiki.ubuntu.com/BootToRAM

I've also read that toram in mutually exclusive with a persistent storage partition (i.e. you lose the ability to save changes to a special partition on a USB stick).
 
Old 05-04-2009, 08:44 AM   #8
jakobcornelis
LQ Newbie
 
Registered: Feb 2009
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by linuxisgreat View Post
Hi

I was wondering if it was possible to load the entire contenses of the ubuntu liveCD into the ram so it doesn't need to access the CD as much.

I have 4GB of ram now.

I don't know about ubuntu, but you can do it with puppy - with less than 512 meg of ram.

jc
 
Old 05-05-2009, 04:13 AM   #9
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,215

Rep: Reputation: 56
Quote:
Actually, MEPIS & Knoppix have had this feature for some time -- just add the kernel option "toram" in the GRUB menu at boot time.
Didn't realise this, I haven't used a knoppix cd/dvd for 4 or 5 years now, I might look at this "toram" option for mine.
 
Old 05-05-2009, 07:38 AM   #10
hairywill
LQ Newbie
 
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
puppy linux, woof build system

Quote:
Originally Posted by jakobcornelis View Post
I don't know about ubuntu, but you can do it with puppy - with less than 512 meg of ram.

jc
Currently Barry Kauler, the developer of puppy is working on 'woof' a distro building system that can use the repositories of other distros to build an iso. He blogs about an ubuntu flavour of puppy.(perhaps someone else can post a link, I am not able to because I have never posted before). Whilst the alpha iso he has released is only 100MB, the build system could be used to include any ubuntu software you wanted, this should boot into RAM if you have enough.
 
Old 05-05-2009, 08:55 AM   #11
johnsfine
Senior Member
 
Registered: Dec 2007
Distribution: Mepis, Centos
Posts: 4,007

Rep: Reputation: 731Reputation: 731Reputation: 731Reputation: 731Reputation: 731Reputation: 731Reputation: 731
Quote:
Originally Posted by archtoad6 View Post
Actually, MEPIS & Knoppix have had this feature for some time -- just add the kernel option "toram" in the GRUB menu at boot time.

I don't know for sure how this works; but since it is a kernel option added at boot, I strongly suspect it is a feature of the kernel. It was documented as a "cheat code" in Knoppix 5; & I discovered that it worked in MEPIS 7 by just trying it.
Thanks.

I knew that worked in Knoppix. I don't know how I missed that in the Mepis documentation. It is documented at
http://www.mepis.org/docs/en/index.php/Cheatcodes

I haven't tried it yet, but since you tested it and it's documented, I assume it will work.

I use a Mepis liveCD as my primary tool for investigating sick Windows or Linux systems or salvaging data from them. I know that isn't the intent of a Mepis liveCD and is the intent of other liveCDs. But I know Mepis better, so it is easier to use unprepared (as I usually am when I interrupt ordinary work to deal with a sick computer).

I assumed that salvaging data to CD or DVD (rather than to a network share) would require using some other liveCD that was customized for that purpose and included the "toram" option. But maybe the Mepis liveCD covers more of what I need that I thought.
 
Old 05-06-2009, 03:50 AM   #12
fotoguy
Senior Member
 
Registered: Mar 2003
Location: Brisbane Queensland Australia
Distribution: KirraMail Live Email Server
Posts: 1,215

Rep: Reputation: 56
Quote:
I use a Mepis liveCD as my primary tool for investigating sick Windows or Linux systems or salvaging data from them. I know that isn't the intent of a Mepis liveCD and is the intent of other liveCDs. But I know Mepis better, so it is easier to use unprepared (as I usually am when I interrupt ordinary work to deal with a sick computer).
Yeah I've used my distro for quite a few of these too, I also wanted to encrypt my drives on my laptop and down load decryption keys from an ssh server, buy found no live distros that would do it, so I built my own that would.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu LiveCD won't load, crashes to CL MarlboroCowboyCub Linux - Newbie 7 06-24-2007 09:52 AM
LiveCD! Copy to RAM..? Hitboxx Linux - General 5 04-04-2007 03:55 AM
Mandriva ONE livecd won't load. Brianfast Mandriva 0 10-22-2006 12:32 PM
What's The Best Livecd Distro For Use With 128mb Ram? Ben Cook2 Linux - Distributions 2 08-04-2006 05:34 AM
Distro LiveCD that loads entirely to ram. Spiff1333 Linux - Distributions 9 01-19-2006 10:32 PM


All times are GMT -5. The time now is 03:47 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration