LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Rep: Reputation: 138Reputation: 138
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: 21,124

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
*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: FreeBSD, Linux, Slackware, LFS, Gparted
Posts: 664

Original Poster
Rep: Reputation: 138Reputation: 138
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: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:22 AM.

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