Please bear in mind I am very new to uBuntu. My boot partition was only 200-300MB and full. So after an hour I managed to replace it with a new partition at 1GB, following this guide I found in an answer on this forum:
Expand the SCSI device by 1GB on VM sphere centre or AWS, etc, so /dev/sda gets an additional 1GB of space.
Reboot the server to single user mode. Use fdisk -l /dev/sda to confirm the new size with additional 1GB.
Use fdisk /dev/sda to create an sda3 partition with 1GB. Save the partition table. Ubuntu will require partprobe to update the partition table. Now run:
mkfs.ext4 /dev/sda3
umount /boot
dd if=/dev/sda1 of=/dev/sda3
e2fsck -y /dev/sda3
resize2fs /dev/sda3
e2fsck -y /dev/sda3
Now update /etc/fstab (be sure to make a backup copy, just in case need to boot from CDROM/DVD to recover), update the line to mount /dev/sda3 on /boot (and comment the line for /dev/sda1)
Mount /boot
df -k should see /boot is 1GB now, but you need to make it the default boot device.
Use fdisk /dev/sda, and press p to print the partition table. You will see /dev/sda1 is the default boot device.
Use the a command in fdisk to disable /dev/sda1 as default boot device and again to enable /dev/sda3 as default boot device. p to show partition table.
Reboot
The servers starts up fine after a reboot so I thought I was done, but not so much! I still cant run the updates:
- apt-get dist-upgrade - doesnt work because of broken depencies
- apt --fix-broken install - failed to write (no space left on device)
My best guess is my new 1GB boot partition is fine, but uBuntu still wants to put the new files on the old boot partition when its trying to download them with the apt commands? What do I do about that or what else could the issue be?