When you increase a Linode Block Storage volume’s size in the Cloud Manager, the added capacity doesn’t automatically appear inside your Linux system. You need to let the kernel detect the change and then expand the filesystem so it can use the new space.
Previously I create article by umount firts, this one no need to umount because a new more modern Linux kernel version.
The following steps apply to Debian 12 and assume you’re using an ext4 filesystem on a device such as /dev/sdc, mounted at a generic directory like /mnt/data.
1. Check if the kernel detects the new size
After resizing the volume in Linode Cloud Manager, log in to your instance and verify whether the kernel already sees the larger capacity:
|
0 1 2 |
lsblk -o NAME,SIZE,FSTYPE,MOUNTPOINT | grep -E '^sdc|/mnt/data' |
If the output shows the new size (for example sdc 80G ext4 /mnt/data), you can continue. If it still shows the old size, rescan the device manually:
|
0 1 2 |
echo 1 | sudo tee /sys/class/block/sdc/device/rescan |
2. Expand the filesystem (ext4)
Modern Linux kernels allow online resizing of ext4 filesystems, so you can grow it while it’s mounted:
|
0 1 2 |
sudo resize2fs /dev/sdc |
This command safely extends the ext4 filesystem to fill all available space on the disk.
3. Verify the new capacity
Once resizing completes, check that the mounted filesystem now reflects the full size:
|
0 1 2 |
df -h /mnt/data |
You should see output similar to:
|
0 1 2 3 |
Filesystem Size Used Avail Use% Mounted on /dev/sdc 79G 8.5G 67G 12% /mnt/data |
Notes
No downtime is required for ext4 on modern Debian kernels. If resizing fails or you prefer to validate the filesystem offline, unmount it first:
|
0 1 2 3 4 5 |
sudo umount /mnt/data sudo e2fsck -f /dev/sdc sudo resize2fs /dev/sdc sudo mount /mnt/data |
For XFS filesystems, use sudo xfs_growfs /mnt/data instead of resize2fs.
Final check
To ensure consistent mounts after reboot, use stable device IDs rather than /dev/sdX names:
|
0 1 2 |
ls -l /dev/disk/by-id/ | grep Linode_Volume |
Then update your /etc/fstab entry to use the /dev/disk/by-id/ path for that volume.
Resizing a Linode Block Storage volume requires two key steps, expanding the volume in Cloud Manager and then growing the filesystem inside your Debian 12 instance.
With resize2fs, you can do it live, safely, and without unmounting the disk.