zero bytes in boot partition during startup

Asked by dimitris alexopoulos

hi , i am new to ubuntu (since may ) and i am facing a problem
after startup and when i try to update i get the message : The volume "boot" has only 0 bytes disk space remaining
what can i do to solve the problem?
Can i give more space to boot volume? i tried synaptic but i dont know what to uninstall
my distribution is ubuntu 14.04 LTS x32 and my laptop a quite old toshiba satelitte (2005) Intel® Pentium(R) M processor 1.73GHz

thnks

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
michael (yellupcm-gmail) said :
#1

What is output of

sudo fdisk -l

Revision history for this message
dimitris alexopoulos (dimitrisalx) said :
#2

hi

dmt@dim-agg:~$ sudo fdisk -l
[sudo] password for dmt:

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders, total 156301488 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: 0x000b2a7a

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

Disk /dev/mapper/ubuntu--vg-root: 77.6 GB, 77628178432 bytes
255 heads, 63 sectors/track, 9437 cylinders, total 151617536 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/ubuntu--vg-root doesn't contain a valid partition table

Disk /dev/mapper/ubuntu--vg-swap_1: 2139 MB, 2139095040 bytes
255 heads, 63 sectors/track, 260 cylinders, total 4177920 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/ubuntu--vg-swap_1 doesn't contain a valid partition table

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

What is the output of:

uname -a;lsb_release -a; dpkg -l | grep linux-image | awk {'print $2'}

Thanks

Revision history for this message
dimitris alexopoulos (dimitrisalx) said :
#4

Linux dim-agg 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:45 UTC 2014 i686 i686 i686 GNU/Linux
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.1 LTS
Release: 14.04
Codename: trusty
linux-image-3.11.0-12-generic
linux-image-3.11.0-17-generic
linux-image-3.11.0-18-generic
linux-image-3.13.0-24-generic
linux-image-3.13.0-27-generic
linux-image-3.13.0-29-generic
linux-image-3.13.0-30-generic
linux-image-3.13.0-32-generic
linux-image-3.13.0-33-generic
linux-image-3.13.0-34-generic
linux-image-3.13.0-35-generic
linux-image-3.13.0-36-generic
linux-image-extra-3.11.0-12-generic
linux-image-extra-3.11.0-17-generic
linux-image-extra-3.11.0-18-generic
linux-image-extra-3.13.0-24-generic
linux-image-extra-3.13.0-27-generic
linux-image-extra-3.13.0-29-generic
linux-image-extra-3.13.0-30-generic
linux-image-extra-3.13.0-32-generic
linux-image-extra-3.13.0-33-generic
linux-image-extra-3.13.0-34-generic
linux-image-extra-3.13.0-35-generic
linux-image-extra-3.13.0-36-generic
linux-image-generic

thnks

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5

sudo apt-get --purge remove linux-image-3.11*

sudo apt-get --purge remove linux-image-3.13.0-2*

sudo apt-get --purhe remove linux-image-3.13.0-30-generic

sudo apt-get --purhe remove linux-image-3.13.0-32-generic

sudo apt-get --purhe remove linux-image-3.13.0-33-generic

sudo apt-get --purhe remove linux-image-3.13.0-34-generic

sudo apt-get --purge autoremove

clear; df -h | ģrep boot

Is it ok now?

Revision history for this message
dimitris alexopoulos (dimitrisalx) said :
#6

Hi i tried to run updater but it failed,then restarted the laptop and now it is in a cpu like screen (blue) which reads "memtest86 v4.20" and currently is in test #4, pass 19

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#7

If you hold SHIFT at boot, can you select the kernel as normal and boot?

Revision history for this message
dimitris alexopoulos (dimitrisalx) said :
#8

i did and entered a purple screen ,ubuntu color,which reads
gnu grub v 2.03 beta2-9ubuntu1
under this there 2options : memory test(memtest86+) and memory test (memtest86+,serial console 115200)

Revision history for this message
Manfred Hampl (m-hampl) said :
#9

It seems that you have mistyped one of the commands and have uninstalled ALL versions of the kernel, and not just the obsolete ones.

Repairing that is a bit tricky and requires booting into an Ubuntu live system. You need an Ubuntu installation kit on a bootable medium (either an installation DVD or a bootable USB stick with the Ubuntu installation kit on it).

http://askubuntu.com/questions/28099/how-to-restore-a-system-after-accidentally-removing-all-kernels has instructions what to do. If you have any question with executing the steps, please do not hesitate to ask.

Revision history for this message
dimitris alexopoulos (dimitrisalx) said :
#10

i used the solution 21 but in the step 7 i got error
below the whole output

ubuntu@ubuntu:~$ sudo mount /dev/sdXY /mnt
mount: special device /dev/sdXY does not exist
ubuntu@ubuntu:~$ sudo parted -l
Model: ATA HTS541080G9SA00 (scsi)
Disk /dev/sda: 80.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
 1 1049kB 256MB 255MB primary ext2 boot
 2 257MB 80.0GB 79.8GB extended
 5 257MB 80.0GB 79.8GB logical lvm

Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/ubuntu--vg-swap_1: 2139MB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number Start End Size File system Flags
 1 0.00B 2139MB 2139MB linux-swap(v1)

Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/ubuntu--vg-root: 77.6GB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number Start End Size File system Flags
 1 0.00B 77.6GB 77.6GB ext4

Warning: Unable to open /dev/sr0 read-write (Read-only file system). /dev/sr0
has been opened read-only.
Error: Can't have a partition outside the disk!

ubuntu@ubuntu:~$ sudo mount /dev/sda1 /mnt
mount: /dev/sda1 already mounted or /mnt busy
mount: according to mtab, /dev/sda1 is already mounted on /mnt
ubuntu@ubuntu:~$ sudo mount --bind /dev /mnt/dev
mount: mount point /mnt/dev does not exist
ubuntu@ubuntu:~$

Revision history for this message
Manfred Hampl (m-hampl) said :
#11

I have no experience with that procedure in combination with logical volumes.

Maybe you have to use

sudo mount /dev/mapper/ubuntu--vg-root /mnt

and so on.

Revision history for this message
dimitris alexopoulos (dimitrisalx) said :
#12

i finally decided to re install ubuntu. fortunately i had all my files saved in cloud storage and lost nothing

still as i guess the problem with the "stored" images that cut down boot space will reaear in the future
a. which is the solution
b. can i increase the boot volume so i have not so often this problem? during installation i did not find any partition option or smth relevant

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#13

Periodically (once or twice a month) a new version of the Linux kernel and the related header files is published, and they are installed on each system when update-manager is run (or when "apt-get upgrade" is executed, or with synaptic, or...).
Old versions of the kernel image and the kernel headers are not automatically removed.

To make sure that there stays enough free space available, housekeeping has to be done.
It is a standard practice to remove old kernels whenever a new kernel version is installed, keeping only two or three kernel versions (for fallback purposes).

I prefer using the janitor function of Ubuntu-tweak for doing that.

Revision history for this message
dimitris alexopoulos (dimitrisalx) said :
#14

Thanks Manfred Hampl, that solved my question.