LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 01-20-2012, 10:28 AM   #1
Glaedr
Member
 
Registered: Jun 2011
Distribution: OpenSuse 11.4
Posts: 64

Rep: Reputation: Disabled
(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-2.6.37.6-0.11.1 [error]
Installation of kernel-pae-2.6.37.6-0.11.1 failed:
(with --nodeps --force) Error: Subprocess failed. Error: RPM failed: installing package kernel-pae-2.6.37.6-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.
 
Old 01-20-2012, 12:39 PM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,758

Rep: Reputation: Disabled
Do you have enough diskspace for / ?
 
Old 01-20-2012, 01:08 PM   #3
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 3,918

Rep: Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049
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.)
 
Old 01-20-2012, 02:25 PM   #4
Glaedr
Member
 
Registered: Jun 2011
Distribution: OpenSuse 11.4
Posts: 64

Original Poster
Rep: Reputation: Disabled
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.
 
Old 01-20-2012, 02:36 PM   #5
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,954

Rep: Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029
Could you post the output of "df -h"?
 
Old 01-20-2012, 02:41 PM   #6
Glaedr
Member
 
Registered: Jun 2011
Distribution: OpenSuse 11.4
Posts: 64

Original Poster
Rep: Reputation: Disabled
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?
 
Old 01-20-2012, 02:41 PM   #7
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 3,918

Rep: Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049
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?

Last edited by snowpine; 01-20-2012 at 02:43 PM.
 
Old 01-20-2012, 02:44 PM   #8
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,954

Rep: Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029
Quote:
Originally Posted by Glaedr View Post
My diskspace is fine. I have almost 200GB free.
Not in / you don't

Quote:
Originally Posted by Glaedr
/dev/sda2 20G 19G 0 100% /
You need to free up disk space
 
Old 01-20-2012, 02:53 PM   #9
Glaedr
Member
 
Registered: Jun 2011
Distribution: OpenSuse 11.4
Posts: 64

Original Poster
Rep: Reputation: Disabled
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?

Edit:
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.

Last edited by Glaedr; 01-20-2012 at 02:55 PM.
 
Old 01-20-2012, 03:01 PM   #10
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 3,918

Rep: Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049
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.
 
Old 01-20-2012, 03:08 PM   #11
Glaedr
Member
 
Registered: Jun 2011
Distribution: OpenSuse 11.4
Posts: 64

Original Poster
Rep: Reputation: Disabled
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.

Thanks for your help.
 
Old 01-20-2012, 03:10 PM   #12
suicidaleggroll
Senior Member
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 2,954

Rep: Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029Reputation: 1029
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:
Code:
du -sh /*
Here is the output on my machine:
Code:
craig:/ # du -sh /*
8.6M    /bin
24M     /boot
224K    /dev
33M     /etc
819G    /home
168M    /lib
26M     /lib64
16K     /lost+found
8.0K    /media
8.0K    /mnt
110M    /opt
0       /proc
1.8M    /root
14M     /sbin
4.0K    /selinux
1.4M    /srv
0       /sys
0       /tmp
5.8G    /usr
328M    /var

Last edited by suicidaleggroll; 01-20-2012 at 03:12 PM.
 
Old 01-20-2012, 03:23 PM   #13
Glaedr
Member
 
Registered: Jun 2011
Distribution: OpenSuse 11.4
Posts: 64

Original Poster
Rep: Reputation: Disabled
Mine says:

9.5M /bin
70M /boot
380K /dev
50M /etc
77G /home
365M /lib
16K /lost+found
8.0K /media
4.0K /mnt
375M /opt
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
0 /proc
807M /root
13M /sbin
4.0K /selinux
2.6M /srv
0 /sys
670M /tmp
11G /usr
5.6G /var

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?
 
Old 01-20-2012, 03:28 PM   #14
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 3,918

Rep: Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049Reputation: 1049
Your /var is a lot bigger than suicidaleggroll's. You can keep working your way down the directory tree with:

Code:
du -sh /var/*

Last edited by snowpine; 01-20-2012 at 03:58 PM.
 
Old 01-20-2012, 03:33 PM   #15
Glaedr
Member
 
Registered: Jun 2011
Distribution: OpenSuse 11.4
Posts: 64

Original Poster
Rep: Reputation: Disabled
That brings up:

175M /var/adm
4.9G /var/cache
4.0K /var/crash
8.0K /var/games
146M /var/lib
28K /var/lock
41M /var/log
0 /var/mail
16K /var/mpi-selector
4.0K /var/opt
284K /var/run
128K /var/spool
364M /var/tmp
4.0K /var/X11R6
12K /var/yp

So the cache needs clearing, I'm guessing. I did the same for /usr and got:

du -sh /usr/*
636M /usr/bin
12K /usr/etc
4.0K /usr/games
16K /usr/i586-suse-linux
207M /usr/include
5.2G /usr/lib
297M /usr/local
57M /usr/sbin
3.8G /usr/share
716M /usr/src
0 /usr/tmp
12K /usr/X11R6

Can I access these files through Dolphin/Konqueror?
 
  


Reply

Tags
failing, kernel, swap, update, zypper


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to reduce swap space and reclaim the space grantm Linux - Newbie 7 08-16-2012 07:05 AM
swap space (or) swap file yusufs Linux - Newbie 8 07-17-2008 02:02 AM
how much swap space is needed; how to increase swap space? johnpaulodonnell Linux - Newbie 5 03-23-2007 03:20 AM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
2.6.2 kernel upgrade and lost swap space??? pld Linux - Hardware 2 02-10-2004 10:00 PM


All times are GMT -5. The time now is 11:29 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration