- run
df -h
to display disk info.
The disk that we want to increase is /dev/sda2
for our case.
- run
cfdisk
as root. - select disk and
resize
from bottom menu. Write
andQuit
.- run
resize2fs
for desired disk.resize2fs /dev/sda1
for our case. - run
df -h
to check disk status.