I'm In Need of a Null Directory
| Author |
Message |
|
joany
MEPIS Enthusiast
Joined: Mon Feb 12, 2007 1:45 pm Posts: 4871 Location: Penn's Woods Has thanked: 537 times Have thanks: 398 times
|
Post # 298293
 I'm In Need of a Null Directory [Solved]
I would like to create a null directory similar to /dev/null that I could symlink to the ~/.thumbnails/large and ~/.thumbnails/normal directories. Over the course of a day, Dolphin fills both of these directories with garbage. I tried changing permissions to make them read-only, but then my ~/.xsession-errors file fills up as Dolphin repeatedly tries to write to read-only directories.
My aim is to let Dolphin write to ~/.thumbnails directories, but make both of them black holes. Does anyone have a suggestion on how to do this?
_________________ SimplyMEPIS is SimplyTHEBEST Mepis 8.5; 2.6.32-1-mepis-pae (Internal 2.6.32-12); 4GB RAM 2.4GHz AMD Athlon 4600+ NVidia GeForce 6150 LE; 304.51 Display Driver
|
| Thu Apr 05, 2012 7:50 pm |
|
 |
|
GoManutd
MEPIS Guide
Joined: Mon Jun 30, 2008 8:06 pm Posts: 2904 Has thanked: 48 times Have thanks: 368 times
|
Post # 298300
 Re: I'm In Need of a Null Directory
symlink the large and normal directories to /dev/null might work...
EDIT: if you have THAT MANY files being added to these directories, setting these to some black hole like /dev/null or something similar may result in a performance hit.
using a tool like bleachbit, like rich suggested, may well be the better option
Last edited by GoManutd on Thu Apr 05, 2012 9:29 pm, edited 1 time in total.
|
| Thu Apr 05, 2012 9:03 pm |
|
 |
|
richb
Administrator
Joined: Wed Jul 12, 2006 2:17 pm Posts: 8752 Location: Rochester NY Has thanked: 581 times Have thanks: 956 times
|
Post # 298303
 Re: I'm In Need of a Null Directory
Off topic, but I use bleachbit to delete the .thumbnail directories on a regular basis, along with other crud that builds up.
_________________ Forum Rules Guide - How to Ask for Help Link to Wiki Rich
Acer Laptop 5750G: Intel i5, 4 GIG mem, nVidia GT540M/Intel integrated graphics Kubuntu 13.04, KDE 4.10.2 M12 Alpha 2 in VirtualBox
|
| Thu Apr 05, 2012 9:11 pm |
|
 |
|
matelot
MEPIS Rules!
Joined: Sat Jul 15, 2006 4:47 am Posts: 298 Has thanked: 47 times Have thanks: 20 times
|
Post # 298311
 Re: I'm In Need of a Null Directory
I just used Bleachbit, only to find that most web sites (using Seamonkey) then visited failed to load graphics. Logging off and on again immediately solved that.
_________________ Asus K55A i7 laptop 6GB RAM, 500GB SATA HDD, turbo-boost 3.1Ghz:: Win7 64 bit - eek!:: Intel graphics, UEFI and GPT:: HP Deskjet 3050 wireless::
|
| Fri Apr 06, 2012 6:39 am |
|
 |
|
richb
Administrator
Joined: Wed Jul 12, 2006 2:17 pm Posts: 8752 Location: Rochester NY Has thanked: 581 times Have thanks: 956 times
|
Post # 298312
 Re: I'm In Need of a Null Directory
Bleachbit is highly configurable. Apparently an option was enabled that caused your issue. Not sure which, one, maybe browser cache.
_________________ Forum Rules Guide - How to Ask for Help Link to Wiki Rich
Acer Laptop 5750G: Intel i5, 4 GIG mem, nVidia GT540M/Intel integrated graphics Kubuntu 13.04, KDE 4.10.2 M12 Alpha 2 in VirtualBox
|
| Fri Apr 06, 2012 6:41 am |
|
 |
|
joany
MEPIS Enthusiast
Joined: Mon Feb 12, 2007 1:45 pm Posts: 4871 Location: Penn's Woods Has thanked: 537 times Have thanks: 398 times
|
Post # 298314
 Re: I'm In Need of a Null Directory
