LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-30-2004, 10:27 PM   #1
Bd22
LQ Newbie
 
Registered: Jun 2003
Distribution: Debian, Freebsd
Posts: 15

Rep: Reputation: 0
Running a file from ram


I have a machine that constantly plays the same song in xmms over and over again is there anyway to make it stay in ram and not keep constantly re reading it off the hard drive????
 
Old 01-31-2004, 12:53 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Have you considered setting up a RAMDISK?


Cheers,
Tink
 
Old 01-31-2004, 06:14 PM   #3
Bd22
LQ Newbie
 
Registered: Jun 2003
Distribution: Debian, Freebsd
Posts: 15

Original Poster
Rep: Reputation: 0
ramdisk

How would i set that up in linux?
 
Old 02-01-2004, 01:05 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
Ummm ...

Create a mountpoint.
mkdir /mnt/ramdisk

Create a file-system
mke2fs /dev/ramX
(Size defaults to what's given in kernel confiugration
[if any] - if it's a module you can change the size
during creation ... )

Mount it
mount -t auto /dev/ramX /mnt/ramdisk



Cheers,
Tink
 
  


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
running 1280MB RAM 333mhz @ 400mhz problem with knoppix bucovaina78 Linux - Hardware 3 05-23-2005 05:07 AM
Running FC3 on a Dell XPS, having RAM issues sleepingfingers Linux - Laptop and Netbook 3 02-05-2005 07:06 AM
Running RH9 on 26Mb of RAM? albean Linux - Newbie 2 06-14-2004 01:26 PM
.ram file help ll3x4 Linux - Software 2 09-20-2003 08:42 PM
any linux distro can running in RAM , not need CD_ROM reading when running. wangcity Linux - General 3 09-18-2003 05:45 AM


All times are GMT -5. The time now is 06:26 PM.

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