LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Running a file from ram (https://www.linuxquestions.org/questions/linux-software-2/running-a-file-from-ram-140579/)

Bd22 01-30-2004 11:27 PM

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????

Tinkster 01-31-2004 01:53 AM

Have you considered setting up a RAMDISK?


Cheers,
Tink

Bd22 01-31-2004 07:14 PM

ramdisk
 
How would i set that up in linux?

Tinkster 02-01-2004 02:05 AM

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


All times are GMT -5. The time now is 01:07 PM.