Fedora This forum is for the discussion of the Fedora Project. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-01-2006, 03:29 PM
|
#1
|
LQ Newbie
Registered: Oct 2005
Distribution: RHEL
Posts: 19
Rep:
|
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.
|
|
|
08-01-2006, 03:36 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
08-01-2006, 03:40 PM
|
#3
|
LQ Newbie
Registered: Oct 2005
Distribution: RHEL
Posts: 19
Original Poster
Rep:
|
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.
|
|
|
08-01-2006, 03:48 PM
|
#4
|
LQ Newbie
Registered: Oct 2005
Distribution: RHEL
Posts: 19
Original Poster
Rep:
|
Ok so this is the command to remove the versions I dont want right?
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.
|
|
|
08-01-2006, 03:50 PM
|
#5
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
08-01-2006, 03:52 PM
|
#6
|
LQ Newbie
Registered: Oct 2005
Distribution: RHEL
Posts: 19
Original Poster
Rep:
|
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.
|
|
|
08-01-2006, 04:05 PM
|
#7
|
LQ Newbie
Registered: Oct 2005
Distribution: RHEL
Posts: 19
Original Poster
Rep:
|
Yea it's all fixed. Back down to 24%. I really need an automated way to get rid of those. TYVM for the help.
|
|
|
08-01-2006, 04:08 PM
|
#8
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
08-01-2006, 04:12 PM
|
#9
|
LQ Newbie
Registered: Oct 2005
Distribution: RHEL
Posts: 19
Original Poster
Rep:
|
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.
|
|
|
08-02-2006, 05:46 AM
|
#10
|
Member
Registered: May 2006
Distribution: Ubuntu10.04, < fedora12
Posts: 347
Rep:
|
I guess you have redirect yum to the legacy site?
|
|
|
08-02-2006, 10:03 AM
|
#11
|
LQ Newbie
Registered: Oct 2005
Distribution: RHEL
Posts: 19
Original Poster
Rep:
|
|
|
|
All times are GMT -5. The time now is 11:11 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|