Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have creat ram disk for chrome like this:http://www.kevingunn.org/?p=210

I' d like to use light read on ram disk. What should I do?

1) Most of our commands require superuser privileges, so we might as well just switch to root.

sudo su -

2) Edit your startup script:

nano /etc/rc.local

Right above “exit 0″ we’ll add the commands that need to run each time at startup:

mkdir /tmp/ram

mount -t tmpfs -o size=512M,mode=750 tmpfs /tmp/ram/

chown -R yourUserName /tmp/ram/ (replace “yourUserName” with your user name)

Save the changes and exit (ctrl-o, ctrl-x).

3) Edit your boot configuration:

nano /etc/default/grub

Change the GRUB_CMDLINE_LINUX line to read:

GRUB_CMDLINE_LINUX=”ramdisk=512000″

and again save and exit.

4) Reboot and verify that /tmp/ram now exists with “drwxr-x—” rights with you as the owner.

5) Relocate your existing browser (no need to do this as root) cache and link to it:

For Chromium:

rm -rf  ~/.cache/chromium

ln -s /tmp/ram ~/.cache/chromium

For Google Chrome:

rm -rf  ~/.cache/google-chrome/

ln -s /tmp/ram ~/.cache/google-chrome

For Mozilla Firefox:

The cache for Firefox can be found inside your Firefox profile (which includes a big random string in it). As long as you only have one Firefox profile you can do this:

cd ~/.mozilla/firefox/*default

rm -rf Cache

ln -s /tmp/ram Cache
share|improve this question
    
What do you mean by "light read"? If the disk is in RAM, it won't matter what kind of read/write activity you have; you literally won't get faster storage except by buying faster RAM. –  thirtythreeforty Oct 27 '12 at 7:25
1  
@gh403 light read is a rss client –  J.A.F Oct 27 '12 at 7:32

1 Answer 1

You can install Profile Sync Daemon. There is a tutorial: Click here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.