Volume Resize
Check up
Check your volume status
Extend the volume
Please navigate to Project > Volumes > Volumes, select the Extend Volume
from the Actions column
Linux
- check the new size.
- run command
sudo growpart /dev/sda 1
to extend the volume size. - run command
sudo resize2fs /dev/sda1
to extend the file system size.
$ df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 392M 1.2M 391M 1% /run
/dev/sda1 77G 76G 1.3G 99% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/sda16 881M 112M 707M 14% /boot
/dev/sda15 105M 6.1M 99M 6% /boot/efi
tmpfs 392M 12K 392M 1% /run/user/1000
$ sudo growpart /dev/sda 1
CHANGED: partition=1 start=2099200 old: size=165672927 end=167772126 new: size=207615967 end=209715166
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 100G 0 disk
├─sda1 8:1 0 99G 0 part /
├─sda14 8:14 0 4M 0 part
├─sda15 8:15 0 106M 0 part /boot/efi
└─sda16 259:0 0 913M 0 part /boot
$ sudo resize2fs /dev/sda1
resize2fs 1.47.0 (5-Feb-2023)
Filesystem at /dev/sda1 is mounted on /; on-line resizing required
old_desc_blocks = 10, new_desc_blocks = 13
The filesystem on /dev/sda1 is now 25951995 (4k) blocks long.
$ df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 392M 1.2M 391M 1% /run
/dev/sda1 96G 77G 20G 80% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
/dev/sda16 881M 112M 707M 14% /boot
/dev/sda15 105M 6.1M 99M 6% /boot/efi
tmpfs 392M 12K 392M 1% /run/user/1000
Windows
check the new size by run command compmgmt.msc
to open the Disk Management