LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 08-01-2006, 03:29 PM   #1
llbbl
LQ Newbie
 
Registered: Oct 2005
Distribution: RHEL
Posts: 19

Rep: Reputation: 0
Boot Partition Problems


I installed this machine a while ago when FC3 was the newest thing out. It has a couple HD's in the machine. I forget the size and how many. We have been using nightly Yum updates to keep everything running smooth. When it was installed I decided to use software raid controller to create Logcial Volumes. Here is the disk layout:

Code:
~$ df Filesystem 1K-blocks Used Available Use% Mounted on 
/dev/mapper/VolGroup00-LogVol00 120365124 2985716 111166596 3% / 
/dev/sda1 101086 91025 4842 95% /boot 
/dev/shm 256576 0 256576 0% /dev/shm


The problem is that we are no longer able to run Yum because /boot is full of crap. I think it is putting everysingle dot release of the kernel in there so that now there is no more room. I don't want to delete anything and cause problems.

How big should the /boot partition be if we want to run Yum nightly? 500 MB ? Can I delete the older kernel versions?


Quote:
-rw-r--r-- 1 root root 764778 Jun 2 2005 System.map-2.6.11-1.1369_FC4
-rw-r--r-- 1 root root 794794 Jun 2 2005 System.map-2.6.11-1.1369_FC4smp
-rw-r--r-- 1 root root 1639539 Jun 2 2005 vmlinuz-2.6.11-1.1369_FC4

After installing FC5 on a different machine I noticed that the /boot partition wasn't very big either. I do not want to run into the same problems. Please advise.

Last edited by llbbl; 08-01-2006 at 03:31 PM.
 
Old 08-01-2006, 03:36 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yum shouldn't be installing kernels wildly at all. you csay the partition is full, yet you've not given us an ls output to show what actually is there...! run "rpm -qa | grep kernel" and see what kernels currently are installed. you only need to one that matches the output of "uname -r", other ones can be very safely removed.
 
Old 08-01-2006, 03:40 PM   #3
llbbl
LQ Newbie
 
Registered: Oct 2005
Distribution: RHEL
Posts: 19

Original Poster
Rep: Reputation: 0
I didn't give you full ouput but I quoted the earliest kernel that is in the /boot folder. The latest one that is installed is vmlinuz-2.6.16-1.2096_FC4smp. Why do you want to see all of them? There are at least 10 different ones along with system.map files initrd and config files associated with each version of the kernel.

Quote:
[llbbl@localhost boot]$ rpm -qa | grep kernel
kernel-smp-2.6.14-1.1653_FC4
kernel-2.6.16-1.2096_FC4
kernel-2.6.11-1.1369_FC4
kernel-smp-2.6.14-1.1644_FC4
kernel-2.6.14-1.1656_FC4
kernel-2.6.15-1.1830_FC4
kernel-smp-2.6.15-1.1830_FC4
kernel-smp-2.6.15-1.1831_FC4
kernel-2.6.15-1.1831_FC4
kernel-smp-2.6.15-1.1833_FC4
kernel-smp-2.6.16-1.2069_FC4
kernel-2.6.16-1.2069_FC4
kernel-smp-2.6.14-1.1637_FC4
kernel-2.6.14-1.1637_FC4
kernel-smp-2.6.11-1.1369_FC4
kernel-2.6.14-1.1644_FC4
kernel-2.6.14-1.1653_FC4
kernel-smp-2.6.14-1.1656_FC4
kernel-2.6.15-1.1833_FC4
kernel-smp-2.6.16-1.2096_FC4
Ok there is all of them.

Last edited by llbbl; 08-01-2006 at 03:42 PM.
 
Old 08-01-2006, 03:48 PM   #4
llbbl
LQ Newbie
 
Registered: Oct 2005
Distribution: RHEL
Posts: 19

Original Poster
Rep: Reputation: 0
Ok so this is the command to remove the versions I dont want right?

Quote:
rpm -e kernel_version
I wonder if I can write a cron job to run and delete everything but the current version.

Last edited by llbbl; 08-01-2006 at 03:51 PM.
 
Old 08-01-2006, 03:50 PM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ok, so assuming you don't have a multi cpu system, start by running "rpm -e $(rpm -qa | grep kernel-smp)" that'll nuke the smp ones, then fine tune further pulling out old normal ones you no longer want.
 
Old 08-01-2006, 03:52 PM   #6
llbbl
LQ Newbie
 
Registered: Oct 2005
Distribution: RHEL
Posts: 19

Original Poster
Rep: Reputation: 0
I am running SMP version, so I want to keep those. Sorry I didn't say what uname -r says. Thats good info thou.

Last edited by llbbl; 08-01-2006 at 03:54 PM.
 
Old 08-01-2006, 04:05 PM   #7
llbbl
LQ Newbie
 
Registered: Oct 2005
Distribution: RHEL
Posts: 19

Original Poster
Rep: Reputation: 0
Yea it's all fixed. Back down to 24%. I really need an automated way to get rid of those. TYVM for the help.
 
Old 08-01-2006, 04:08 PM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
in my experience yum will always remove the kernel before last, only leaving the two newest ones. is your yum itself totally up to date... bit of a stupid question i guess if it's all automatic, but that behaviour isn't exactly great.
 
Old 08-01-2006, 04:12 PM   #9
llbbl
LQ Newbie
 
Registered: Oct 2005
Distribution: RHEL
Posts: 19

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie
is your yum itself totally up to date...
yum-2.4.1-1.fc4

I tried yum update but had this problem.
Quote:
Cannot find a valid baseurl for repo: updates-released
Error: Cannot find a valid baseurl for repo: updates-released
Hopefully I figure this out and get yum to update the system than yum will stop doing this with the /boot partition.
 
Old 08-02-2006, 05:46 AM   #10
decrepit
Member
 
Registered: May 2006
Distribution: Ubuntu10.04, < fedora12
Posts: 347

Rep: Reputation: 34
I guess you have redirect yum to the legacy site?
 
Old 08-02-2006, 10:03 AM   #11
llbbl
LQ Newbie
 
Registered: Oct 2005
Distribution: RHEL
Posts: 19

Original Poster
Rep: Reputation: 0
I got it working after a bit of work.
http://www.linuxquestions.org/questi...d.php?t=469870
 
  


Reply


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
Deleted partition causing boot problems Parmeisan Linux - Newbie 5 06-22-2006 10:14 AM
Partition problems, trying to set up dual boot, FC5/XP Soup Erman Linux - Newbie 4 05-29-2006 08:40 PM
cfdisk, add new partition, boot problems haertig Linux - Software 9 01-07-2006 06:50 PM
Dual boot partition problems w/ 2 HD sourworm Linux - Newbie 4 02-22-2005 03:55 PM
Microdrive Boot Partition Check Problems! Rims Linux - Hardware 0 06-05-2004 10:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration