Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Installation and Live Media
FedoraForum Search

Forgot Password? Join Us!

Installation and Live Media Help with Installation & Live Media (Live CD, USB, DVD) problems.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 26th July 2011, 08:19 PM
IHeart SymLinks Offline
Registered User
 
Join Date: Jan 2011
Posts: 128
linuxfirefox
Kernel upgrade won't install, claims not enough space on /boot

On my laptop at home when I run yum update it doesn't work and I have to use KPackage Kit to install packages because there I can uncheck the kernel package.

I get an error complaining about not enough free space on /boot, but it appears I have enough space. When I get home I can post output from yum update and df -h /boot

I have Fedora 15.
__________________
I♥SymLinks

Junior SysAdmin and Python Newbie
Fedora 15 64 Bit (Fedora 13 install upgraded to 14 with preupgrade, then 15 using --distro-sync)
KDE 4.6.5

Laptop: Fedora 13 upgraded to 15 via --distro-sync

Can someone pls help me with The wireless on my laptop?
Reply With Quote
  #2  
Old 27th July 2011, 04:07 PM
briand's Avatar
briand Offline
Registered User
 
Join Date: Nov 2010
Location: Tallahassee, FL
Posts: 132
windows_xp_2003ie
Re: Kernel upgrade won't install, claims not enough space on /boot

...or, even a du -h /boot

there may be a number of previous (and seldom, if ever, used) kernels still hanging out in there. clear some of the old ones out.
__________________
Desktop: Fedora 13. Misc: Fedora Core 5. Port: Fedora 14 Servers: CentOS 5.6
*DSOT* Graduate. "Prodigy! hahaha" (inside joke)


-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GE/CS/G/IT/MC/M/MU/S d- s: a C++ U++++ P+++ L+++ E--- W++ N+ o++ w Y+ PGP t++ 5++ X R tv+ b+++ DI++ D+ G e+++ h+ r y+ UF++
------END GEEK CODE BLOCK------
Reply With Quote
  #3  
Old 27th July 2011, 09:13 PM
IHeart SymLinks Offline
Registered User
 
Join Date: Jan 2011
Posts: 128
linuxfirefox
Re: Kernel upgrade won't install, claims not enough space on /boot

I'll try that too, is there a limit to the number of kernels that can be there? From what I recall from my Grub menu there should be at most only 3.
__________________
I♥SymLinks

Junior SysAdmin and Python Newbie
Fedora 15 64 Bit (Fedora 13 install upgraded to 14 with preupgrade, then 15 using --distro-sync)
KDE 4.6.5

Laptop: Fedora 13 upgraded to 15 via --distro-sync

Can someone pls help me with The wireless on my laptop?
Reply With Quote
  #4  
Old 27th July 2011, 09:20 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,101
linuxfedorafirefox
Re: Kernel upgrade won't install, claims not enough space on /boot

It also depends on how large the partition for /boot is.

Current requirements are 600MB, though preupgrades have failed at that size, but this seems due to the number of packages being processed during the preupgrade cycle.
Reply With Quote
  #5  
Old 13th September 2011, 04:37 PM
IHeart SymLinks Offline
Registered User
 
Join Date: Jan 2011
Posts: 128
linuxfirefox
Re: Kernel upgrade won't install, claims not enough space on /boot

Quote:
[root@laptop admin]$ yum update kernel
Loaded plugins: presto, refresh-packagekit
Setting up Update Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package kernel.x86_64 0:2.6.40.4-5.fc15 will be installed
--> Processing Dependency: module-init-tools >= 3.16-2 for package: kernel-2.6.40.4-5.fc15.x86_64
--> Running transaction check
---> Package module-init-tools.x86_64 0:3.16-1.fc15 will be updated
---> Package module-init-tools.x86_64 0:3.16-2.fc15 will be an update
--> Finished Dependency Resolution
--> Running transaction check
---> Package kernel.x86_64 0:2.6.34.8-68.fc13 will be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================== ================================================== =
Package Arch Version Repository Size
================================================== ================================================== =
Installing:
kernel x86_64 2.6.40.4-5.fc15 updates 23 M
Removing:
kernel x86_64 2.6.34.8-68.fc13 @updates/13 111 M
Updating for dependencies:
module-init-tools x86_64 3.16-2.fc15 updates 423 k

