LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 06-23-2003, 08:39 PM   #1
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
Question How to create RAM drive?


Hello everybody!

I would like to create a RAM drive using my Slackware 9. I tried compiling the RAM disk option and set the size as I wish (of course in Mx1024) in to the kernel.

I check the ramdisk.txt which comes with the kernel doc, that doesn't come helpful.

Basically, I want a RAM drive so I can mount it like any other drive. And use it like any other drive. Specifically, I want to do video editing/recording (maybe not a smart idea for recording .

Oh yuh, one more question. I have 1GB of RAM on my comp. Why is /proc/meminfo reporting 9024XX(can't remember the exact number)?

Thanks in advance.

Kheng Teong.
 
Old 06-23-2003, 09:42 PM   #2
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
My /var/log/demsg says:
Quote:
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
Those disks are accessible in /dev/ram0 through /dev/ram15 and they can be formatted and mounted just like a floppy disk or something.
 
Old 06-23-2003, 10:13 PM   #3
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Blog Entries: 4

Original Poster
Rep: Reputation: 45
In other words I just need to compile the kernel to support RAM disk and access it by mounting /dev/ramX.

So after booting up my Linux, just format it using
mke2fs [-j] /dev/ram0
and then
mount /dev/ram0 /mnt/ramdrive
and then I would able to use it as I wish.
Please correct me if I am wrong or missing out any steps.

Thanks.
 
Old 06-23-2003, 10:32 PM   #4
zmedico
Member
 
Registered: Feb 2002
Location: Mission Viejo, California, USA
Distribution: Gentoo
Posts: 707

Rep: Reputation: 30
Quote:
Originally posted by carboncopy
In other words I just need to compile the kernel to support RAM disk and access it by mounting /dev/ramX.
Yes, you can configure the ramdisk parameters before you compile the kernel. Also, you can specify ramdisk parameters as kernel parameters at boot time. See /usr/src/linux/Documentation/kernel-parameters.txt

Last edited by zmedico; 06-23-2003 at 10:34 PM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
hard drive failing, how can I create an image of my drive? oily_rags Suse/Novell 6 07-07-2005 02:19 PM
Create a ram disk consty Linux - Newbie 9 05-19-2005 08:06 AM
Noob question... how do I create a RAM floppy? Eerath Slackware 1 03-23-2005 03:39 PM
Virtual RAM Drive? Bigun Linux - Hardware 1 10-05-2002 05:17 AM
Linux Ram Drive Ron_W Linux - General 3 07-24-2002 08:50 PM


All times are GMT -5. The time now is 08:47 AM.

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