notiz:resize-partition
Resize Partition
[root@hydra-1:~]# parted /dev/vda GNU Parted 3.6 Using /dev/vda Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Warning: Not all of the space available to /dev/vda appears to be used, you can fix the GPT to use all of the space (an extra 209715200 blocks) or continue with the current setting? Fix/Ignore? F Model: Virtio Block Device (virtblk) Disk /dev/vda: 322GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 2 17.4kB 1049kB 1031kB bios_grub 1 1049kB 215GB 215GB ext4 (parted) resizepart 1 100% Warning: Partition /dev/vda1 is being used. Are you sure you want to continue? Yes/No? y (parted) quit Information: You may need to update /etc/fstab. [root@hydra-1:~]# resize2fs /dev/vda1 resize2fs 1.47.2 (1-Jan-2025) Filesystem at /dev/vda1 is mounted on /; on-line resizing required old_desc_blocks = 25, new_desc_blocks = 38 The filesystem on /dev/vda1 is now 78642939 (4k) blocks long.
notiz/resize-partition.txt · Zuletzt geändert: 2025/05/29 12:21 von clerie