November 18

Linux: Expand an ext3 partition after disk has already been enlarged

This process is similar to expanding an LVM partition, but the server must be rebooted

fdisk -l you have the list of normally 2 partitions, second beginning 137216 (Verify and write down this number before proceding)
fdisk /dev/sda

d to delete a partiton
2 the second

the 2nd partition is now deleted

n create partition
accept default primary, second partition but entry the good beginning address
137216 (This should be whatever number you wrote down above)

If you make a mistake quit without saving change with q
otherwize w will write the new table to disk

sudo reboot
sudo resize2fs /dev/sda2


Copyright 2021. All rights reserved.

Posted November 18, 2021 by Timothy Conrad in category "Linux

About the Author

If I were to describe myself with one word it would be, creative. I am interested in almost everything which keeps me rather busy. Here you will find some of my technical musings. PGP: 4CB8 91EB 0C0A A530 3BE9 6D76 B076 96F1 6135 0A1B