Transaction Summary
================================================== ================================================== =
Install 1 Package(s)
Upgrade 1 Package(s)
Remove 1 Package(s)

Total download size: 24 M
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 24 M
(1/2): kernel-2.6.40.4-5.fc15.x86_64.rpm | 23 MB 00:47
(2/2): module-init-tools-3.16-2.fc15.x86_64.rpm | 423 kB 00:01
-----------------------------------------------------------------------------------------------------
Total 488 kB/s | 24 MB 00:49
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Transaction couldn't start:
installing package kernel-2.6.40.4-5.fc15.x86_64 needs 2MB on the /boot filesystem


[('installing package kernel-2.6.40.4-5.fc15.x86_64 needs 2MB on the /boot filesystem', (9, '/boot', 2074624L))]
[root@laptop admin]$
[root@laptop admin]$
[root@laptop admin]$ df -h /boot
Filesystem Size Used Avail Use% Mounted on
/dev/sda6 108M 77M 26M 76% /boot
[root@laptop admin]$ du -h /boot
242K /boot/efi/EFI/redhat
244K /boot/efi/EFI
246K /boot/efi
13K /boot/lost+found
325K /boot/grub
71M /boot
[root@laptop admin]$
It says it needed 2MB, but I had 26 free, or does it mean it needs 2 more MB (so 28 MB)? Either way I added exclude=kernel to the repo file for Fedora updates and ran yum-complete-transaction and updated. Later I removed the exclude and updated. Seems fine for now, but for the next time there is a kernel upgrade would increasing the size of /boot a bit be helpful?
__________________
I♥SymLinks

Junior SysAdmin and Python Newbie
Fedora 15 64 Bit (Fedora 13 install upgraded to 14 with preupgrade, then 15 using --distro-sync)
KDE 4.6.5

Laptop: Fedora 13 upgraded to 15 via --distro-sync

Can someone pls help me with The wireless on my laptop?
Reply With Quote
  #6  
Old 13th September 2011, 04:43 PM
cranil7 Offline
Registered User
 
Join Date: Dec 2009
Posts: 28
linuxfirefox
Re: Kernel upgrade won't install, claims not enough space on /boot

Keep only two copies of kernel (Last two) and delete other copies.
You certainly have too small /boot partition.
Search fedora forums, there are ways to adress this. (based on fact that you just need 2 more MB.)

For long term, you should at least be keeping your /boot partition @ 500-700MB
Reply With Quote
  #7  
Old 13th September 2011, 04:47 PM
IHeart SymLinks Offline
Registered User
 
Join Date: Jan 2011
Posts: 128
linuxfirefox
Re: Kernel upgrade won't install, claims not enough space on /boot

Judging from my grub menu, I have three kernels. Is that the default? How do I make it keep 2?

When I installed it I thought 100MB was plenty, but didn't consider the possibility of having two kernels installed (makes sense, good to have a fallback). So that's what that means, I need 2 more than I have. I thought it meant I only needed 2MB, they should fix the wording on that.

I'll look into making /boot bigger.
__________________
I♥SymLinks

Junior SysAdmin and Python Newbie
Fedora 15 64 Bit (Fedora 13 install upgraded to 14 with preupgrade, then 15 using --distro-sync)
KDE 4.6.5

Laptop: Fedora 13 upgraded to 15 via --distro-sync

Can someone pls help me with The wireless on my laptop?
Reply With Quote
  #8  
Old 13th September 2011, 04:48 PM
brunson Offline
Registered User
 
Join Date: Jun 2005
Location: Westminster, Colorado
Posts: 2,304
linuxchrome
Re: Kernel upgrade won't install, claims not enough space on /boot

It'd be convenient if /boot could be on an LVM volume. Maybe someday.
__________________
Registered Linux User #4837
411th in line to get sued by Micro$oft
Quote:
Basically, to learn Unix you learn to understand and apply a small set of key ideas and achieve expertise by expanding both the set of ideas and your ability to apply them - Paul Murphy
Reply With Quote
  #9  
Old 13th September 2011, 05:10 PM
IHeart SymLinks Offline
Registered User
 
Join Date: Jan 2011
Posts: 128
linuxfirefox
Re: Kernel upgrade won't install, claims not enough space on /boot

Because LVM would be easier to resize? But boot can't be LVM because it has to be accessed before LVM can start?
__________________
I♥SymLinks

Junior SysAdmin and Python Newbie
Fedora 15 64 Bit (Fedora 13 install upgraded to 14 with preupgrade, then 15 using --distro-sync)
KDE 4.6.5

Laptop: Fedora 13 upgraded to 15 via --distro-sync

Can someone pls help me with The wireless on my laptop?
Reply With Quote
  #10  
Old 13th September 2011, 06:37 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,101
linuxfedorafirefox
Re: Kernel upgrade won't install, claims not enough space on /boot

/boot really needs to be between 600GB and 1GB for future expansions.

One problem that preupgrade has is that it needs to put all updates on the /boot (for firstboot processing after reboot) and the amount it needs is listed as 400MB, but that is for a minimal system. The more packages you have installed, the more space it needs.

I believe the current recommended amount is 400MB, but there have been reports of preupgrade failing with 600MB, but working with 700...

I bit the bullet and increased mine from 200 to 1GB so that there would be plenty of space for extra kernels, as well as extra future expansions.

Disk space is currently cheap.

The problem is you can't boot a LVM because the data contained with an LVM is/can be spread across multiple disks and partitions. This cannot be booted from BIOS (which is lucky to even know about one disk), nor can grub handle logical volumes (takes up too much disk space for the drivers and code in the boot sectors). This makes it unlikely to be supported in the future.

You should, however, be able to boot a hardware raid which can perform the same activity. This removes the BIOS/Grub from the equation as the hardware raid presents the appearance of a single disk, no matter how it is configured.
Reply With Quote
  #11  
Old 15th September 2011, 08:35 PM
IHeart SymLinks Offline
Registered User
 
Join Date: Jan 2011
Posts: 128
linuxfirefox
Re: Kernel upgrade won't install, claims not enough space on /boot

You mean
Quote:
/boot really needs to be between 600MB and 1GB for future expansions.
.

I didn't think boot would need so much, but better to have more than less I guess, not like losing 1GB off my 600GB hard drive would mean very much.

Quote:
This makes it unlikely to be supported in the future.
Isn't that what stage 1.5 or stage2 is for, but then again you would have to load that from somewhere grub stage 1 can read :\
__________________
I♥SymLinks

Junior SysAdmin and Python Newbie
Fedora 15 64 Bit (Fedora 13 install upgraded to 14 with preupgrade, then 15 using --distro-sync)
KDE 4.6.5

Laptop: Fedora 13 upgraded to 15 via --distro-sync

Can someone pls help me with The wireless on my laptop?
Reply With Quote
  #12  
Old 15th September 2011, 09:24 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,101
linuxfedorafirefox
Re: Kernel upgrade won't install, claims not enough space on /boot

oops. my fault. brain went south. Yes 600MB.

Grub2 is supposed to have LVM2 support (not LVM), but I don't know how it manages multiple disks - that usually requires a full partition scan of all disks, and that doesn't usually fit within either stage 1.5 or stage2. There may be restrictions on the support (as in only on one drive, but can span multiple partitions) to get the code small enough.
Reply With Quote
  #13  
Old 15th September 2011, 10:37 PM
marko's Avatar
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 5,448
linuxfirefox
Re: Kernel upgrade won't install, claims not enough space on /boot

Quote:
Originally Posted by IHeart SymLinks View Post
You mean
.

I didn't think boot would need so much, but better to have more than less I guess, not like losing 1GB off my 600GB hard drive would mean very much.

Isn't that what stage 1.5 or stage2 is for, but then again you would have to load that from somewhere grub stage 1 can read :\
The only time you'd need the large /boot size is if you want to use preupgrade, if don't use preupgrade then you can get by with a small /boot like 200MB
Reply With Quote
  #14  
Old 24th October 2011, 09:29 PM
IHeart SymLinks Offline
Registered User
 
Join Date: Jan 2011
Posts: 128
linuxfirefox
Re: Kernel upgrade won't install, claims not enough space on /boot

I am thinking of booting a Live CD, mounting my boot and root partitions then copying everything from the boot partition to the boot folder on my root partition and remove /boot from fstab. After I confirm it boots I will delete the boot partition (if not I can just make it use the boot partition again).

At this point I will have as much space on /boot as I do for my root Linux partition. I will update and see how much space I am using on boot. At which point I will make a new partition with that much space plus some, copy the files from /boot to it and mount it.

I have no space where my boot partition is but I have an unused 100GB of unallocated space.

Will this work, all I have to do is copy the files and edit fstab to change where what /boot mounts to (Either a partition or boot folder on /)
__________________
I♥SymLinks

Junior SysAdmin and Python Newbie
Fedora 15 64 Bit (Fedora 13 install upgraded to 14 with preupgrade, then 15 using --distro-sync)
KDE 4.6.5

Laptop: Fedora 13 upgraded to 15 via --distro-sync

Can someone pls help me with The wireless on my laptop?
Reply With Quote
  #15  
Old 24th October 2011, 09:33 PM
brunson Offline
Registered User
 
Join Date: Jun 2005
Location: Westminster, Colorado
Posts: 2,304
linuxchrome
Re: Kernel upgrade won't install, claims not enough space on /boot

Quote:
Originally Posted by IHeart SymLinks View Post
I am thinking of booting a Live CD, mounting my boot and root partitions then copying everything from the boot partition to the boot folder on my root partition and remove /boot from fstab. After I confirm it boots I will delete the boot partition (if not I can just make it use the boot partition again).

At this point I will have as much space on /boot as I do for my root Linux partition. I will update and see how much space I am using on boot. At which point I will make a new partition with that much space plus some, copy the files from /boot to it and mount it.

I have no space where my boot partition is but I have an unused 100GB of unallocated space.

Will this work, all I have to do is copy the files and edit fstab to change where what /boot mounts to (Either a partition or boot folder on /)
That will break if your root partition is on LVM, grub cannot read from LVM (as you know since you pointed it out in your post above). If your root is not on LVM, it can work, but you'll have to update your grub.conf

FWIW, F16 is moving to GRUB2, which does know how to read LVM natively, so if you can get through this the problem may become moot.
__________________
Registered Linux User #4837
411th in line to get sued by Micro$oft
Quote:
Basically, to learn Unix you learn to understand and apply a small set of key ideas and achieve expertise by expanding both the set of ideas and your ability to apply them - Paul Murphy
Reply With Quote
Reply

Tags
claims, install, kernel, or boot, space, upgrade

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Insufficient space on /boot to upgrade F13-F14 obiwanyj Installation and Live Media 0 28th April 2011 01:13 AM
Kernel upgrade complains about not enough space in /boot -- but there's plenty? mas1974 Installation and Live Media 3 23rd May 2010 12:31 AM
Fedora 10 to 12 Upgrade Fails With Low disk space detected in /boot johnj Installation and Live Media 2 7th March 2010 08:11 AM
not enough space /mnt/sysimage/boot for install F12 mjd9ball Installation and Live Media 19 20th November 2009 11:46 PM
How much space does preupgrade require in /boot/upgrade? jimwrightbe Installation and Live Media 6 20th September 2009 12:06 AM


Current GMT-time: 02:21 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat