XYBRCODE

RANDOM BITS

Search Results

Resize non-lvm disk live without reboot

2016-01-01

After increasing the dynamic virtual disk in VMWare/Virtualbox (sdbin this example)

Re-Scan disk
echo 1 > /sys/block/sdb/device/rescan

Get Disk Info
fdisk -u /dev/sdb

pto 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 withwthenq. (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