Howto make a ramdisk in ubuntu
I would like to make a huge multi gigabyte ramdisk to hold everything I do. I found this code:
Things Linux Can Do That Some Idiots Think It Can't Dohttp://bigbolshevik.blogs.friendster.com/a_man_and_his_penguin/ubuntu/index.html
lol... remember my post earlier on about how you can't create big ramdisks on Linux? It was under the title "Things Linux Can't Do". Well, I wanted to make a huge ramdisk for some reason, and I found that the HOWTOs on the web only told me how to create small ramdisks of a couple of megabytes each.
Linux Format magazine has just run a feature on little tricks you can use in Linux, and one of them is about how to create a ramdisk of any size! Here's the code they give for creating a 64 megabyte ramdisk:
sudo mkfs -t ext3 -q /dev/ram1 65536
sudo mkdir -p /ramdisk
sudo mount /dev/ram1 /ramdisk -o defaults,rw
Alter the number "65536" for a larger or smaller ramdisk, alter /dev/ram1 to another RAM device if you are creating multiple ramdisks, or for an extra speed boost you could probably alter "ext3" to "xfs".
Now, I've just got to find some reason to use it... :-)
Ok, like most things in the computer world, the above was bullshit. The guy never tested it. Larger sizes came back with an error of:
sudo mkfs -t ext3 -q /dev/ram2 1048576
mkfs.ext3: Filesystem larger than apparent device size.
Proceed anyway? (y,n) y
mkfs.ext3: Invalid argument while zeroing block 262128 at end of filesystem
And trying xfs did not help either
sudo mkfs -t xfs -q /dev/ram2 1048576
mkfs.xfs: No such file or directory
I wish people were more thorough.
23 comments:
yes it didn't work because you have to set the ramdisk size during boot, on the grub kernel options
http://www.vanemery.com/Linux/Ramdisk/ramdisk.html
in short words:
add the boot option ramdisk_size=xxxxx, where xxxxx is the size expressed in 1024-byte blocks (kB) and that will be the max size for your ramdisk. theoritically you dont need to specify the size in mke2fs too. the above link describes a way to do all this automatically during boot which *should* work under ubuntu too. be extra carefull with permissions. a very cool use of ramdisk if you have the ram/use for it would be to put the gimp swap files on the ramdisk, that should give it a lot of performance during image manipulations especially on large images with lots of layers. (haven't tried it though). good luck!
Thank you. I'll give it a try.
In kernels 2.6 you can use tmpfs, e.g
mkdir /tmp/space
sudo mount -t tmpfs tmpfs /tmp/space -o size=1G,nr_inodes=200k,mode=01777
WHEEEEEEEEEEEEEE
/dev/shm IS a ramdisk already available in Ubuntu (and Debian I hear). You can make a directory in there and then add a shortcut to nautilus.
eg; In the startup programs (System -> Preferences -> Startup Applications) add a command that just says this.
mkdir /dev/shm/RAM
Then restart and navigate to /dev/shm in Nautilus and drag the RAM directory into the sidebar to make a bookmark and voila! You now have an easily accessible Ramdisk that is HALF the size of your total RAM.
Howdy,
Do you guys watch movies in theater or on internet? I use to rent DVD movies from [b]Bigflix.com[/b]. Recently I discovered that we can watch all new movies on internet on day, they are released. So why should I spend money on renting movies??? So, can you guys please tell me where I can [url=http://www.watchhotmoviesfree.com]watch latest movie Transformers 3 2010[/url] for free?? I have searched [url=http://www.watchhotmoviesfree.com]Youtube.com[/url], [url=http://www.watchhotmoviesfree.com]Dailymotion.com[/url], [url=http://www.watchhotmoviesfree.com]Megavideo.com[/url] but, Could not find a good working link. If you know any working link please share it with me.
Thanks
There's an easier way outlined here:
http://www.techtach.org/using-and-mounting-a-ram-disk-in-ubuntu-the-easy-way
Don't put a size on your ramdisk it is totally dynamic. Even if you should reach the size of your defined ram disk you can still continue to write to it (until you have no more ram left).
With tmpfs on the other hand you can't, if it reaches it defined size it gives an error.
ram disk can only use memory, tmpfs can use swap also.
order xanax white circle xanax 2mg - 5 xanax get high
xanax for anxiety xanax online from india - xanax side effects suicidal thoughts
julian dating system http://loveepicentre.com/ free race car dating
lady boy dating http://loveepicentre.com/ speed dating athens ga
[url=http://loveepicentre.com/testimonials.php][img]http://loveepicentre.com/uploades/photos/4.jpg[/img][/url]
book dating internet 20 [url=http://loveepicentre.com/taketour.php]dating in manteno il[/url] speed dating in pasadena ca
dating dallas fortworth [url=http://loveepicentre.com/]are kat and steve o dating[/url] thinkers and feelers dating
sakura dating sim [url=http://loveepicentre.com/testimonials.php]the proper ways of dating[/url] spicy or sweet girls dating
java ebook reader http://audiobookscollection.co.uk/fr/Confidentialit/c2262/ free mathematical analysis ebook pdf [url=http://audiobookscollection.co.uk/de/Ecosystem-Change-and-Public-Health-A-Global-Perspective/p228088/]pdf catch ebook[/url] motivating behaviour change free download ebook
rocket ebook librarian http://audiobookscollection.co.uk/The-executive-s-role-in-knowledge-management/p106137/ free ebook brousing [url=http://audiobookscollection.co.uk/es/Intranets-y-Extranets/c1964/?page=5]final cut pro 6 ebook download[/url] academic library ebook collection policy
find rich clients ebook free http://audiobooksworld.co.uk/Rik-R-Tykwinski/m107534/ foxpro ebook download pdf chm [url=http://audiobooksworld.co.uk/Christianity/c1130/?page=2]northstar by harris computer systems ebook[/url] escape the outside world ebook
[url=http://audiobooksworld.co.uk/fr/How-to-Cheat-in-Photoshop-Second-Edition-The-art-of-creating-photorealistic-montages/p218167/][img]http://audiobooksworld.co.uk/image/4.gif[/img][/url]
bright light software http://buyoem.co.uk/product-36218/UltraMixer-Professional-3-0 small shop management software [url=http://buyoem.co.uk/category-100-101/Operation-Systems?page=2]ad ware free software[/url] survey software at shoppingcom
[url=http://buyoem.co.uk/fr/product-24957/Adobe-Master-Collection-CS4-Mac]Adobe Master Collection CS4 [Mac] - Cheap Legal OEM Software, Software Sale, Download OEM[/url] blackberry cell phone with gps software
[url=http://buyoem.co.uk/fr/category-100-108/Outils-de-l-Office?page=4][img]http://buyoem.co.uk/image/5.gif[/img][/url]
ble software pocket pc http://buysoftwareonline.co.uk/product-10651/EZ-Backup-Word-Premium best cd burner software [url=http://buysoftwareonline.co.uk/product-37355/Ultra-WMV-Converter-5-2]xp startup manager software[/url] blackthorne software reviews
[url=http://buysoftwareonline.co.uk/category-100-111/System-Tools?page=3]System Tools - Software Store[/url] gp software support
[url=http://buysoftwareonline.co.uk/product-36853/Couco-Audiobook-Player-1-0][img]http://buyoem.co.uk/image/2.gif[/img][/url]
mfj software http://buysoftwareonline.co.uk/de/product-37294/TweakNow-RegCleaner-Professional-4-0 accounting software for franchises [url=http://buysoftwareonline.co.uk/product-15005/gSync-1-0-Mac]smartphone weather software[/url] senior systems software
[url=http://buysoftwareonline.co.uk/product-18339/DRM-Dumpster-Disk-Mac]DRM Dumpster Disk [Mac] - Download OEM, Software Sale, OEM Software[/url] best vista defrag software
[url=http://buysoftwareonline.co.uk/fr/category-100-104/Extensions-de-logiciel?page=5][img]http://buyoem.co.uk/image/2.gif[/img][/url]
bestbuy trial software removal http://buysoftwareonline.co.uk/fr/product-34200/Electric-Rain-Swift-3D-PS-1-0-x64 xv9900 contact list software [url=http://buysoftwareonline.co.uk/product-14042/FileXaminer-2-6-Mac]snoop software memory access[/url] bible software for mac osx
[url=http://buysoftwareonline.co.uk/category-100-110/Internet?page=48]Internet - Software Store[/url] windows 7 64 bit audio software
[url=http://buysoftwareonline.co.uk/it/category-100-103/Grafica-e-Editoria?page=5][img]http://buyoem.co.uk/image/6.gif[/img][/url]
[url=http://englandpharmacy.co.uk/products/hyzaar.htm][img]http://onlinemedistore.com/10.jpg[/img][/url]
pharmacy technician certification training texas http://englandpharmacy.co.uk/products/tegretol.htm bcbs drug pharmacy online [url=http://englandpharmacy.co.uk/products/parlodel.htm]kolows pharmacy[/url]
tricare mailorder pharmacy http://englandpharmacy.co.uk/products/tadalis.htm washington depot pharmacy [url=http://englandpharmacy.co.uk/products/cystone.htm]cystone[/url]
eagle highland pharmacy http://englandpharmacy.co.uk/products/cytoxan.htm best pharmacy for no prescription adderall [url=http://englandpharmacy.co.uk/products/speman.htm]pharmacy school university wyoming[/url]
pharmacy tech deaconess hospital oklahoma city http://englandpharmacy.co.uk/catalogue/m.htm pharmacy jobs florida [url=http://englandpharmacy.co.uk/products/amitriptyline.htm]amitriptyline[/url]
100 free dating uk [url=http://freeinternetdating.info/love/sumer-love]sumer love[/url] sex dating personals casual nsa swingers
jenny sanford dating now http://freeinternetdating.info/brides/pictures-of-brides-stripping dating herpes single
dating online profile tip [url=http://freeinternetdating.info/seeking/date-seeking-latino-relationship-alot]dating enemas[/url] dating sex services
ten worse dating websites http://loveepicentre.com/advice/ dating salmon arm
brandon boyd and dating [url=http://loveepicentre.com/]senior lesbian dating in western pennsylvania[/url] dating shipping containers
seek intimacy dating site [url=http://loveepicentre.com/success_stories/]christian biker dating site[/url] how long between dating and wedding [url=http://loveepicentre.com/user/merczt/]merczt[/url] dating no spark
Post a Comment