apt-get upgrade fails due to kernel-image problem

2005-12-16 Thread gregory duchesnes

Hi all,

I have a problem with apt-get when upgrading kernel-image, here is what 
i got :


# apt-get upgrade
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Les paquets suivants seront mis à jour :
 kernel-image-2.6.8-2-386
1 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
21 partiellement installés ou enlevés.
Il est nécessaire de prendre 0o/14,1Mo dans les archives.
Après dépaquetage, 4096o d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n]
(Lecture de la base de données... 16439 fichiers et répertoires déjà 
installés.)
Préparation du remplacement de kernel-image-2.6.8-2-386 2.6.8-16 (en 
utilisant .../kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb) ...

The directory /lib/modules/2.6.8-2-386 still exists. Continuing as directed.
Dépaquetage de la mise à jour de kernel-image-2.6.8-2-386 ...
dpkg : erreur de traitement de 
/var/cache/apt/archives/kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb 
(--unpack) :
échec dans « buffer_write(fd) » (8, ret=-1) : backend dpkg-deb pendant 
« ./lib/modules/2.6.8-2-386/kernel/sound/isa/sb/snd-emu8000-synth.ko »: 
Aucun espace disponible sur le périphérique

dpkg-deb: sous-processus paste tué par le signal (Relais brisé (pipe))
Searching for GRUB installation directory ... found: /boot/grub .
Testing for an existing GRUB menu.list file... found: /boot/grub/menu.lst .
Searching for splash image... none found, skipping...
Found kernel: /vmlinuz-2.6.8-2-386
Updating /boot/grub/menu.lst ... done

Des erreurs ont été rencontrées pendant l'exécution :
/var/cache/apt/archives/kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)



I'm sorry that messages are in french but i will do a quick translation 
of the problematic lines :


dpkg : error while treating 
/var/cache/apt/archives/kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb 
(--unpack) :
 failure in « buffer_write(fd) » (8, ret=-1) : backend dpkg-deb while « 
./lib/modules/2.6.8-2-386/kernel/sound/isa/sb/snd-emu8000-synth.ko »: No 
space left on device

dpkg-deb: paste subprocces killed by signal (broken pipe)


Seems like a space problem thouh here is a df -h :

Sys. de fich. Tail. Occ. Disp. %Occ. Monté sur
/dev/hda1  89M   58M   27M  69% /
tmpfs 252M 0  252M   0% /dev/shm
/dev/hda3  15M  7,3M  6,7M  53% /boot
/dev/hda6  89M  4,1M   80M   5% /home
/dev/hda7 449M  8,1M  417M   2% /tmp
/dev/hda5 897M  184M  666M  22% /usr
/dev/hda8 449M   69M  356M  17% /var
/dev/hda10449M   29M  397M   7% /var/lib/mysql
/dev/hda9 449M   29M  397M   7% /var/log
/dev/hda11 46G   61M   44G   1% /var/vmail

Doesn't look like any of my partitions is full?

I remounted /boot rw before the apt-get upgrade (as well as /usr which 
is remounted automatically through a pre-invoke command in apt.conf)


How to solve this?
Can i do the --unpack anywhere else than in the default partition? (and 
where does it unpack by the way?)
I don't use a sound card on this computer, can i remove this module 
(safely and how?)




Thanks for your help


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: apt-get upgrade fails due to kernel-image problem

2005-12-16 Thread Oliver Elphick
On Fri, 2005-12-16 at 12:43 +0100, gregory duchesnes wrote:
 Hi all,
 
 I have a problem with apt-get when upgrading kernel-image, here is what 
 i got :
 
 # apt-get upgrade
...
 utilisant .../kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb) ...
 The directory /lib/modules/2.6.8-2-386 still exists. Continuing as directed.
 Dépaquetage de la mise à jour de kernel-image-2.6.8-2-386 ...
 dpkg : erreur de traitement de 
 /var/cache/apt/archives/kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb 
 (--unpack) :
  échec dans « buffer_write(fd) » (8, ret=-1) : backend dpkg-deb pendant 
 « ./lib/modules/2.6.8-2-386/kernel/sound/isa/sb/snd-emu8000-synth.ko »: 
 Aucun espace disponible sur le périphérique
