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 Lgrump
      Is it just me or is the plex app just unusable on webos.  When I try to select dvr items with the magic remote they just don’t play.  I am not sure if this is a plex issue or an lg webos issue.  Anyone know which it is?
    • By JonoW
      Has anyone else had the same problem as me regarding the 'like' button on the YouTube app on my Oled77g7v? There is a thumbs up button and a thumbs down button for each video. These icons are supposed to be just an outline unless you click on them and then they fill in to show you have selected them. However, this no longer works on my TV. It is as if you never clicked. In fact, the 'like' icon is always pre_filled, no matter what I do. This used to work properly and it still works correctly on a Sony TV I have. Any ideas would be very welcome! 
    • By Aliaksandr Baranouski
      Hey guys,
      While I have Sonos Beam gen2 connected to my LG 65C12LA via HDMI (eARC) I can’t select any other output device e.g. bluetooth headphones. I can technically select it in TV menu for like 5 seconds, and then output switched back to HDMI (eARC). Is it a bug or feature? 
      Thanks in advance!
    • By News Reporter
      For the last few years, the pandemic has stopped us from visiting the amazing places and cultures this world has to offer. Thankfully, the era of staycations is coming to an end as travel continues to make a comeback. Last year, over 900 million tourists traveled abroad and this year, tourism is expected to reach 80 to 95 percent of pre-pandemic levels – according to the
      link hidden, please login to view. For those planning a trip overseas, LG SIGNATURE highly recommends two cities that reflect the brand’s embrace of art and tech while delivering unique value to visitors. By visiting these beautiful, distinct metropolises, LG SIGNATURE hopes people can rediscover the amazing possibilities of life so that they can look forward to the future.
      Everlasting Inspiration: Rome

      Among the most beautiful and fascinating cities in the world, magnificent Rome and its splendid ancient treasures and historic heritage are beyond compare. Located in the middle of the Italian peninsula, Rome was affectionately called the ‘Eternal City’ by the Romans because, no matter what the future held for them, they believed that the city would always remain standing. In truth, there’s no better place to embark on a journey of cultural and historical exploration than the storied streets of Rome which hold a timeless beauty uniquely developed, exquisitely characterized and perpetually sustained.

      Representing the impeccable harmony between meticulous craftsmanship and technological advancement, this glorious city never fails to inspire visitors from around the world with its influential architecture, iconic fine arts and historic legacy. Anyone lucky enough to step foot here will find themselves in a state of wonderment thanks to the expertly preserved ancient relics and masterpieces scattered across the city.

      Taking a stroll in such a historic setting is as educational and eye-opening as touring some of the world’s greatest museums. There’s only one place to soak up thousands of years of history in the city that Julius Caesar, Spartacus and Augustus all once called home.
      Photo Credit: ()
      Once a temple built to honor the Roman gods, the grandest Pantheon now stands as a beautiful Catholic church and a reminder of the remarkable architectural prowess of one of history’s most formidable empires, and how they were able to redefine the meaning of beauty through advanced Roman technology that was way ahead of its time. The use of high-quality concrete, flawless attention to detail and perfect proportionality has beautifully preserved the 2000-year-old Pantheon, the world’s largest unreinforced concrete dome.
      Photo credit: ()
      Behind the marvelous beauty it symbolizes, Trevi Fountain, Rome’s most famous water feature, also embodies the innovative technology of ancient times which for 400 years helped bring the city clean water from a spring 13 miles away.

      It is the ethos of art and technology that serves as the never-ending source of inspiration Rome possesses, and in a deep appreciation to the city’s embrace of such values, LG SIGNATURE has collaborated with world-renowned in a celebration of craftsmanship, innovation and inspiration.
      The City of Sprint and Spirit: New York City
      Our second destination is undeniably the most invigorating city on the planet, bustling with people throughout the year. The modern center of the world’s economy and a symbol of prosperity and timeless aesthetics, New York City thrives with life and passion. The city that never sleeps continues to enchant and inspire millions of people through an incredible melting pot of human potential and possibility.

      In New York City, one immediately encounters a world of endless movement, diversity and empowerment along with an array of iconic landmarks to admire, from the Statue of Liberty and the concrete jungle to the trove of museums, theaters and art galleries. Rich in cultural and ethnic diversity, the electric atmosphere of New York City will forever stimulate creativity and inspire innovation for people from all walks of life.
      Photo credit: ()
      Driven by the dynamics of art and technology, NYC’s Brooklyn Bridge is a must-see landmark emblematic of energetic movement. It also marks one of the biggest architectural accomplishments of the 19th century, thanks to engineering breakthroughs that allowed it to span across the East River and connect Manhattan and Brooklyn. Since its construction 140 years ago, the colossus bridge has been captivating visitors with an unsurpassable spectacle of sweeping landscapes.
      Photo credit: ()
      The Empire State building is another extraordinary site, the 102-story-tall skyscraper that best encapsulates NYC’s reputation for pushing the boundaries by holding the record of the world’s tallest building from 1931 to 1970. At its observation deck, one can’t help but admire the city’s incomparable skyline.
      Rome and New York all emphasize the harmony achieved as a result of embracing art and tech. With these destination recommendations, LG SIGNATURE hopes it can complete its mission of empowering inspiration, movement and harmony. Stay tuned to to see how LG SIGNATURE continues to inspire people by marrying the best of aesthetics and craftsmanship.
      # # #

    • By StanJ
      I've seen an older thread on this topic but it doesn't look like anyone found a solution to disabling the screen saver, so I'll try a new one.
      On virtually all my LG TV's (I have three OLED's and two LCD), the screen saver interferes with my music app (like Plex, Spotify or Amazon Music). I mainly use Plex for playback of my music which is stored on a central server (NAS) and from the app loaded on a Fire TV stick or cube. After about 20-30 minutes, the album art and other related music information (lyrics, song title, duration, etc) all goes black. If I run Plex (or Spotify) directly on the LG TV via the LG Content store app, the screen saver with fireworks always comes on in about 2 minutes. 
      I've tried all the different methods to disable the screen saver function including turning off the Timers, Auto Power Off,  HDD Storage, etc. I also tried opening the hidden menus by pressing the mute button 5 times but that menu didn't have anything relevant. 
      Interesting is that the screen saver doesn't come on when using Spotify on a Fire TV stick or if I playback music through a USB device. But i don't use those methods often, mainly Plex to access my music server where I have about 500 CD's stored in ALAC format.
      Has anyone found a way to disable the screen saver function? I know the logic for having it (to prevent OLED burn in) but I'm not leaving the same image on for more than the song duration (about 3-5 minutes).  It's annoying to check the screen for the a music title or see who is on only to find a black screen looking back. Thanks for any help.




×
×
  • Create New...