LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-27-2007, 09:34 PM   #1
/bin/false
LQ Newbie
 
Registered: Aug 2003
Location: Calgary, Alberta
Distribution: CentOS / RHEL / Slack
Posts: 7

Rep: Reputation: 0
Run from RAM...


Good Evening...

I am currently working on a project at the office where we are trying to get two of our LBHA's into a solid state device.

Currently I have two SuperMicro 1u's with 1GB of RAM and a 4GB CF card. I have installed CentOS 5.0 on the CF and it works great but CF cards are rated at no more than one million read/writes to the device before they fail.

Is there a HOWTO or a site that I could visit to find out how to get linux to run from RAM and everytime the system is rebooted it will load a fresh copy of Linux into RAM eliminating the possiblity of a failed hard disk.

Thanks in advance!

/bin/false
 
Old 04-27-2007, 09:40 PM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Isn't CentOS too big to fit into the available RAM? I think that looking into Knoppix may offer some pointers on how to do it. And maybe you could run a liveCD instead of centOS? That would eliminate the CF card entirely - seems the surest way of preventing it from failing.
 
Old 04-27-2007, 10:16 PM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
There is Gigabyte's I-RAM. It uses regular memory with battery backup that connects through SATA. It does not work yet in Linux because the device is missing a few SATA commands in its firmware. Another solid-state hard drive is E-Disk from Bitmicro.

There are other types of non-volatile memory. There is FRAM (ferroelectric RAM). It has unlimited writes. One problem is its maximum capacity is 512 KB. Then there is MRAM and it has the same capacity limits. Companies still think Flash is the best which it is not.

Yes, it is possible to fit a whole OS in RAM. You need to use a 64-bit OS and use ECC 16 GB or more of RAM. Look up /dev/ram on the internet.
 
Old 04-27-2007, 11:25 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Fedora 7's live cd is under 800 mb so I would think one could easily run in 4gb. You might look at how Fedora 7 is doing it because it has the option to run from ram(the version I tried was 64bit). The initial loadup is significant but once up it runs well. Bare minimum is 1gb ram.

Edit:

From the looks of (below) it works for 32bit too.

http://shots.osdir.com/slideshows/sl...se=803&slide=4

Last edited by lazlow; 04-27-2007 at 11:32 PM.
 
Old 04-29-2007, 05:27 PM   #5
/bin/false
LQ Newbie
 
Registered: Aug 2003
Location: Calgary, Alberta
Distribution: CentOS / RHEL / Slack
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks very much for the feedback, I really appreciate it.

It appears it could be a little more difficult than we intended so we may just have to look at alternatives...

Thanks again!

/bin/false
 
Old 04-30-2007, 07:02 AM   #6
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
What's an LBHA? It's possible to boot a system off of the network.

An easier thing since you already have it booting fine off the CF card is to simply configure things so that it doesn't write to the card much. Modify /etc/fstab to mount the root partition as ext2 insteand of ext3 and mount it with the "noatime" option. That will get rid of periodic writes for journalling and file (read) access time updating. Remove any references to swap partitions, of course.

Then, add entries in /etc/fstab to mount several directories in tmpfs (in RAM). Here's what I use:

none /tmp tmpfs defaults 0 0
none /var/run tmpfs defaults 0 0
none /var/lock tmpfs defaults 0 0
none /var/tmp tmpfs defaults 0 0

After those modifications, your existing Linux install will not write much to the disk.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Seeking a distro to run on 8 MB RAM jgombos Linux - Distributions 6 11-02-2006 08:04 AM
distro to run X on a P133 48 MB ram macubo Linux - Distributions 6 01-24-2006 05:15 AM
Is it possible to make linux run with xwindow on a 32 mb of ram system VIDEB Linux - Newbie 8 08-02-2005 04:01 PM
how much RAM do i need to run a small server? Necronomicom Slackware 4 07-30-2004 11:43 AM
Best Linux to run on i386 laptop with 500mb hd and 16mb ram Eits0 Linux - Distributions 6 08-19-2002 03:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:54 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