...
 Seems like a space problem thouh here is a df -h :
 
 Sys. de fich. Tail. Occ. Disp. %Occ. Monté sur
 /dev/hda1  89M   58M   27M  69% /
...
 Doesn't look like any of my partitions is full?

You have 27Mb available.  The size of
kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb is over 14Mb which
suggests that it will unpack to perhaps 30Mb.  I think you need to make
more space in your root partition.


 I remounted /boot rw before the apt-get upgrade (as well as /usr which 
 is remounted automatically through a pre-invoke command in apt.conf)
 
 How to solve this?
 Can i do the --unpack anywhere else than in the default partition? (and 
 where does it unpack by the way?)

I think it unpacks into its intended location.  I don't know how to make
it do anything different through dpkg or apt.

 I don't use a sound card on this computer, can i remove this module 
 (safely and how?)

You could just delete it from /lib/... but that won't help you much
because you can't do that until _after_ it has been unpacked.

You can unpack the .deb file manually

  cd /some/path
  ar x /var/cache/apt/archives/kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb

That will give you a control tar archive and a data tar archive.  Unpack
the data archive and you should have the filetree that would be
installed.


Oliver Elphick



Re: apt-get upgrade fails due to kernel-image problem

2005-12-16 Thread gregory duchesnes
Do you know where i could find those 3Mb? I don't wnanna break anything 
and i don't know what i could remove from /


Oliver Elphick wrote:


On Fri, 2005-12-16 at 12:43 +0100, gregory duchesnes wrote:
 


Hi all,

I have a problem with apt-get when upgrading kernel-image, here is what 
i got :


# apt-get upgrade
   


...
 


utilisant .../kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb) ...
The directory /lib/modules/2.6.8-2-386 still exists. Continuing as directed.
Dépaquetage de la mise à jour de kernel-image-2.6.8-2-386 ...
dpkg : erreur de traitement de 
/var/cache/apt/archives/kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb 
(--unpack) :
échec dans « buffer_write(fd) » (8, ret=-1) : backend dpkg-deb pendant 
« ./lib/modules/2.6.8-2-386/kernel/sound/isa/sb/snd-emu8000-synth.ko »: 
Aucun espace disponible sur le périphérique
   


...
 


Seems like a space problem thouh here is a df -h :

Sys. de fich. Tail. Occ. Disp. %Occ. Monté sur
/dev/hda1  89M   58M   27M  69% /
   


...
 


Doesn't look like any of my partitions is full?
   



You have 27Mb available.  The size of
kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb is over 14Mb which
suggests that it will unpack to perhaps 30Mb.  I think you need to make
more space in your root partition.


 

I remounted /boot rw before the apt-get upgrade (as well as /usr which 
is remounted automatically through a pre-invoke command in apt.conf)


How to solve this?
Can i do the --unpack anywhere else than in the default partition? (and 
where does it unpack by the way?)
   



I think it unpacks into its intended location.  I don't know how to make
it do anything different through dpkg or apt.

 

I don't use a sound card on this computer, can i remove this module 
(safely and how?)
   



You could just delete it from /lib/... but that won't help you much
because you can't do that until _after_ it has been unpacked.

You can unpack the .deb file manually

 cd /some/path
 ar x /var/cache/apt/archives/kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb

That will give you a control tar archive and a data tar archive.  Unpack
the data archive and you should have the filetree that would be
installed.


Oliver Elphick


 




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: apt-get upgrade fails due to kernel-image problem

2005-12-16 Thread Oliver Elphick
On Fri, 2005-12-16 at 14:14 +0100, gregory duchesnes wrote:
 Do you know where i could find those 3Mb? I don't wnanna break anything 
 and i don't know what i could remove from /

It all depends what you have installed.

What might be simpler is to swap your /tmp and / partitions:

reboot into single user mode

unmount all filesystems except /tmp

