Quantcast
Jump to content

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


pivotCE

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!

link hidden, please login to view
.

Related posts:

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

  • Similar Topics

    • By Nick Payne
      I can stream ABC content using either the iView app on our LG G1 65" OLED, or via the iView Android TV app that is installed on a Chromecast with Google TV that is plugged into one of the G1 HDMI ports. If I stream content using the app on the TV, every few minutes there's a momentary (fraction of a second) interruption to both sound and video. If I stream the same content using the app on the Chromecast, I get no such interruptions. Both TV and Chromecast are using wired Ethernet connections to the same switch, so I can't see that these interruptions are due to a network problem, or I'd see them on both devices. It would seem to be a problem with the app provided on the TV. Other streaming services that we access via apps on the TV (Netflix, Stan, Amazon Prime, etc) do not show the same problem.
    • By majorusa
      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 GiovanniG
      Hi! Thank you for your kind help
      I'm looking for a way to show an IP camera to LG TV, I've updated it to the latest version (WebOS).
      I really hope it is possible without buying an external HDMI box, there is any way to obtain that or install apps from USB? Thank you a lot!
       
    • By News Reporter
      One of the major trends in consumer electronics, the ‘personalized user experience’ is something LG TV owners get to enjoy every day thanks to the abundance of convenient, customizable features and lifestyle services accessible via LG’s webOS platform.
      Since its launch in 2014, webOS has continued to evolve, offering increased functionality, services and options with each new update and version release. The latest webOS UI makes 2021 and 2022 LG TVs the ultimate home entertainment hubs – able to provide an ever-growing number of lifestyle apps, easier access to recommendations with the newly launched Life’s Good Hub and seamless mobile integration with effortless content mirroring.

      Revamped to help users navigate the expansive list of services on offer, the new webOS Home Screen now includes the Life’s Good Hub section, where users can discover some of the latest lifestyle apps at the press of a button. The lifestyle section provides a curated selection of up to fifteen apps centered on improving a specific aspect of life at home, such as fitness, wellbeing or staying connected. A real time-saver, the new feature enables users to find services suited to their unique tastes and preferences, ‘handpicking’ the most relevant apps from the approximately 2,200 currently available* on the LG webOS platform.
      Another important consideration for today’s users is the mobile experience and cross-device compatibility. LG’s ThinQ app has been updated to make it easier to mirror content from mobile devices to LG TVs. Users will enjoy being able to switch from watching on their mobile to watching on the TV when playing content from a range of different sources, including major streaming services, LG Channels and LG Fitness.

      The new lifestyle content that LG continues to bring to the webOS platform shows that the company understands and appreciates the ways in which consumers’ needs and lifestyles have changed in recent times. Take RemoteMeeting, for example: an easy-to-use video conferencing solution designed with the growing ranks of remote workers – and those wanting to catch up with friends and family in other places – in mind. Setting up the app on LG TV is fast and simple as it doesn’t require connection to a laptop or PC. From August 5, users signing up to RemoteMeeting will receive a free, 6-month membership, no matter where in the world they call home.

      In an uncertain world, self-care is just as important as connecting with others, and for that LG’s latest TVs support apps such as Insight Timer. The popular meditation app is engineered to help users combat anxiety, stress and poor-quality sleep through an array of uplifting and relaxing content and wellness tools. LG 2021 and 2022 TV owners can enjoy Insight Timer free for 12-months, granting them access to 150,000 guided meditations, soothing music tracks and more.

      Fitness is a key component of achieving personal wellbeing, too, which is why LG’s latest TVs offer several apps that can help users turn their living rooms into private workout studios. 305 Fitness, which features invigorating dance workouts with music from a live DJ and popular subscription workout apps such as MaxPro, Fiit TV and Flexit, will be arriving later this year.

      Additionally, LG’s webOS 22-powered TVs will soon be welcoming the hotly-anticipated IDOLLIVE app. A dream come true for the world’s legions of K-pop fans, the app lets users stream a plethora of compelling K-pop content, including live performances, exclusive interviews and music videos, and offers subtitles in five different languages (English, Japanese, Indonesian, Mandarin and Thai).
      With an intuitive UI and a growing library of apps and services spanning entertainment, smart home management as well as personal growth and wellbeing, LG TVs with webOS continue to redefine the ‘personalized user experience’ and deliver a better life at home to consumers worldwide.
      # # #
      * App availability varies per region.

      link hidden, please login to view
    • By Alex
      Build Your First App for webOS TV
      Web apps are written using HTML with copious amounts of CSS and JavaScript for style and functionality. Any modern Web browser can deliver this type of apps to the user.  With webOS TV, web apps are elevated to the lofty title of a first class citizen - web apps on webOS TV are given access to the same hardware, and OS features that typically available to native apps.
       
      Web apps built for webOS TV are very similar to standard web apps. Like the standard web applications, you can create web apps for webOS TV using standards based web technologies like HTML, CSS, and JavaScript. Anyone with experience in building web applications can easily start developing web apps for webOS TV.
       
      Now, just create your app using the CLI.
      Run the webOS TV CLI.
       
      Create new app with Enyo bootplate.
      ares-generate -t moonstone-2014 first-app Now you can continue developing and testing your app.
       
      Edit ./first-app/appinfo.json file. Update "id" and "title" properties in appinfo.json file with text editor as below.
      {
          "id": "com.yourdomain.app.firstapp",
          "version": "0.0.1",
          "vendor": "My Company",
          "type": "web",
          "main": "index.html",
          "title": "singlepane",
          "icon": "icon.png",
          ...
      }
       
      Package your app from app directory. If app is packaged successfully, you can see the created .ipk file.
      ares-package first-app  
      Run the webOS TV Emulator.
       
      Install your app to emulator. Be sure to use the correct file name for your package.
      ares-install com.yourdomain.app.firstapp_0.0.1_all.ipk  
      Launch your app on emulator.
      ares-launch com.yourdomain.app.firstapp

×
×
  • Create New...