LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 08-06-2012, 10:11 PM   #1
patrick295767
Member
 
Registered: Feb 2006
Distribution: Debian
Posts: 275

Rep: Reputation: 39
Squeeze: Simplest method to create a 5MB Ramdisk?


Hello,

I would be interested to create a Ramdisk of 5Mb. Small size is fine.

The problem is that it is always complicated and involve mknod, ... and complex operations. Simplicity is sometimes convenient. I would be interested to eventually apt-get package that handle it with a little dependency or a cmd with more simplicity than the one below:

https://securfox.wordpress.com/2009/...te-a-ram-disk/

Your advices concerning an eventual solution, better, would be greatly helpful for my box .

I am looking forward to reading you.
Thanks

Last edited by patrick295767; 08-06-2012 at 10:13 PM.
 
Old 08-07-2012, 01:38 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,353

Rep: Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042Reputation: 1042
*Much* better to use tmpfs - see the bottom of that link you posted.
 
Old 08-09-2012, 10:23 AM   #3
patrick295767
Member
 
Registered: Feb 2006
Distribution: Debian
Posts: 275

Original Poster
Rep: Reputation: 39
Quote:
Originally Posted by syg00 View Post
*Much* better to use tmpfs - see the bottom of that link you posted.
Would you know a deb package that configure all those things alone? Or maybe a bash script?

- I have try to find, but no results
 
Old 08-09-2012, 10:27 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047Reputation: 4047
There is nothing to install or configure. It is simple as that:
1. Create a mountpoint for your RAM-disk:
Code:
mkdir ramdisk
2. Mount the tmpfs to the mountpoint:
Code:
mount -t tmpfs -o size=5M tmpfs ramdisk
Now you can use the RAM-disk.
 
  


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
[SOLVED] Need to create a bootable CD of my current system (easy method) trinityforce Linux - Newbie 1 10-02-2011 04:14 PM
Cant create ramdisk in cblfs grumpy.biatch Linux From Scratch 9 02-02-2011 07:39 AM
RAMDISK: couldn't find valid ramdisk image starting at 0. iotc247 Slackware 10 12-10-2010 03:08 PM
howto create linux to boot from ramdisk only?? pingvina Linux - Software 2 02-09-2006 01:17 PM
kernel build create initial ramdisk htamayo Linux - Software 1 01-07-2005 01:57 PM


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