rm -rf /tmp/*

cp -a /[A-Z0-9a-su-z]* /tmp

cp -a /t* /tmp  except for /tmp itself

mkdir /tmp/tmp

chmod a+trwx /tmp/tmp

vi /tmp/etc/fstab and swap the devices for / and /tmp

either (if you boot with grub)

vi /boot/grub/menu.lst and change the root partition in
both (hd0,n) and the root specification to the kernel, 

or (if you use lilo)

vi /etc/lilo.conf and change the root partition and then
(very important) run lilo to rewrite the boot sector

reboot  (note that the boot clearance of /tmp will now delete
all your old root partition files, so it is vital to make sure
that everything in /tmp is correct before you do this)

You should now have your root partition in a 449M partition and your
other problem will have gone away.  Of course, if you get it wrong you
could have wrecked your system...

Oliver


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get upgrade fails due to kernel-image problem

2005-12-16 Thread Michael Marsh
On 12/16/05, gregory duchesnes [EMAIL PROTECTED] wrote:
 Do you know where i could find those 3Mb? I don't wnanna break anything
 and i don't know what i could remove from /

Have you tried apt-get clean?

--
Michael A. Marsh
http://www.umiacs.umd.edu/~mmarsh
http://mamarsh.blogspot.com



Re: apt-get upgrade fails due to kernel-image problem

2005-12-16 Thread gregory duchesnes

Yes i did, didn't help.

Listen guys, i have 36Mb of modules in /lib/modules, what would happen 
if i erase (or just move for the moment) modules that i'm sure i don't 
need, like (isdn drivers)?


Michael Marsh wrote:


On 12/16/05, gregory duchesnes [EMAIL PROTECTED] wrote:
 


Do you know where i could find those 3Mb? I don't wnanna break anything
and i don't know what i could remove from /
   



Have you tried apt-get clean?

--
Michael A. Marsh
http://www.umiacs.umd.edu/~mmarsh
http://mamarsh.blogspot.com


 




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: apt-get upgrade fails due to kernel-image problem

2005-12-16 Thread Oliver Elphick
On Fri, 2005-12-16 at 09:08 -0500, Michael Marsh wrote:
 On 12/16/05, gregory duchesnes [EMAIL PROTECTED] wrote:
  Do you know where i could find those 3Mb? I don't wnanna break anything
  and i don't know what i could remove from /
 
 Have you tried apt-get clean?

That empties /var/cache/apt, but he already has /var in a separate
partition.




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get upgrade fails due to kernel-image problem

2005-12-16 Thread Oliver Elphick
On Fri, 2005-12-16 at 15:11 +0100, gregory duchesnes wrote:
 Yes i did, didn't help.
 
 Listen guys, i have 36Mb of modules in /lib/modules, what would happen 
 if i erase (or just move for the moment) modules that i'm sure i don't 
 need, like (isdn drivers)?

No problem.  IF they aren't used, they are just taking up space.  

If they are used (check with lsmod) that bit of your kernel stops
working.

Oliver


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get upgrade fails due to kernel-image problem

2005-12-16 Thread gregory duchesnes

Well lsmod gives me this :

Module  Size  Used by
ipv6  229892  14
ipt_LOG 6272  13
ipt_limit   2688  15
ipt_state   2304  26
ip_conntrack_ftp   72240  0
ip_conntrack   32908  2 ipt_state,ip_conntrack_ftp
iptable_filter  3072  1
ip_tables  16896  4 ipt_LOG,ipt_limit,ipt_state,iptable_filter
evdev   9088  0
pcspkr  3816  0
uhci_hcd   29328  0
ohci_hcd   19460  0
ehci_hcd   27908  0
usbcore   104164  3 uhci_hcd,ohci_hcd,ehci_hcd
8139cp 19072  0
pci_hotplug30640  0
intel_agp  20512  1
e100   30080  0
8139too23936  0
mii 4864  3 8139cp,e100,8139too
agpgart31784  1 intel_agp
capability  4872  0
commoncap   7168  1 capability
psmouse17800  0
ide_cd 38176  0
cdrom  35740  1 ide_cd
genrtc  9332  0
ext3  109672  9
jbd54552  1 ext3
ide_generic 1664  0
piix   12448  1
ide_disk   16768  11
ide_core  125028  4 ide_cd,ide_generic,piix,ide_disk
unix   26036  223
font8576  0
vesafb  6688  0
cfbcopyarea 3840  1 vesafb
cfbimgblt   3200  1 vesafb
cfbfillrect 3712  1 vesafb



Is there a quick way to get the list of modules and drivers i can erase?



Oliver Elphick wrote:


On Fri, 2005-12-16 at 15:11 +0100, gregory duchesnes wrote:
 


Yes i did, didn't help.

Listen guys, i have 36Mb of modules in /lib/modules, what would happen 
if i erase (or just move for the moment) modules that i'm sure i don't 
need, like (isdn drivers)?
   



No problem.  IF they aren't used, they are just taking up space.  


If they are used (check with lsmod) that bit of your kernel stops
working.

Oliver


 




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: apt-get upgrade fails due to kernel-image problem

2005-12-16 Thread Michael Marsh
On 12/16/05, gregory duchesnes [EMAIL PROTECTED] wrote:
 Well lsmod gives me this :
[snipped]

 Is there a quick way to get the list of modules and drivers i can erase?

I'd run the output of lsmod through sort and keep that in one window
for easy reference.  In another window, I'd run
$ find /lib/modules/2.4.21-20.EL/ -name '*.o' -ls | sort -rnk 7 | less

That should list the modules in order of decreasing size.  You can
start with the largest module, and work your way down.  For example,
on the RHEL system I'm currently sitting in front of, the largest
module is kernel/drivers/addon/qla2200/qla2300.o , which I'm not
using, and which weighs in at just over 700K.

--
Michael A. Marsh
http://www.umiacs.umd.edu/~mmarsh
http://mamarsh.blogspot.com



Re: apt-get upgrade fails due to kernel-image problem

2005-12-16 Thread Oliver Elphick
On Fri, 2005-12-16 at 15:25 +0100, gregory duchesnes wrote:
 Is there a quick way to get the list of modules and drivers i can erase?

Try this script:

#!/bin/bash
export module
for m in $(find /lib/modules -name '*.ko')
do
module=$(basename $(basename $m) .ko)
if [ -z $((echo $module
   lsmod | tail --lines=+2 |
   awk '{print $1}') | sort | uniq -d) ]
then
echo $m
fi
done



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get upgrade fails due to kernel-image problem

2005-12-16 Thread Dexter
Well, you have only 6,7M free on /boot device. Whole disk is partitioned
wery strangely. I would propose for desktop station:
1G /boot
1G swap
1G /var/log
rest /
Or something else, but defitely not, what you have now.
I would propose you to reinstall system and make bether partitioning.
   Dexter

On Fri, 2005-12-16 at 12:43 +0100, gregory duchesnes wrote:
 Hi all,
 
 I have a problem with apt-get when upgrading kernel-image, here is what 
 i got :
 
 # apt-get upgrade
 Lecture des listes de paquets... Fait
 Construction de l'arbre des dépendances... Fait
 Les paquets suivants seront mis à jour :
   kernel-image-2.6.8-2-386
 1 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
 21 partiellement installés ou enlevés.
 Il est nécessaire de prendre 0o/14,1Mo dans les archives.
 Après dépaquetage, 4096o d'espace disque supplémentaires seront utilisés.
 Souhaitez-vous continuer ? [O/n]
 (Lecture de la base de données... 16439 fichiers et répertoires déjà 
 installés.)
 Préparation du remplacement de kernel-image-2.6.8-2-386 2.6.8-16 (en 
 utilisant .../kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb) ...
 The directory /lib/modules/2.6.8-2-386 still exists. Continuing as directed.
 Dépaquetage de la mise à jour de kernel-image-2.6.8-2-386 ...
 dpkg : erreur de traitement de 
 /var/cache/apt/archives/kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb 
 (--unpack) :
  échec dans « buffer_write(fd) » (8, ret=-1) : backend dpkg-deb pendant 
 « ./lib/modules/2.6.8-2-386/kernel/sound/isa/sb/snd-emu8000-synth.ko »: 
 Aucun espace disponible sur le périphérique
 dpkg-deb: sous-processus paste tué par le signal (Relais brisé (pipe))
 Searching for GRUB installation directory ... found: /boot/grub .
 Testing for an existing GRUB menu.list file... found: /boot/grub/menu.lst .
 Searching for splash image... none found, skipping...
 Found kernel: /vmlinuz-2.6.8-2-386
 Updating /boot/grub/menu.lst ... done
 
 Des erreurs ont été rencontrées pendant l'exécution :
  /var/cache/apt/archives/kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb
 E: Sub-process /usr/bin/dpkg returned an error code (1)
 
 
 
 I'm sorry that messages are in french but i will do a quick translation 
 of the problematic lines :
 
 dpkg : error while treating 
 /var/cache/apt/archives/kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb 
 (--unpack) :
   failure in « buffer_write(fd) » (8, ret=-1) : backend dpkg-deb while « 
 ./lib/modules/2.6.8-2-386/kernel/sound/isa/sb/snd-emu8000-synth.ko »: No 
 space left on device
 dpkg-deb: paste subprocces killed by signal (broken pipe)
 
 
 Seems like a space problem thouh here is a df -h :
 
 Sys. de fich. Tail. Occ. Disp. %Occ. Monté sur
 /dev/hda1  89M   58M   27M  69% /
 tmpfs 252M 0  252M   0% /dev/shm
 /dev/hda3  15M  7,3M  6,7M  53% /boot
 /dev/hda6  89M  4,1M   80M   5% /home
 /dev/hda7 449M  8,1M  417M   2% /tmp
 /dev/hda5 897M  184M  666M  22% /usr
 /dev/hda8 449M   69M  356M  17% /var
 /dev/hda10449M   29M  397M   7% /var/lib/mysql
 /dev/hda9 449M   29M  397M   7% /var/log
 /dev/hda11 46G   61M   44G   1% /var/vmail
 
 Doesn't look like any of my partitions is full?
 
 I remounted /boot rw before the apt-get upgrade (as well as /usr which 
 is remounted automatically through a pre-invoke command in apt.conf)
 
 How to solve this?
 Can i do the --unpack anywhere else than in the default partition? (and 
 where does it unpack by the way?)
 I don't use a sound card on this computer, can i remove this module 
 (safely and how?)
 
 
 
 Thanks for your help
 
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: apt-get upgrade fails due to kernel-image problem

2005-12-16 Thread gregory duchesnes

This is not a desktop station...

Dexter wrote:


Well, you have only 6,7M free on /boot device. Whole disk is partitioned
wery strangely. I would propose for desktop station:
1G /boot
1G swap
1G /var/log
rest /
Or something else, but defitely not, what you have now.
I would propose you to reinstall system and make bether partitioning.
  Dexter

On Fri, 2005-12-16 at 12:43 +0100, gregory duchesnes wrote:
 


Hi all,

I have a problem with apt-get when upgrading kernel-image, here is what 
i got :


# apt-get upgrade
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
Les paquets suivants seront mis à jour :
 kernel-image-2.6.8-2-386
1 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
21 partiellement installés ou enlevés.
Il est nécessaire de prendre 0o/14,1Mo dans les archives.
Après dépaquetage, 4096o d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n]
(Lecture de la base de données... 16439 fichiers et répertoires déjà 
installés.)
Préparation du remplacement de kernel-image-2.6.8-2-386 2.6.8-16 (en 
utilisant .../kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb) ...

The directory /lib/modules/2.6.8-2-386 still exists. Continuing as directed.
Dépaquetage de la mise à jour de kernel-image-2.6.8-2-386 ...
dpkg : erreur de traitement de 
/var/cache/apt/archives/kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb 
(--unpack) :
échec dans « buffer_write(fd) » (8, ret=-1) : backend dpkg-deb pendant 
« ./lib/modules/2.6.8-2-386/kernel/sound/isa/sb/snd-emu8000-synth.ko »: 
Aucun espace disponible sur le périphérique

dpkg-deb: sous-processus paste tué par le signal (Relais brisé (pipe))
Searching for GRUB installation directory ... found: /boot/grub .
Testing for an existing GRUB menu.list file... found: /boot/grub/menu.lst .
Searching for splash image... none found, skipping...
Found kernel: /vmlinuz-2.6.8-2-386
Updating /boot/grub/menu.lst ... done

Des erreurs ont été rencontrées pendant l'exécution :
/var/cache/apt/archives/kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)



I'm sorry that messages are in french but i will do a quick translation 
of the problematic lines :


dpkg : error while treating 
/var/cache/apt/archives/kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb 
(--unpack) :
 failure in « buffer_write(fd) » (8, ret=-1) : backend dpkg-deb while « 
./lib/modules/2.6.8-2-386/kernel/sound/isa/sb/snd-emu8000-synth.ko »: No 
space left on device

dpkg-deb: paste subprocces killed by signal (broken pipe)


Seems like a space problem thouh here is a df -h :

Sys. de fich. Tail. Occ. Disp. %Occ. Monté sur
/dev/hda1  89M   58M   27M  69% /
tmpfs 252M 0  252M   0% /dev/shm
/dev/hda3  15M  7,3M  6,7M  53% /boot
/dev/hda6  89M  4,1M   80M   5% /home
/dev/hda7 449M  8,1M  417M   2% /tmp
/dev/hda5 897M  184M  666M  22% /usr
/dev/hda8 449M   69M  356M  17% /var
/dev/hda10449M   29M  397M   7% /var/lib/mysql
/dev/hda9 449M   29M  397M   7% /var/log
/dev/hda11 46G   61M   44G   1% /var/vmail

Doesn't look like any of my partitions is full?

I remounted /boot rw before the apt-get upgrade (as well as /usr which 
is remounted automatically through a pre-invoke command in apt.conf)


How to solve this?
Can i do the --unpack anywhere else than in the default partition? (and 
where does it unpack by the way?)
I don't use a sound card on this computer, can i remove this module 
(safely and how?)




Thanks for your help


   




 




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: apt-get upgrade fails due to kernel-image problem

2005-12-16 Thread Dexter
Than see some documentation. E.g.
http://www.tldp.org/LDP/Linux-Filesystem-Hierarchy/html/index.html
Now you have problem with disk space /boot. Later, you can have problem
with space on / or on /home.


On Fri, 2005-12-16 at 17:26 +0100, gregory duchesnes wrote:
 This is not a desktop station...
 
 Dexter wrote:
 
 Well, you have only 6,7M free on /boot device. Whole disk is partitioned
 wery strangely. I would propose for desktop station:
 1G /boot
 1G swap
 1G /var/log
 rest /
 Or something else, but defitely not, what you have now.
 I would propose you to reinstall system and make bether partitioning.
Dexter
 
 On Fri, 2005-12-16 at 12:43 +0100, gregory duchesnes wrote:
   
 
 Hi all,
 
 I have a problem with apt-get when upgrading kernel-image, here is what 
 i got :
 
 # apt-get upgrade
 Lecture des listes de paquets... Fait
 Construction de l'arbre des dépendances... Fait
 Les paquets suivants seront mis à jour :
   kernel-image-2.6.8-2-386
 1 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
 21 partiellement installés ou enlevés.
 Il est nécessaire de prendre 0o/14,1Mo dans les archives.
 Après dépaquetage, 4096o d'espace disque supplémentaires seront utilisés.
 Souhaitez-vous continuer ? [O/n]
 (Lecture de la base de données... 16439 fichiers et répertoires déjà 
 installés.)
 Préparation du remplacement de kernel-image-2.6.8-2-386 2.6.8-16 (en 
 utilisant .../kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb) ...
 The directory /lib/modules/2.6.8-2-386 still exists. Continuing as directed.
 Dépaquetage de la mise à jour de kernel-image-2.6.8-2-386 ...
 dpkg : erreur de traitement de 
 /var/cache/apt/archives/kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb 
 (--unpack) :
  échec dans « buffer_write(fd) » (8, ret=-1) : backend dpkg-deb pendant 
 « ./lib/modules/2.6.8-2-386/kernel/sound/isa/sb/snd-emu8000-synth.ko »: 
 Aucun espace disponible sur le périphérique
 dpkg-deb: sous-processus paste tué par le signal (Relais brisé (pipe))
 Searching for GRUB installation directory ... found: /boot/grub .
 Testing for an existing GRUB menu.list file... found: /boot/grub/menu.lst .
 Searching for splash image... none found, skipping...
 Found kernel: /vmlinuz-2.6.8-2-386
 Updating /boot/grub/menu.lst ... done
 
 Des erreurs ont été rencontrées pendant l'exécution :
  /var/cache/apt/archives/kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb
 E: Sub-process /usr/bin/dpkg returned an error code (1)
 
 
 
 I'm sorry that messages are in french but i will do a quick translation 
 of the problematic lines :
 
 dpkg : error while treating 
 /var/cache/apt/archives/kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb 
 (--unpack) :
   failure in « buffer_write(fd) » (8, ret=-1) : backend dpkg-deb while « 
 ./lib/modules/2.6.8-2-386/kernel/sound/isa/sb/snd-emu8000-synth.ko »: No 
 space left on device
 dpkg-deb: paste subprocces killed by signal (broken pipe)
 
 
 Seems like a space problem thouh here is a df -h :
 
 Sys. de fich. Tail. Occ. Disp. %Occ. Monté sur
 /dev/hda1  89M   58M   27M  69% /
 tmpfs 252M 0  252M   0% /dev/shm
 /dev/hda3  15M  7,3M  6,7M  53% /boot
 /dev/hda6  89M  4,1M   80M   5% /home
 /dev/hda7 449M  8,1M  417M   2% /tmp
 /dev/hda5 897M  184M  666M  22% /usr
 /dev/hda8 449M   69M  356M  17% /var
 /dev/hda10449M   29M  397M   7% /var/lib/mysql
 /dev/hda9 449M   29M  397M   7% /var/log
 /dev/hda11 46G   61M   44G   1% /var/vmail
 
 Doesn't look like any of my partitions is full?
 
 I remounted /boot rw before the apt-get upgrade (as well as /usr which 
 is remounted automatically through a pre-invoke command in apt.conf)
 
 How to solve this?
 Can i do the --unpack anywhere else than in the default partition? (and 
 where does it unpack by the way?)
 I don't use a sound card on this computer, can i remove this module 
 (safely and how?)
 
 
 
 Thanks for your help
 
 
 
 
 
 
   
 
 
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



mkinitrd ? kernel image problem !!

2000-08-30 Thread Tommy Wu
Hi!

  I've found that there is no mkinitrd commnad in Debian.
  Is there any tools or package can do the same thing like mkinitrd in RedHat ?
 
  In RedHat:

Use mkinitrd I can give a new pathname for new kernel's modules.
Like /boot/vmlinuz-2.2.17-1 with /lib/modules/2.2.17-1
and /boot/vmliniz-2.2.17-2 with /lib/modules/2.2.17-2 ... etc.

So I can just only add a new entry in /etc/lilo.conf, then reboot for test
new kernel. If failed, I can easy to switch back the old kernel, because
they are use the different modules path.

  But in Debian:

I can't find mkinitrd program. So everytime I need to test new kernel, I
must to move the modules path /lib/modules/2.2.17 to /lib/modules/2.2.17.old
and move the /boot/vmlinuz-2.2.17 to /boot/vmlinuz-2.2.17.old, then install
the new kernel and modules, then reboot it.
  
If this new kernel can't work. I found there is no easy way to switch back.
Because the /lib/modules/2.2.17 is for new kernel, so the old kernel image
can't find some modules in the path contain new modules.

So I must boot from a floopy or CD-ROM to mount the disk, then move the
/lib/modules/2.2.17.old back to /lib/modules/2.2.17 to let old kernel image
work.

  Is there any suggest for testing new kernel and modules easy like I do it in
  a RedHat box ?

-- 

Tommy Wu
mailto:[EMAIL PROTECTED]
http://www.teatime.com.tw/~tommy
ICQ: 22766091
Mobile Phone: +886 936 909490
TeaTime BBS +886 2 31515964 24Hrs V.Everything



Re: mkinitrd ? kernel image problem !!

2000-08-30 Thread Eric G . Miller
See kernel-package.  It's the Debian way to build an install kernels.
Takes care of all that stuff...

$ cd $HOME/src/kernel-source-X.X.X
$ make menuconfig
$ make-kpkg clean
$ fakeroot make-kpkg --revision 5:myhost.1.0 kernel_image
$ su 
Password:
$ dpkg -i ../kernel-image*.deb
$ reboot

You might edit lilo.conf before the install. dpkg will run lilo for you.

On Wed, Aug 30, 2000 at 03:19:01PM +0800, Tommy Wu wrote:
 Hi!
 
   I've found that there is no mkinitrd commnad in Debian.  Is there
   any tools or package can do the same thing like mkinitrd in RedHat ?
  
   In RedHat:
 
 Use mkinitrd I can give a new pathname for new kernel's modules.
 Like /boot/vmlinuz-2.2.17-1 with /lib/modules/2.2.17-1 and
 /boot/vmliniz-2.2.17-2 with /lib/modules/2.2.17-2 ... etc.
 
 So I can just only add a new entry in /etc/lilo.conf, then reboot
 for test new kernel. If failed, I can easy to switch back the old
 kernel, because they are use the different modules path.
 
   But in Debian:
 
 I can't find mkinitrd program. So everytime I need to test new
 kernel, I must to move the modules path /lib/modules/2.2.17 to
 /lib/modules/2.2.17.old and move the /boot/vmlinuz-2.2.17 to
 /boot/vmlinuz-2.2.17.old, then install the new kernel and modules,
 then reboot it.
   
 If this new kernel can't work. I found there is no easy way to
 switch back.  Because the /lib/modules/2.2.17 is for new kernel,
 so the old kernel image can't find some modules in the path
 contain new modules.
 
 So I must boot from a floopy or CD-ROM to mount the disk, then
 move the /lib/modules/2.2.17.old back to /lib/modules/2.2.17 to
 let old kernel image work.
 
   Is there any suggest for testing new kernel and modules easy like I
   do it in a RedHat box ?
 
 -- 
 
 Tommy Wu mailto:[EMAIL PROTECTED]
 http://www.teatime.com.tw/~tommy ICQ: 22766091 Mobile Phone: +886
 936 909490 TeaTime BBS +886 2 31515964 24Hrs V.Everything
 
 
 -- Unsubscribe?  mail -s unsubscribe
 [EMAIL PROTECTED]  /dev/null
 
 

-- 
Copyright © 2000 Megalomania Industries, Inc.



Re: kernel-image problem

1998-08-15 Thread Manoj Srivastava
Hi,
Could you copy the exact error message and post it here? It is
 hard to tell exactly what is happening and how to help you fix it.

manoj
-- 
 Preudhomme's Law of Window Cleaning: It's on the other side.
Manoj Srivastava  [EMAIL PROTECTED] http://www.datasync.com/%7Esrivasta/
Key C7261095 fingerprint = CB D9 F4 12 68 07 E4 05  CC 2D 27 12 1D F5 E8 6E


Re: kernel-image problem

1998-08-15 Thread Ralph Winslow
When George Bonser wrote, I replied:

Thank you, George!  That fixed it - I really must read the dselect and
dpkg documentation in depth one of these days. 

 
 On Fri, 14 Aug 1998, Ralph Winslow wrote:
 
  I've re-built my kernel so as to enable the sound card and now
  deselect(apt) wants desparately to upgrade my kernel-image to 
  a newer version.  I 'minus'ed it, and now it asks to remove 
  the kernel and when I decline, gives a configuration error.
 
 You probably should have used = rather than - since - means remove the
 kernel.
 
 George Bonser
 
 The Linux We're never going out of business sale at an FTP site near you! 
 --
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null

-- 
-
Ralph Winslow [EMAIL PROTECTED]
Insert sardonic phrase here


kernel-image problem

1998-08-14 Thread Ralph Winslow
I've re-built my kernel so as to enable the sound card nad noe
deselect(apt) 
wants desparately to upgrade my kernel-image to a newer version.  I
minused
it, and now it asks to remove the kernel and when I decline, it gives a
configuration error.

How can I trick dselect into accepting my kernel compiled from source as
the right stuff.  BTW I used make-kpkg (thanks Manoj) and installed
with dpkg -i kernel-image-2.0.34*deb

-- 
-
Ralph Winslow [EMAIL PROTECTED]
Insert sardonic phrase here