Quantcast
Jump to content

  • Join Today, It's Simple and FREE!

    Register now to gain access to our webOS user support forum. Once registered and logged in, you will be able to post a user to user support request topic to this site or reply to existing topics posted by other users. You can also take part in our other webOS user forums. You'll be able to customize your profile, receive reputation points, while also communicating with other members via your own private inbox, plus much more!

Sign in to follow this  
pivotCE

[pivotCE]Guide: Cleaning out the /var partition when full

Recommended Posts

Just like an older car, with any webOS device these days, you have to perform some maintenance to keep it running smoothly. And one of those maintenance items you have to do on your webOS device is cleaning out the “var” (variable data) partition.

If your webOS device has any of the following symptoms, the trouble could be that your “var” partition is full, or nearly full:

  1. Unable to download files, or play streaming media.
  2. Can’t install or update webOS apps.
  3. Trouble downloading new e-mails.
  4. Generally sluggish, or very slow to respond to gestures.


The “var” partition is an area of the disk used behind-the-scenes by the the webOS operating system. You don’t really notice it or interact with it on a day-to-day basis.

This is a standard directory location on almost all Unix and Linux-based operating systems, which webOS of course, is. What usually goes here are files used internally by webOS during the course of its operation, such as log files, temporary and not-so-temporary database files, and other files that webOS needs to just keep track of what it’s doing from minute-to-minute.

Now as you could guess, things like operating system log files could just get bigger and bigger over time, and without any user intervention, they could eventually take up the disk on a regular PC, or flash storage partition on a mobile device. There are already utilities built-in to webOS that automatically run once in a while to delete old log files to keep this from happening.

Normally, on more recent desktop Linux operating systems, the var partition is just a part of the root partition, and can usually take up the whole hard drive.

On our webOS devices, most (but not all) of our available storage is taken up by our media partition. When you have a TouchPad with 16GB of storage, only about 15GB is available for your own use, to store music, videos, photos, documents, and other files. The other 1GB or less is so that webOS itself can have some filespace for its own needs.

Out of that less-than-1GB, only 62MB (megabytes) is set aside for the var partition. Yeah, that’s not a lot, but it’s just a consequence of trying to give as much storage is feasible to you for your own files on your webOS device.

So besides the log files that webOS automatically trims once in a while there are other directories and files that webOS does not keep in check, that can grow over time and fill up the var partition. Over the years, different people have discovered that it is safe to remove files from the following directories:

1. Browser cache and cookies
Your web browser has to save files somewhere, and you guessed it – they go in the var partition.

2. /var/luna/data/downloadhistory.db
This file is just a listing of all of the different files that have been downloaded through your browser. On the TouchPad, you can clear this list using the browser.

Browser download list

But on phones, you don’t have that option to clear this from the browser.

3. /var/minicores
Files that go in here are stack traces of applications that have crashed. These are the kind of files that would have been useful to the folks developing webOS.

4. /var/context/pending
This directory would contain files that would get uploaded to Palm periodically, to help them spot operating system errors on devices already released. The files also controversially contain things like location data.

5. /var/palm/data/localstorage – http*.localstorage
Some websites use javascript features that create a little database on the users computer. Those database files go in this directory on webOS.

Now, if your webOS device is in a state where you cannot even launch a new app because the var partition is full, you will have to use novaterm or a similar utility to access the command line of your webOS device, and delete files from the var partition manually.

But if you have the Internalz file management app, and you can start it successfully, you can use that to navigate to each of these locations and take the following steps.

1. For browser cache and cookie files, open your webOS browser app, and access the Preferences from the menu. Press the buttons to Clear History, Clear Cookies and Clear Cache. Please note that clearing cookies will erase any passwords you may have saved for websites you might have to login to from the browser, such as Facebook or the webOSNation forums. You’ll just have to re-enter and re-save your login info the next time you visit those sites.

Browser preferences

2. For /var/luna/data/downloadhistory.db, just navigate to this directory in Internalz and delete it there. The webOS browser will re-create it for you next time you start the browser. Even if this file is 1MB or so, remember that is 1MB out of 62MB total, so it will definitely help.

3. For /var/minicores, navigate to this directory in Internalz, and delete any and all files found there. You may not find any files here. If you don’t, no problem.

