Resize non-lvm disk live without reboot
2016-01-01
After increasing the dynamic virtual disk in VMWare/Virtualbox (sdb
in this example)
Re-Scan disk
echo 1 > /sys/block/
sdb
/device/rescan
Get Disk Info
fdisk -u /dev/sdb
p
to print the partition table, copy and paste this info into a text file for reference.
Modify Partition
Delete partition withd
Create new partition withn
Create it with same start number and type but with a bigger end number.
Save changes withw
thenq
. (May throw warning)
Inform the kernel of changes
partx /dev/sda
Inform the OS of changes
partprobe
Resize Filesystem to take advantage of larger partition.
resize2fs /dev/sdb1
disk   ext4   linux   resize   without-reboot