View Full Version : [ubuntu] u14.04 warning /var only 46MB remaining. /var is 1GB cache 75% What do I delete?
nu2u904
June 26th, 2014, 03:16 AM
Used gparted to shrink xp drive by 2/3, gave 1/2 to xp leaving 140GB for u14.04; set up partitions for / 25GB, /home 20 GB, /var 1GB, /usr/ 20GB , /tmp 1 GB;free 70GB . Only / is a physical partition. I understood I only needed max .5GB for /var. How can I expand /var.? What files in /var/cache can I delete. This is fresh install and there are no old packages? How do I recognize a package? How critical is this warning? xp is currently unbootable error msg: missing or corrupted file: C:windows\system32\config\system? Can I access this file from u14.04 and replace it with another copy?
Donald
ibjsb4
June 26th, 2014, 09:44 AM
~$ sudo du -hs /var/*
3.5M /var/backups
100M /var/cache
651M /var/cache.old
4.0K /var/crash
4.0K /var/games
158M /var/lib
4.0K /var/local
0 /var/lock
15M /var/log
4.0K /var/mail
4.0K /var/opt
0 /var/run
56K /var/spool
11M /var/tmp
Thats mine and it adds up to about 900MB.
nu2u904
June 26th, 2014, 10:17 PM
~$ sudo du -hs /var/*
3.5M /var/backups
100M /var/cache
651M /var/cache.old
4.0K /var/crash
4.0K /var/games
158M /var/lib
4.0K /var/local
0 /var/lock
15M /var/log
4.0K /var/mail
4.0K /var/opt
0 /var/run
56K /var/spool
11M /var/tmp
Thats mine and it adds up to about 900MB.
dclarke@dclarke-HP-Z400-Workstation:~$ cat list.txt
2.8M /var/backups
632M /var/cache
988K /var/crash
227M /var/lib
4.0K /var/local
0 /var/lock
6.5M /var/log
16K /var/lost+found
4.0K /var/mail
4.0K /var/metrics
4.0K /var/opt
0 /var/run
60K /var/spool
4.0K /var/tmp
dclarke@dclarke-HP-Z400
ibjsb4
June 26th, 2014, 11:44 PM
632M /var/cache
sudo apt-get autoclean
That should do it, but I still think your /var needs to be larger.
nu2u904
June 27th, 2014, 03:47 AM
632M /var/cache
sudo apt-get autoclean
That should do it, but I still think your /var needs to be larger.
Thank you. I agree. What are the steps that I must take to increase /var. I have 70GB of unallocated space following the u14.04 partitions? What size should I make /var?
I attempted update sw and response was I was 59MB shy. I did a sudo apt-get clean . I then successfully downloaded 159MB of updated packages. This is /var before the update and then after:
After clean
2.8M /var/backups
117M /var/cache
988K /var/crash
226M /var/lib
4.0K /var/local
0 /var/lock
6.8M /var/log
16K /var/lost+found
4.0K /var/mail
4.0K /var/metrics
4.0K /var/opt
0 /var/run
60K /var/spool
4.0K /var/tmp
After update 159MB
2.8M /var/backups
262M /var/cache
988K /var/crash
242M /var/lib
4.0K /var/local
0 /var/lock
7.3M /var/log
16K /var/lost+found
4.0K /var/mail
4.0K /var/metrics
4.0K /var/opt
0 /var/run
60K /var/spool
4.0K /var/tmp
mastablasta
June 27th, 2014, 08:45 AM
why do you need a separate /var anyway? or for that matter so many separate (and small) partitions... to me it seems this is just asking for low space problems...
second questions - yes that should be possible if that is really a solution.
ibjsb4
June 27th, 2014, 05:49 PM
why do you need a separate /var anyway? or for that matter so many separate (and small) partitions... to me it seems this is just asking for low space problems.
I agree, the default configuration works well for me.
nu2u904
June 30th, 2014, 02:02 AM
I agree. So now how do I return Var to Root / where it can expand to the limit 20GB I allocated to root. Root is on physical partition /dev/sda3.
Do you also believe that /boot should not be on its own very small partiton?
ibjsb4
June 30th, 2014, 05:06 AM
Why not just reinstall and use the default settings?
nu2u904
July 5th, 2014, 09:24 PM
I down loaded a lot of packages. What happens on a reinstall? If var is in / does it auto expand as the nee arises; / is 25GB? How can I move /var into root? Or how do I expand /var?
ibjsb4
July 6th, 2014, 11:40 AM
I down loaded a lot of packages. What happens on a reinstall?
Easy :) Create a "markings list" using Synaptic-package-manager. This will reinstall all packages with just a few clicks.
http://ubuntuforums.org/showthread.php?t=1057608
https://help.ubuntu.com/community/SynapticHowto
Be sure to check the box to "save full state".
If var is in / does it auto expand as the need arises
I have never ran out of space.
sudo apt-get install synaptic
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.