LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 02-06-2005, 01:45 AM   #1
mooreted
Member
 
Registered: May 2003
Posts: 598

Rep: Reputation: 30
Load Ramdisk at Startup


Never mind. I just took a guess and used:
mke2fs /dev/ram0
mount /dev/ram0 /mnt/ramdisk

And added those commands to /etc/rc.d/rc.local. Fortunately my system booted fine and the ramdisk was created.

Firefox is really fas now!












I created a ramdisk to use for my Firefox disk cache. It works great. How do I make sure it is there when I reboot. I just took a guess and added this to fstab:

/dev/rd0 /mnt/ramdisk ext2 defaults 0 0

Will that work?

Last edited by mooreted; 02-06-2005 at 03:34 AM.
 
Old 02-06-2005, 07:10 AM   #2
bunnadik
Member
 
Registered: Jan 2005
Location: Ívik, Sweden
Distribution: MDK 10.1
Posts: 450

Rep: Reputation: 30
I don't think adding that to fstab will work. Entries in fstab get mounted in /etc/rc.sysinit and you don't
create the ramdisk until rc.local, which is a lot later in the boot chain.
Just put a mount command in rc.local instead.

- Peder
 
Old 02-06-2005, 12:56 PM   #3
mooreted
Member
 
Registered: May 2003
Posts: 598

Original Poster
Rep: Reputation: 30
Thanks. That's what I had to do. I also had to put a chmod 777 command in. Every time I rebooted it would only allow root access. Maybe not the most elegant solution, but it's working.
 
Old 02-06-2005, 01:07 PM   #4
mac57
Member
 
Registered: Nov 2004
Location: Texas
Distribution: openSUSE 10.3, Yoper Linux 3.0 , Arch Linux 2007.08
Posts: 253

Rep: Reputation: 30
This sounds interesting. How do you control how big the ramdisk is? It sounds from your post that it is already there - you are just making a file system on it and then mounting it. How did you *create* it in the first place?

All that having been said and done, how do you get Firefox to use it for disk cache? I would LOVE to learn how to do that. That definitely would speed up the browser.

Thanks!
 
Old 02-06-2005, 01:50 PM   #5
mooreted
Member
 
Registered: May 2003
Posts: 598

Original Poster
Rep: Reputation: 30
Here is the information for creating and sizing a ramdisk:

http://www.linuxfocus.org/English/No...rticle124.html

In the .mozilla/firefox directory there is a directory for the cache, I just removed that directory and did:

ln -s /mnt/ramdisk Cache

All requests to and from the symbolic link go to the ramdisk.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
RAMDISK: couldn't find valid ramdisk image starting at 0. iotc247 Slackware 10 12-10-2010 03:08 PM
the size limit of LILO to load a ramdisk golien Linux - General 0 03-31-2005 12:32 AM
Can't mount a ramdisk on startup Rikra Linux - General 1 10-24-2004 10:36 AM
creating a ramdisk runtime from another ramdisk code123 Linux From Scratch 0 10-11-2004 08:59 AM
Mandrake 10 installation cant load program into ramdisk Pimptillo Mandriva 3 04-01-2004 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 04:33 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration