LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 05-08-2005, 05:42 AM   #1
SML
Member
 
Registered: Dec 2002
Location: US
Distribution: ARCH
Posts: 376

Rep: Reputation: 30
Linux Installation in RAM only !!??


With the reduced cost of RAM and the rumours that soon we will not have hard disks with moving parts only RAM for mass storage, would it be possible at present to install a linux distribution entirely onto RAM?

I would need to get say x4 1Gb sticks of RAM to give me a 4Gb bucket of memory.

Can it be done?

Would this be the ultimate fast machine?
 
Old 05-08-2005, 07:42 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
Isn't a LiveCD distribution doing that? It doesn't require a HDD, only a CD-drive.
 
Old 05-08-2005, 07:47 AM   #3
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 66
Re: Linux Installation in RAM only !!??

Quote:
Originally posted by SML
With the reduced cost of RAM and the rumours that soon we will not have hard disks with moving parts only RAM for mass storage, would it be possible at present to install a linux distribution entirely onto RAM?

I would need to get say x4 1Gb sticks of RAM to give me a 4Gb bucket of memory.
This is theoretically very easy. Just set up your root partition as a tmpfs partition with a 4Gb limit and install to that.

The problem is that the kernel used by most installers isn't very well suited to running a machine, so most installers need to reboot at some point during installation. The usual solution to this is to use a small ROMFS filesystem (on a ROM or non-volatile RAM chip) to store the /boot partition, including the kernel. You can then boot off that and complete the installation.

As to whether this makes a faster computer, this depends on what you want to do with it. One subtle point is that you can't swap unused memory out to disk to increase the amount of cache space available, so in some rare cases this may even slow you down.

The easiest solution to this problem is to buy a custom-made RAM-disk. These tend to be extremely expensive and store multiple terrabytes of data; they also include UPSes so that you can't accidentally delete them by cutting the power.

If you want to research this further, take a look at “thin-client” distributions. Most of these load the operating system into RAM over the network when booting up.
 
Old 05-08-2005, 07:55 AM   #4
SML
Member
 
Registered: Dec 2002
Location: US
Distribution: ARCH
Posts: 376

Original Poster
Rep: Reputation: 30
Thanks rjlee. I didn't realise that it was already a reality.

I am interested to do some research. Thanks for the hint on how to get started.

I believe that, one-day, RAM-discs will be the only option available.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RAM: Does linux require as much ram as Windows XP? hanzj Linux - Newbie 48 04-18-2007 12:14 AM
Win98SE Pentium166MMX/64MB RAM vs Linux AthlonXP+ 3000/512MB RAM : Lucent LT WinModem t3gah Linux - Software 2 04-22-2005 01:01 PM
RAM Memory Installation kermit Linux - Newbie 1 12-07-2004 08:57 AM
Kernel Panic: Installation of Slack 8.1 on 8mb RAM PC donbellioni Slackware - Installation 4 07-22-2004 09:48 AM
Will upgrading my ram affect my redhat installation cyberswami Linux - Hardware 6 02-24-2003 08:35 PM


All times are GMT -5. The time now is 05:27 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 Google+: linuxquestions
Open Source Consulting | Domain Registration