Forum Thread

Resizing the /Boot Partition in Ubuntu

14,133 5,227 October 16, 2017 at 07:42 AM
I have a Ubuntu VM that's currently running Ubuntu 14.04 LTS. I am needing to upgrade and patch it but get an error about how the /boot partition is too small. Reading around this is a common problem with this version and looking to upgrade. So I installed Gparted and gave the VM another 5gb. I unmounted the /boot partition in Gparted but am still unable to extend this partition or my /dev/sda5 partition that need a bit more space. See the screenshot below for what I am seeing. Any ideas to get this working? I am betting I am missing something obvious.

2 Comments

1

Sign up for a Slickdeals account to remove this ad.

This comment has been rated as unhelpful by Slickdeals users
Joined May 2004
L42: The Ultimate Answer
1,495 Posts
1,005 Reputation
#2
You'll need to move /dev/sda2 down first so there is unallocated space directly next to /dev/sda1. To resize /dev/sda5 you have to resize /dev/sda2 first. You might need to run gparted from a boot disk to resize sda2 or sda5.

The steps would look something like this:
Resize /dev/sda2 to have 500MB (or however much you want to extend /boot) free preceding and 0 free following.
Resize /dev/sda1 to have 0 free preceding/following.
Resize /dev/sda5 to have 0 free preceding/following.

That would increase /boot by 500MB and / by 4.5GB
Reply Helpful Comment? 0 0

This comment has been rated as unhelpful by Slickdeals users
Joined Aug 2005
L10: Grand Master
14,133 Posts
5,227 Reputation
Original Poster
#3
Quote from FlashX83
:
You'll need to move /dev/sda2 down first so there is unallocated space directly next to /dev/sda1. To resize /dev/sda5 you have to resize /dev/sda2 first. You might need to run gparted from a boot disk to resize sda2 or sda5.

The steps would look something like this:
Resize /dev/sda2 to have 500MB (or however much you want to extend /boot) free preceding and 0 free following.
Resize /dev/sda1 to have 0 free preceding/following.
Resize /dev/sda5 to have 0 free preceding/following.

That would increase /boot by 500MB and / by 4.5GB
Thanks this is going to be a bit of a pain then. It's not wanting to boot to the GParted ISO I have attached to this VM so I will have to work on this tomorrow morning.
Reply Helpful Comment? 0 0
Vague questions receive vague answers . . . . . .
Page 1 of 1
1
Join the Conversation
Add a Comment
 
Copyright 1999 - 2018. Slickdeals, LLC. All Rights Reserved. Copyright / Infringement Policy  •  Privacy Policy  •  Terms of Service  •  Acceptable Use Policy (Rules)  •  Interest-Based Ads
Link Copied to Clipboard