Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 18 Apr 2014, 07:23
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to cache ROX thumbnails to a ram drive
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [5 Posts]  
Author Message
Bruce B


Joined: 18 May 2005
Posts: 11049
Location: The Peoples Republic of California

PostPosted: Wed 25 May 2005, 03:01    Post subject:  How to cache ROX thumbnails to a ram drive  

It seems to me that someone asked a question about how to prevent ROX from filling up the PUP Home device with thumbnails. I.e., can you cache the thumbnails to RAM?

I can't find the original post. In any event I've been playing around with using a RAM disk for caching the ROX thumbnails. It has been working fine.

Here is a HOW I DONE IT:

1) In the /etc/profile file I added the following lines BEFORE the exec xwin line at the bottom of the file:

# make a ram drive probably will be about 10 MB by default
mke2fs /dev/ram0
# make a mount point for the ram drive
mkdir /mnt/ram0
# mount the ram drive
mount /dev/ram0 /mnt/ram0

2) I deleted the /root/.thumbnails directory and made a link to the ram drive with the following commands

cd
rm -r .thumbnails
ln -s /mnt/ram0 .thumbnails

-----------------

It works fine and ROX caches the thumbnails to RAM. I also close Puppy by leaving X to the shell prompt and unmount the devices I mounted. Then I reboot.

I think it a good practice to unmount the RAM disk before rebooting. It is up to you.

I hope someone found this little HOW-TO useful

----------

Edited orginal post to add this comment:

To check size and available space in the RAM drive I type the following
command at the prompt:

df -h

Last edited by Bruce B on Wed 25 May 2005, 11:06; edited 1 time in total
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7047
Location: Perth, Western Australia

PostPosted: Wed 25 May 2005, 08:20    Post subject:  

yes, I wonder how much things get slowed down, having the thumbnails in /root, hence on the hard drive?
Back to top
View user's profile Send private message Visit poster's website 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Wed 25 May 2005, 15:07    Post subject:  

you could just symlink to a dir in ram ... maybe something like this:

put these lines somewhere in your startup files, for example, rc.local:

mkdir /tmp/.thumbnails
ln -sf /tmp/.thumbnails /root/.thumbnails

delete the /root/.thumbnails dir and your thumbnails will be in ram the next time you reboot
Back to top
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Wed 25 May 2005, 16:33    Post subject:  

of course, if you have an option 2 install, /tmp will not be ram
Back to top
View user's profile Send private message 
Bruce B


Joined: 18 May 2005
Posts: 11049
Location: The Peoples Republic of California

PostPosted: Wed 25 May 2005, 19:06    Post subject:  

GuestToo wrote:
you could just symlink to a dir in ram ... maybe something like this:

put these lines somewhere in your startup files, for example, rc.local:

mkdir /tmp/.thumbnails
ln -sf /tmp/.thumbnails /root/.thumbnails

delete the /root/.thumbnails dir and your thumbnails will be in ram the next time you reboot


Duh.

I really do appreciate your expertise and apparent genius. Thanks.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [5 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0457s ][ Queries: 12 (0.0082s) ][ GZIP on ]