(kernel) update(s) failing - swap space?
For a couple of days now my automatic security updates have been failing. So today, I tried updating through Yast, and got an error which said that a further 119mb were needed to install a particular update. I Googled the error and saw that it might be a CPU issue. I didn't have very much running - just Firefox and the file indexing thing that starts automatically when my laptop is booted. But I closed those just in case and retried. It didn't make any difference.
So I tried installing the other updates on their own to make sure it was that particular package that was causing the problem and it wasn't just a general error. Twice I got a message about rebooting / logging in again - which I did. But all of the same updates were still listed. So I Googled the problem again and found out how to update through Zypper.
This time, several packages were upgraded. But when it got to the kernel update again, it gave me a similar error to the one shown in Yast:
Installing: kernel-pae-126.96.36.199-0.11.1 [error]
Installation of kernel-pae-188.8.131.52-0.11.1 failed:
(with --nodeps --force) Error: Subprocess failed. Error: RPM failed: installing package kernel-pae-184.108.40.206-0.11.1.i586 needs 119MB on the / filesystem
I tried rpmdb --rebuilddb and then ran zypper update again. But no luck. I don't have anything else running - other than Firefox, just to post this. One page spoke about swap space possibly having to be expanded, but I can't find anything that specifies how to do this.
I use OpenSuse 11.4 and KDE. Can anyone please tell me how to do it, or suggest anything else to try?
Thanks in advance.
Do you have enough diskspace for / ?
Disk space and RAM/swap are separate resources. The page you read is not relevant to your problem. You need to free up disk space by deleting files, emptying the trash, etc. (Or get a bigger hard drive I suppose.)
My diskspace is fine. I have almost 200GB free. Which is why I thought it must be referring to RAM. Sigh. :( The other updates added up to about 350MB too and they installed fine when Zypper got to them first.
Could you post the output of "df -h"?
Filesystem Size Used Avail Use% Mounted on
rootfs 20G 19G 0 100% /
devtmpfs 988M 196K 988M 1% /dev
tmpfs 994M 184K 994M 1% /dev/shm
/dev/sda2 20G 19G 0 100% /
/dev/sda3 272G 77G 194G 29% /home
Do kernel updates install to rootfs or sda2? :(
You can use a Live CD and the Gparted partition editor to shrink /home and grow / (but make a backup first!!!).
Alternately you can delete some stuff in / that you don't need, like log files or package manager cache.
Are you comfortable with either of those ideas?
I'm sorry, I'm new to this and I'm a little confused. The error first came up before the other updates installed, and combined they were larger than this kernel update. Also, all my documents etc. are on the partition that does have almost 200GB of space. How do I get into the other files to make space, and how do I know what I can safely delete?
Sorry, missed the first reply first time around. Is it really necessary to use a Livecd to edit partitions? I don't mind deleting things as long as I know what I'm safely able to delete.
You cannot resize a partition in use, just like you cannot change the tires while you are driving. :) So, you must use a Linux Live CD or USB with the Gparted partition editor (available in most distros). Do you still have the CD/USB you used to install Linux? If not, do you have a blank CD or spare USB thumb drive?
As to which files are safe to delete, I am not an OpenSUSE user, I don't want to give you bad advice, hopefully another member can assist you with that.
I do have a couple of Live CDs somewhere, including the OpenSuse CD I originally made. I was just hoping to get it fixed tonight and I have a file uploading for a friend. :p
Thanks for your help. :)
I have OpenSUSE 11.4 on my home machine. I'm not sure what all you have installed to eat up that much space, my / partition is only using 6.7GB.
This command will take a while to run, but it will narrow down which directories are taking all of your disk space. You'll have to run it as root:
du: cannot access `/proc/13459/task/13459/fd/4': No such file or directory
du: cannot access `/proc/13459/task/13459/fdinfo/4': No such file or directory
du: cannot access `/proc/13459/fd/4': No such file or directory
du: cannot access `/proc/13459/fdinfo/4': No such file or directory
I ran it as root, so I don't think the cannot access errors are a permissions thing. I don't remember installing anything through Yast/Zypper that was particularly big. I do have Photoshop installed with Wine, but I think Wine applications install on the same paritition as documents etc?
Your /var is a lot bigger than suicidaleggroll's. You can keep working your way down the directory tree with:
That brings up:
So the cache needs clearing, I'm guessing. I did the same for /usr and got:
du -sh /usr/*
Can I access these files through Dolphin/Konqueror?
|All times are GMT -5. The time now is 02:35 AM.|