I set up symlinks to /dev/null and that seems to work, although I'm a little leery about changing the attributes from directories to files. I'll keep a close eye on ~/.xsession-errors to see if errors pile up as a result. EDIT: Duplicate copies of the same .png files pile up in the ~/.thumbnails directories, causing them to bloat beyond reason. This seems totally pointless, and performance doesn't suffer by defeating this. I believe ~/.thumbnails is a carry-over from the time when computers were slow and RAM was limited. With today's fast, modern computers with huge RAM capacities, it just isn't necessary to cache image files this way. I used bleachbit once, and my desktop immediately became unstable. Restoring partition images of /home and / fixed the problem, but I don't want to repeat that experience.
_________________ SimplyMEPIS is SimplyTHEBEST Mepis 8.5; 2.6.32-1-mepis-pae (Internal 2.6.32-12); 4GB RAM 2.4GHz AMD Athlon 4600+ NVidia GeForce 6150 LE; 304.51 Display Driver
Last edited by joany on Fri Apr 06, 2012 8:41 am, edited 1 time in total.
|
| Fri Apr 06, 2012 7:36 am |
|
 |
|
richb
Administrator
Joined: Wed Jul 12, 2006 2:17 pm Posts: 8752 Location: Rochester NY Has thanked: 581 times Have thanks: 956 times
|
Post # 298315
 Re: I'm In Need of a Null Directory
Never had an issue with bleachbit running as user or root.
_________________ Forum Rules Guide - How to Ask for Help Link to Wiki Rich
Acer Laptop 5750G: Intel i5, 4 GIG mem, nVidia GT540M/Intel integrated graphics Kubuntu 13.04, KDE 4.10.2 M12 Alpha 2 in VirtualBox
|
| Fri Apr 06, 2012 7:58 am |
|
 |
|
joany
MEPIS Enthusiast
Joined: Mon Feb 12, 2007 1:45 pm Posts: 4871 Location: Penn's Woods Has thanked: 537 times Have thanks: 398 times
|
Post # 298316
 Re: I'm In Need of a Null Directory
Users' experiences are somewhat mixed, as doing a search on "bleachbit" in these forums shows.
_________________ SimplyMEPIS is SimplyTHEBEST Mepis 8.5; 2.6.32-1-mepis-pae (Internal 2.6.32-12); 4GB RAM 2.4GHz AMD Athlon 4600+ NVidia GeForce 6150 LE; 304.51 Display Driver
|
| Fri Apr 06, 2012 8:46 am |
|
 |
|
richb
Administrator
Joined: Wed Jul 12, 2006 2:17 pm Posts: 8752 Location: Rochester NY Has thanked: 581 times Have thanks: 956 times
|
Post # 298318
 Re: I'm In Need of a Null Directory
I suspect it is what options one chooses to enable. Some are quite draconian in "cleaning". And I would agree if you enable an option that may cause serious issues the application is not that safely used. Keep us posted on the result of your /dev/null solution. I dislike the buildup of those thumbnail files as well and a different solution would be welcome.
_________________ Forum Rules Guide - How to Ask for Help Link to Wiki Rich
Acer Laptop 5750G: Intel i5, 4 GIG mem, nVidia GT540M/Intel integrated graphics Kubuntu 13.04, KDE 4.10.2 M12 Alpha 2 in VirtualBox
|
| Fri Apr 06, 2012 8:52 am |
|
 |
|
kmathern
MEPIS Enthusiast
Joined: Wed Jul 12, 2006 2:26 pm Posts: 5159 Has thanked: 271 times Have thanks: 1406 times
|
Post # 298321
 Re: I'm In Need of a Null Directory
You might create a simple script to remove files in the ~/.thumbnails/large & ~/.thumbnails/normal directories (like the one below) and have it run as a cron job at whatever interval you want (daily, hourly, every 15 minutes, etc). I don't have that much experience in setting up cron jobs but it doesn't look too difficult. I found one guide here: http://www.cyberciti.biz/faq/how-do-i-a ... unix-oses/. Btw, is there a KDE4 program for creating/managing cron jobs?
|
| Fri Apr 06, 2012 9:24 am |
|
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
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 post attachments in this forum
|
|