Author Topic: /boot partition full  (Read 7176 times)

EddieA

  • Zen Monk
  • **
  • Posts: 70
  • Karma: +3/-0
    • View Profile
Re: /boot partition full
« Reply #15 on: June 07, 2013, 07:40:32 am »
Do you mean that if you let Zentyal using the whole disk, it will create dedicated /boot partition?
Yes, and the rest of the disk as LVM, where it creates 2 logical drives.  One for / (root) and the other a swap partition.

I saw this on both a 2.2 and a 3.0 install to a clean disk.

Cheers.

christian

  • Guest
Re: /boot partition full
« Reply #16 on: June 07, 2013, 07:47:25 am »
Clear. So perhaps this is the right time to ask Zentyal for slightly larger partition  ;)
On the other hand, where is the "right" limit ? 3, 4, 5 kernels ?  (well, even 4 will need only half a giga  ;D)

Labomba

  • Zen Monk
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
Re: /boot partition full
« Reply #17 on: June 07, 2013, 12:16:44 pm »
Installation disk zentyal 3.0 has been used with the use entire disk option, never adjusted the /boot partition?
Results of:
Uname -r: 2.6.32-5-amd64

dpkg --list | grep linux-image:
ii  linux-image-2.6-amd64                2.6.32+29                         Linux                                                             2.6 for 64-bit PCs (meta-package)
ii  linux-image-2.6.32-5-amd64           2.6.32-48squeeze3                 Linux

greetzzz

Try remove old kernels...

In case you didn't notice, his question is exactly this one  ;D

Quote
noticed that the /boot partition is used for 100%, so I have have to remove some kernels but it keeps telling me about dependencies linked to the used kernel.

I suppose as a warning when running
Code: [Select]
sudo apt-get purge linux-image-x.x.x-x-server
If you can help with this, you're very welcome  ;)

@Labomba:
what's the result of
Code: [Select]
uname -rand
Code: [Select]
dpkg --list | grep linux-image

Labomba

  • Zen Monk
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
Re: /boot partition full
« Reply #18 on: June 07, 2013, 12:24:29 pm »
Hello Christian,

Tried it with the gparted boot-cd, but no go.
Maybe i'll give it a try with the Ubuntu LiveCD.....
greetzz

If you boot with Ubuntu LiveCD, I don't wee yet why you could not resize

EddieA

  • Zen Monk
  • **
  • Posts: 70
  • Karma: +3/-0
    • View Profile
Re: /boot partition full
« Reply #19 on: June 08, 2013, 01:02:14 am »
Installation disk zentyal 3.0 has been used with the use entire disk option, never adjusted the /boot partition?
Results of:
Uname -r: 2.6.32-5-amd64

dpkg --list | grep linux-image:
ii  linux-image-2.6-amd64                2.6.32+29                         Linux                                                             2.6 for 64-bit PCs (meta-package)
ii  linux-image-2.6.32-5-amd64           2.6.32-48squeeze3                 Linux
I'm not sure what's going on there.  Zentyal 3 uses precise, not squeeze and the kernel version is 3.5, not 2.6.

Exactly what is in /boot

Cheers.

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 867
  • Karma: +59/-0
    • View Profile
Re: /boot partition full
« Reply #20 on: June 08, 2013, 01:51:27 am »
First,  228M is the default for Ubuntu to assign to /boot and has been for quite some time. 
Second,  this is a normal problem with linux especially if you upgrade in place over many versions.
Third,  it is straight forward to recover from. 
Open a terminal window on the desktop and type in

Code: [Select]
sudo apt-get install synaptic

supplying the password when prompted

Next type in
Code: [Select]
sudo synaptic

supplying your password when prompted.

At the top and near the center of the window that pops up you see Quick Filter.

Type in linux-image.

Along the right side select Installed

In the main window you will now see several entries like:

linux-image-3.2.40-generic

find the lowest version number and right click it at the left side of its entry over the box.

Select remove and click apply.

Verify that the boot partition is becoming less full by typing in