4. For /var/context/pending, navigate to this directory in Internalz, and delete any and all files found there. You may not find any files here. If you don’t, no problem.

5. For /var/palm/data/localstorage, you don’t want to delete all files here – only consider ones that start with “http”. Even those, maybe don’t delete files of websites that you visit a lot, or you may lose features saved by the website on your webOS device. There may be A LOT of files here, so here is a trick in Internalz: tap the “Size” column so that the largest files appear at the top. The display will go from this:

Internalz unsorted

…to this:

Internalz sorted

Now you can easily delete the first few files beginning with “http” that will make the biggest impact in freeing up space for you. Keep deleting these files until you can’t stand it any more. 🙂

Now that you have freed up that precious space in your var partition, there is one final thing you need to do, if you haven’t already done it: If you had a ton of files in /var/context/pending, this means you probably haven’t installed the “EOM Overlord Monitor” from Preware. This is a patch/application that will prevent the scripts that fill up this directory from running. These scripts or background apps also try to send these files to Palm servers that no longer exist, so it makes sense to turn off these features on your device. Just install the app from Preware, and it will care of turning those things off.

With your routine maintenance complete, your classic model is ready for the road again!

Discussion thread here.

View the full article

Share this post


Link to post
Share on other sites


Sign in to follow this  

  • Similar Forum Topics

    • Question: files on USB device shown as ._xxx.jpg

      To have a picture  show on my new LG OLED55B87LC I've connected an external USB 3.0 hard disk (formatted with MS-DOS FAT32 on my iMac) that I've filled with hundreds of pictures from my Fotos App.  But when I open this drive on the TV the jpg pictures (numbered 1.jpg to 999.jpg) show up as ._1.jpg to ._999.jpg. When I scroll down at the end the list then the real jpg`s appear. So it looks like there's a copy of each file on this drive starting with  ._  ?? And all of them can't be shown on the TV - they look faulty ?  I've tried out with another drive / USB stick - just the same problem. Does anyone experience the same problems ? Do USB devices have to be formatted in a special way ? Any idea how to solve this ? 

      Ah - and beside this strange thing - is it normal that it last that long for the system of the TV to create all the thumbnail pictures to show on the TV ? When I scroll through a long list of pictures it lasts always a few seconds until the icons of the pictures really show the contents. This is really annoying because it makes the feature useless if I need several minutes to find a picture I'm searching for. Why is it that slow ? Is the USB connection only with 2.0 Standard ? Or is it a performance problem of WebOS ?   

      By rologoetz, in LG webOS Smart TV Questions

      • Awaiting best answer
      • 0 votes
      • 2 answers
    • Question: Does my TV have webOS - 42LM620T-ZE

      Hi, I have following LG Smart TV : Model: 42LM620T-ZE (Software version: 04.62.12  ;  SDK Version: 02.08) Does my TV have webOS ?? It was purchased in summer 2012 so I know its quite old now. Also how to check if this TV has Netcast (perhaps 3.0 or  4.0) ?? Let me know.

      By andy31, in LG webOS Smart TV Questions

      • Awaiting best answer
        
      • 0 votes
      • 3 answers
    • WebOS TV Firmware version

      Please post here firmware number for your WebOS set including your country or the country where you downloaded the firmware and the model of your tv set: - 3.23.24 - Romania- 47LB730v - 3.23.34 - Romania -47LB730v - 21.08.2014 by USB - 4.30.09 - Romania - 47LB730v - 29.08.2014 - OTA

      By majorusa, in LG webOS Smart TV Discussion

        
      • 1,357 replies
      • 743,236 views
    • Question: Zee5 app not available on older webosTV

      Why Zee5 app is not available for older webos TV . Tv Model No :LG42LB750T Region : India 🇮🇳

      By Gs_pot, in LG webOS Smart TV App Questions

      • Awaiting best answer
      • 0 votes
      • 0 answers
    • Reporting mechanism for regressions in webOS 4.10.05

      Is there a mechanism for reporting regressions in 4.10.05? After installing 4.10.05 on my 65" C8 I have a number of regressions with youtube / netflix and DVD playback. I exchanged the TV to Costco and have remained at webOS 3.0 with no issues. I worked on Mac OS X for 15 years at Apple and I would suspect that LG has a mechanism in place to report issues.

      By Guy Madison, in LG webOS Developers

      • 1 reply
      • 189 views


×