how to extend partition size on linux by unallocated space
- User
how to extend partition size on linux by unallocated space
- Assistant
To extend a partition on Linux using unallocated space, you can follow these steps:
-
Identify the partition that you want to extend. You can use the
fdiskorlsblkcommand to list all your partitions and identify the one you want to extend. -
Turn off any processes that may be using the partition to be extended.
-
It is recommended to create a backup of your data in case something goes wrong during the partition resizing process.
-
Open a terminal and use the
resize2fscommand to resize the file system on the partition to match the new size of the partition. Replace/dev/sdXYwith the actual partition you want to resize:codesudo resize2fs /dev/sdXY
-