Code: [Select]
df -h

at a command prompt/terminal window.

Repeat until you have enough free room to install the updated kernel making sure to leave two prior versions in place.


Sam Graf

  • Guest
Re: /boot partition full
« Reply #21 on: June 08, 2013, 04:46:31 am »
Second,  this is a normal problem with linux especially if you upgrade in place over many versions.
Third, it is straight forward to recover from.

That still leaves unanswered the interesting point made by EddieA. The presence of a Debian kernel on a Zentyal machine moves the machine's history outside simple in-place upgrades.

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 867
  • Karma: +59/-0
    • View Profile
Re: /boot partition full
« Reply #22 on: June 08, 2013, 05:35:43 am »
My guess would be prior install.  Think about it for a second.  Default behavior would not be to remove the previous kernel image because the "new" one might be broken.  If not removed during the actual package upgrade, where would the trigger come from?   

I am kiting this idea but it makes sense,  if you were the distribution maintainer and you found a previous /boot partition would you?


A:  format it --- there is no other operating system here
B:  leave it alone and just add your bits to it --- I don't know what other operating systems are here


half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 867
  • Karma: +59/-0
    • View Profile
Re: /boot partition full
« Reply #23 on: June 08, 2013, 06:00:51 am »
Installation disk zentyal 3.0 has been used with the use entire disk option, never adjusted the /boot partition?
Results of:
Uname -r: 2.6.32-5-amd64

dpkg --list | grep linux-image:
ii  linux-image-2.6-amd64                2.6.32+29                         Linux                                                             2.6 for 64-bit PCs (meta-package)
ii  linux-image-2.6.32-5-amd64           2.6.32-48squeeze3                 Linux
I'm not sure what's going on there.  Zentyal 3 uses precise, not squeeze and the kernel version is 3.5, not 2.6.

Exactly what is in /boot

Cheers.

The grub boot loader will own this partition.  It contains the grub boot loader and configuration files.  It also will have all of the kernels that system can boot to.   There will be modules to handle things like ext3/4 file systems and hypervisor bits that need to be loaded early in the boot process (think xen).

If memory serves grub began to replace the LILO boot loader around 2000 or 2001.  See my other comments for my thinking on why you would have a debian kernel image on your boot partition.

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 867
  • Karma: +59/-0
    • View Profile
Re: /boot partition full
« Reply #24 on: June 08, 2013, 06:19:12 am »
Maybe I shouldn't answer questions late at night.   I see now that you are saying that there is an available debian kernel package being listed by dpkg.  Do you have any debian.org references in your /etc/apt/sources.list ?

half_life

  • Bug Hunter
  • Zen Hero
  • *****
  • Posts: 867
  • Karma: +59/-0
    • View Profile
Re: /boot partition full
« Reply #25 on: June 08, 2013, 06:23:05 am »
The kernel version is in sync with what you would find on a 2.2 system except the squeeze kernel.   Is he running under Xen perhaps?


Labomba

  • Zen Monk
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
Re: /boot partition full
« Reply #26 on: June 10, 2013, 02:58:28 pm »
Hello,
The strange thing about this all is that prior OS installation never was a Debian/Ubuntu....

no debian.org in /etc/apt/sources.list
Code: [Select]
root@INETSRV:/etc/apt# vi sources.list
#

# deb cdrom:[Ubuntu-Server 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120817.3)]/ dists/precise/main/binary-i386/
# deb cdrom:[Ubuntu-Server 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120817.3)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Ubuntu-Server 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120817.3)]/ precise extras main restricted

#deb cdrom:[Ubuntu-Server 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120817.3)]/ dists/precise/main/binary-i386/
#deb cdrom:[Ubuntu-Server 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120817.3)]/ dists/precise/restricted/binary-i386/
#deb cdrom:[Ubuntu-Server 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120817.3)]/ precise extras main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://be.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://be.archive.ubuntu.com/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://be.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://be.archive.ubuntu.com/ubuntu/ precise-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://be.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://be.archive.ubuntu.com/ubuntu/ precise universe
deb http://be.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://be.archive.ubuntu.com/ubuntu/ precise-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://be.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://be.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://be.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://be.archive.ubuntu.com/ubuntu/ precise-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://be.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://be.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://ppa.launchpad.net/zentyal/3.0/ubuntu precise main

