Skip to content
Resizing of Linux root filesystem before mount during boot
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Supported Linux distributions: CentOS 6, Debian 6, Debian 7.

Rework of my previous project, that was limited only to CentOS 6.

This tool creates new initrd (initramfs) image with ability to resize root filesystem over available space. Tipically you need this when you provision your virtual machine on OpenStack cloud for the first time (your image becomes flavor aware)

For now, filesystem resize is limited to ext2, ext3 and ext4 (resize2fs) including LVM volumes.

This code was successfuly tested on: CentOS 6.5, Debian 6 and Debian 7.2


cloud-utils (
parted (CentOS)


Install git, clone this project on your machine, run 'install'. 

On CentOS:

cd /opt
rpm -ivh
yum install git parted cloud-utils
git clone
cd linux-rootfs-resize

Tool is designed in modular fashion, so support for other distributions can be added without much work (I hope).

You can’t perform that action at this time.