How to expand the storage of a full Linux system disk?
To expand the Linux system disk, you can follow these steps:
- Firstly, to check the usage of the system disk, you can use the following command to view disk usage:
- Show the disk space usage in a human-readable format.
- Identify the partition that needs to be expanded, typically the root partition (/) or the /boot partition on a Linux system disk.
- Use GParted or another partitioning tool to increase the size of the partition that needs to be expanded, or to create a new partition.
- If the root partition (/) needs to be resized, you must first boot into the system using a Live CD or USB before resizing it.
- After the system has started up, use the following command to expand the partition:
- Adjust the size of the file system on the specified partition.
- Alternatively
- Adjust the size of the logical volume named “[logical volume name]” in the volume group named “[volume group name]” using resize2fs.
- After the expansion is completed, use the following command again to check the disk usage and confirm that the expansion was successful.
- Show me the disk space usage in a human-readable format.
Please note that there is a risk of data loss when expanding partitions, so be sure to back up important data before performing such an operation. Additionally, if you are not familiar with partition operations, it is recommended to seek guidance from a professional.