LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-16-2015, 01:15 PM   #1
tearsforhari
Member
 
Registered: Mar 2015
Posts: 79

Rep: Reputation: Disabled
What happens with the /boot directory is full in Ubuntu 12.04.5?


Hi. I think because the auto-update is on, old kernels and their dependencies continuously fill up the /boot partition. Can someone tell me if this is an issue? That is, will it affect cron jobs or any other process on the virtual machine?

I just figured out how to manually purge them using the command prompt. But it seems to be a design flaw in Ubuntu, no?
 
Old 05-16-2015, 01:34 PM   #2
JeremyBoden
Member
 
Registered: Nov 2011
Posts: 939

Rep: Reputation: 174Reputation: 174
The /boot partition is only used during the initial boot of the host.

So VM's are not affected.

Host crontabs are stored in /var
 
Old 05-16-2015, 01:40 PM   #3
whm1974
Member
 
Registered: Apr 2015
Posts: 138

Rep: Reputation: 27
This only becomes a problem with a separate /boot partition. Instead have a separate / and /home partitions and you will never have a problem.
 
Old 05-16-2015, 01:43 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
I've noticed this as well. On my boxes I just go through and regularly purge old kernels, however Ubuntu has other ways of dealing with this. This page in the documentation has some tips.

I've fgound when /boot is full apt-get will fail to work correctly and some manual clean-up work is needed.
 
Old 05-16-2015, 02:27 PM   #5
tearsforhari
Member
 
Registered: Mar 2015
Posts: 79

Original Poster
Rep: Reputation: Disabled
Yes, thank you all. I've too noted that apt-get didn't work properly when the /boot was full. Even after moving everything out of the /boot (which was a mistake) apt-get worked better, but still failed.

Yes, I purged the old kernels with the following:
Code:
>uname -r
3.2.0-83-generic-pae
>dpkg --list | grep linux-image
ii  linux-image-3.2.0-82-generic-pae       3.2.0-82.119                            Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii  linux-image-3.2.0-83-generic-pae       3.2.0-83.120                            Linux kernel image for version 3.2.0 on 32 bit x86 SMP
ii  linux-image-generic-pae                3.2.0.83.97                             Generic Linux kernel image
>sudo apt-get purge linux-image-3.2.0.82-generic (this is the old kernel file to be removed)
>sudo update-grub2
Anyone know how to turn off the auto-updates from the command line?
 
Old 05-16-2015, 02:29 PM   #6
tearsforhari
Member
 
Registered: Mar 2015
Posts: 79

Original Poster
Rep: Reputation: Disabled
whm1974: I'm not following you. I have a separate / /boot and /home?
 
Old 05-16-2015, 03:30 PM   #7
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
post output of
Quote:
sudo fdisk -l
df -h
 
Old 05-16-2015, 03:54 PM   #8
tearsforhari
Member
 
Registered: Mar 2015
Posts: 79

Original Poster
Rep: Reputation: Disabled
I had problems with another machine. But here is the one that I am currently using:

Code:
>sudo fdisk -l
Disk /dev/sda: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders, total 312500000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00050045

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      499711      248832   83  Linux
/dev/sda2          501758   312498175   155998209    5  Extended
/dev/sda5          501760   312498175   155998208   8e  Linux LVM

Disk /dev/sdb: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders, total 312500000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/mapper/Opera-root: 28.5 GB, 28458352640 bytes
255 heads, 63 sectors/track, 3459 cylinders, total 55582720 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/Opera-root doesn't contain a valid partition table

Disk /dev/mapper/Opera-swap_1: 3485 MB, 3485466624 bytes
255 heads, 63 sectors/track, 423 cylinders, total 6807552 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/Opera-swap_1 doesn't contain a valid partition table

Disk /dev/mapper/cryptswap1: 3485 MB, 3485466624 bytes
255 heads, 63 sectors/track, 423 cylinders, total 6807552 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4a1ab871

Disk /dev/mapper/cryptswap1 doesn't contain a valid partition table
Code:
Filesystem              Size  Used Avail Use Mounted on
/dev/mapper/Opera-root   27G  4.1G   21G  17% /
udev                    996M  4.0K  996M   1% /dev
tmpfs                   202M  788K  201M   1% /run
none                    5.0M     0  5.0M   0% /run/lock
none                   1006M  224K 1006M   1% /run/shm
/dev/sda1               228M   62M  155M  29% /boot
/home/hgill/.Private     27G  4.1G   21G  17% /home/tears
 
Old 05-17-2015, 06:04 AM   #9
whm1974
Member
 
Registered: Apr 2015
Posts: 138

Rep: Reputation: 27
Quote:
whm1974: I'm not following you. I have a separate / /boot and /home?
I meant to say that just have / and /home in separate partition. And you don't need to put /boot in it's own separate partition.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Boot any machine w/ full installed Usb ubuntu? Fcukinyahoo Linux - Newbie 1 09-29-2011 02:55 AM
full installation of ubuntu after dual boot trade Linux - Newbie 5 03-07-2009 10:09 AM
RHEL4 root directory says full but sum of use is nowhere near full. Why? SteveInTallyFL Linux - Server 11 02-05-2009 06:45 AM
The / directory is full sunhui Linux - General 5 03-30-2007 01:11 PM
how to remove full directory ? marlor Slackware 9 09-24-2004 08:18 AM


All times are GMT -5. The time now is 04:53 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration