LinuxQuestions.org
Help answer threads with 0 replies.
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 02-24-2003, 04:41 AM   #1
nakkaya
LQ Guru
 
Registered: Jan 2003
Location: Turkey&USA
Distribution: Emacs and linux is its device driver(Slackware,redhat)
Posts: 1,398

Rep: Reputation: 45
creating a ramdisk


how can i create a ram disk(first question) and then load my favorite progs there (mozilla licq xmms) during boot and execute them at light speed
 
Old 02-24-2003, 05:41 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603Reputation: 3603
There's different ways depending on what you configured your kernel with. If you have got ramdisk:
"dd if=/dev/zero of=/dev/ram bs=1k count=2048" would create a 2MB ramdisk. Now make an FS on it: "mke2fs -vm0 /dev/ram 2048". Cp anything in you want. OTOH if you've got tmpfs, you just need a line in rc.local or fstab like: "tmpfs /dev/shm tmpfs size=64m,mode=0700" (from rc.local, fstab doesn't work for me). If you don't set size it'll grow automagically. Pretty neat.
Bootfloppies/CDRs often use ramdisks, so it's not hard to put it in your init scripts, same goes for tmpfs.

I don't use (opinion edited out) M0zillah so I wouldn't know how BIG it actually is, I prefer Opera/Dillo/Links, I don't know if it would be beneficial, especially since network speed usually is more of a bottleneck here. For Xmms I don't think using ramdisk/tmpfs is beneficial cuz it needs to read (part of the mp3's it's playing into RAM, meaning it's not the app that's the usual bottleneck, but disk I/O. But that's just my ideas, try it out, and if it IS lightningfast, post your results!
 
  


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
RAMDISK: couldn't find valid ramdisk image starting at 0. iotc247 Slackware 10 12-10-2010 04:08 PM
Creating a ramdisk tested with 12G of ram and works narmida Linux - General 3 12-27-2005 07:02 PM
creating a ramdisk runtime from another ramdisk code123 Linux From Scratch 0 10-11-2004 09:59 AM
Option of tmpfs Instead of RAMdisk when Creating Bootdisk fbagnato Linux - Newbie 2 03-27-2002 01:35 PM
Creating ramdisk for directory tree. vaibhavk Linux - General 0 01-17-2002 12:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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