deb http://archive.zentyal.org/zentyal 3.0 main extra

deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.

The kernel version is in sync with what you would find on a 2.2 system except the squeeze kernel.   Is he running under Xen perhaps?

Labomba

  • Zen Monk
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
Re: /boot partition full
« Reply #27 on: June 10, 2013, 03:12:02 pm »
Previously this server was installed with a older version of Zentyal indeed  ;D

Hello,
The strange thing about this all is that prior OS installation never was a Debian/Ubuntu....

no debian.org in /etc/apt/sources.list
Code: [Select]
root@INETSRV:/etc/apt# vi sources.list
#

# deb cdrom:[Ubuntu-Server 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120817.3)]/ dists/precise/main/binary-i386/
# deb cdrom:[Ubuntu-Server 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120817.3)]/ dists/precise/restricted/binary-i386/
# deb cdrom:[Ubuntu-Server 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120817.3)]/ precise extras main restricted

#deb cdrom:[Ubuntu-Server 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120817.3)]/ dists/precise/main/binary-i386/
#deb cdrom:[Ubuntu-Server 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120817.3)]/ dists/precise/restricted/binary-i386/
#deb cdrom:[Ubuntu-Server 12.04.1 LTS _Precise Pangolin_ - Release amd64 (20120817.3)]/ precise extras main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://be.archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://be.archive.ubuntu.com/ubuntu/ precise main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://be.archive.ubuntu.com/ubuntu/ precise-updates main restricted
deb-src http://be.archive.ubuntu.com/ubuntu/ precise-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://be.archive.ubuntu.com/ubuntu/ precise universe
deb-src http://be.archive.ubuntu.com/ubuntu/ precise universe
deb http://be.archive.ubuntu.com/ubuntu/ precise-updates universe
deb-src http://be.archive.ubuntu.com/ubuntu/ precise-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://be.archive.ubuntu.com/ubuntu/ precise multiverse
deb-src http://be.archive.ubuntu.com/ubuntu/ precise multiverse
deb http://be.archive.ubuntu.com/ubuntu/ precise-updates multiverse
deb-src http://be.archive.ubuntu.com/ubuntu/ precise-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://be.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse
deb-src http://be.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse

deb http://ppa.launchpad.net/zentyal/3.0/ubuntu precise main

deb http://archive.zentyal.org/zentyal 3.0 main extra

deb http://security.ubuntu.com/ubuntu precise-security main restricted
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted
deb http://security.ubuntu.com/ubuntu precise-security universe
deb-src http://security.ubuntu.com/ubuntu precise-security universe
deb http://security.ubuntu.com/ubuntu precise-security multiverse
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.

The kernel version is in sync with what you would find on a 2.2 system except the squeeze kernel.   Is he running under Xen perhaps?

Sam Graf

  • Guest
Re: /boot partition full
« Reply #28 on: June 10, 2013, 05:19:32 pm »
The strange thing about this all is that prior OS installation never was a Debian/Ubuntu....

Very strange. This impacts your problem (it seems to me) by making the state of the system less than certain. You've mentioned dependency problems, etc. It seems short term that you have to go down the route of increasing the partition size, let things update, then take another look at cleaning up.

Labomba

  • Zen Monk
  • **
  • Posts: 63
  • Karma: +0/-0
    • View Profile
Re: /boot partition full
« Reply #29 on: June 11, 2013, 07:27:14 am »
I will probably re-install the system, just waiting for the new 3.2 installation disk arriving next week...
Can you guys confirm me what is the best way to partition the system?
I shore am not going to select use whole disk option  :-X
Normally I create a swap and ext4 partition, should I do this o r something else?

I hope that they update this problem in the releases to come.....