How to resize the /boot partition?

Solution Verified - Updated

Environment

  • Red Hat Enterprise Linux (RHEL)

Issue

  • Is it possible to increase/expand the size of /boot?
  • How to extend /boot size?
  • The filesystem /boot is out of space, how can it be resized?
  • Boot partition out of room and we are unable to update the new kernel?
  • Currently /boot shows:
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1        97M   89M  3.3M  97% /boot
/dev/sda2 ...

Resolution

Root Cause

  • Resizing the first partition on a disk is like adding acreage to a landlocked territory. It would be necessary to move back the other partitions on the disk and there is no supported process to accomplish this.
  • Red Hat does not support resizing of the /boot partition. A re-install with a larger /boot partition is recommended.

Diagnostic Steps

Check size of /boot:

# df -h /boot

Check partition on boot device: (assuming /dev/sda):

# parted /dev/sda unit s print
Model: ATA HITACHI HTS72755 (scsi)
Disk /dev/sda: 976773168s
Sector size (logical/physical): 512B/4096B
Partition Table: msdos

Number  Start    End         Size        Type     File system  Flags
1      2048s    411647s     409600s     primary  ext4         boot
2      411648s  976773119s  976361472s  primary

In most cases, the following partition will start directly after the preceding one, so it would not be possible to extend /boot.

SBR
Components
Category
Tags

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.