0

I want to resize my /boot partition. I have gparted live CD and can do this pretty easily.

But the problem is my order of partitions:

gparted

I can shrink sbd4 or sdb5 to get some extra space.

In the end I can also extend sdb1 (without moving the head of it).

But the question is:

Can I move sdb2 and sdb3 so it does not corrupt my system?

2 Answers2

1

if you install a new kernel and it complains about no space on /boot, simply purge the old kernel. no need to resize /boot. to do that, install purge-old-kernels command

sudo apt-get install byobu

then run sudo purge-old-kernels, this is going to clean up the old kernels.

also, if you really want to resize, left-shrink your swap space by 500MB or 1GB, that's more than sufficient to accommodate your /boot folder. This has very little impact to your system performance (if your swap is over 8GB - in face, 14GB is quite generous).

FangQ
  • 387
0

In my case to get extended /boot I did the following:

  1. Boot with GParted live CD
  2. Cut 1 GB at the end of sdb4
  3. Copy sdb1 to this newly allocated space and fully resize this copy to 1 GB
  4. Generate new UUID for sdb1 so it does not collide with its copy (as UUID is also copied)
  5. Apply all the changes

Done!

Pros:

  • easy and fast operation

Cons:

  • sdb1 is now unused