Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mount Ramdisk (not initrd) at boot?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
pactoo
Guru
Guru


Joined: 18 Jul 2004
Posts: 553

PostPosted: Sun Aug 29, 2010 11:42 pm    Post subject: mount Ramdisk (not initrd) at boot? Reply with quote

Is it possible, to create and mount a ramdisk at boot time? Let's say, I would like /tmp to be a ramdisk - not tmpfs - so I need to set the size of the ramdisk somewhere and get it formatted it. Are there some scripts or config files where this could be done? Like similar to configure/setting up a crypted swap?
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2381
Location: Wisconsin (USA)

PostPosted: Mon Aug 30, 2010 12:11 am    Post subject: Reply with quote

I strongly recommend considering a loopback file instead of a ramdisk unless your main aim is to eliminate hard drive I/O completely (for energy or wear reduction, not performance reasons). I believe filesystem is still going to spend time doing cache/buffer processing anyway (not 100% sure though) unless you go with tmpfs or something like that, so you might as well make it disk backed if you can. This is easily set up right in fstab after you've created the loopback file.

You won't find a config option made for this, you'll have to write your own init script, modify one that runs early enough, or if you don't need it ready until login, make it part of local.start.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum