LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-06-2008, 11:32 AM   #1
nbn792
Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 109

Rep: Reputation: 15
apt-get upgrade left initramfs-tools config broken


ran apt-get upgrade on my lenny machine. It exits while trying to configure initramfs-tools. now I cannot use apt-get or dpkg.

dellhead:/home/garrett# apt-get upgrade
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
dellhead:/home/garrett# dpkg --configure -a
Setting up initramfs-tools (0.92g) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.26

gzip: stdout: No space left on device
update-initramfs: failed for /boot/initrd.img-2.6.26
dpkg: subprocess post-installation script returned error exit status 1
dellhead:/home/garrett# dpkg --configure --force-confold initramfs-tools
Setting up initramfs-tools (0.92g) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-2.6.26

gzip: stdout: No space left on device
update-initramfs: failed for /boot/initrd.img-2.6.26
dpkg: subprocess post-installation script returned error exit status 1
dellhead:/home/garrett#


computer still boots and everything is working as before, but I would like to install some packages today and this is really holdin me back. any suggestions?

thanks
 
Old 09-06-2008, 11:49 AM   #2
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Quote:
gzip: stdout: No space left on device
What does $ df -h tell you?
 
Old 09-06-2008, 07:24 PM   #3
nbn792
Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 109

Original Poster
Rep: Reputation: 15
garrett@dellhead:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 23G 4.9G 17G 23% /
tmpfs 1.5G 0 1.5G 0% /lib/init/rw
udev 10M 116K 9.9M 2% /dev
tmpfs 1.5G 0 1.5G 0% /dev/shm
/dev/sda1 46M 37M 6.8M 85% /boot
/dev/sdb2 262G 1.9G 247G 1% /home
/dev/sda3 201G 112G 90G 56% /mnt/winstorage
garrett@dellhead:~$


do you think its my boot partition. i hope not, its on my windows drive maybe I have partition magic around, but I thought 50 megs was plenty anything that would be ok to clear out of there.

garrett@dellhead:/boot$ ls
config-2.6.24-1-amd64 initrd.img-2.6.26
config-2.6.24-1-amd64.old lost+found
config-2.6.26 System.map-2.6.24-1-amd64
grub System.map-2.6.26
initrd.img-2.6.24-1-amd64 vmlinuz-2.6.24-1-amd64
initrd.img-2.6.24-1-amd64.bak vmlinuz-2.6.26
garrett@dellhead:/boot$

thx
 
Old 09-06-2008, 08:09 PM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Your /boot partition does seem to be rather heavily populated. My /boot has 21 meg (and that's in openSUSE, which can be bloated). My Debian installation has less than that in /boot.

I suggest that you look closely at what is in /boot to see if there is anything you don't need, then delete unnecessary files.

Hint: rename prospective delete files, one at a time, then reboot after each rename. If renaming a file will causes boot problems, just give it the original name. If renaming a file doesn't cause boot problems, it should be same to delete that file. If in doubt, move the file to your home folder, along with a note detailing where the file comes from, it's original name, and why you moved it.

If it were my machine, I'd delete the amd64.old and amd64.bak files, then try the upgrade again.
 
Old 09-06-2008, 08:33 PM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
Another option is to use dd from a LiveCD to: copy /boot to /, remove the /boot partition, and update grub/lilo (and the MBR) to point properly. Oh, I see that / is on /dev/sdb1, so it would take a little more effort, but not much.
 
Old 09-06-2008, 09:31 PM   #6
nbn792
Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 109

Original Poster
Rep: Reputation: 15
now that i think of it I have a boot logo app splashy that might have created a large image to boot up with. I cp and rm the old 2.6.24 and and gonna reboot and try again. wish me luck!
 
Old 09-06-2008, 09:38 PM   #7
nbn792
Member
 
Registered: Dec 2003
Distribution: Debian
Posts: 109

Original Poster
Rep: Reputation: 15
awesome clearing out the /boot fixed the upgrade situation. now I guess I will have to go partition magic on my windows drive sda to enlarge my /boot which is /sda1 any other suggestions.... i would like to build some custom kernels and i forsee this being a problem.
 
  


Reply



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
udev isn't configured correctly, stops initramfs-tools from being updated xaos5 Debian 2 09-30-2007 08:39 PM
initrd-tools or initramfs-tools kushalkoolwal Debian 9 12-28-2006 09:11 PM
install new kernel problem with initramfs-tools arsham Linux - General 1 10-04-2006 02:53 PM
Conflict in Upgrading initramfs-tools and udev Brian Puccio Linux - Software 2 03-12-2006 01:46 PM
xmms broken after apt-get dist-upgrade dbkluck Debian 3 11-04-2003 08:03 PM

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

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

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