Author: Chester Kuhic | Last update: Saturday, March 8, 2025
There are three common ways to increase disk space on the root partition or any partition for that matter.
Delete aging, rotated or unused files.
Increase the size of the root partition and resize its filesystem.
Add disks and subpartition the root filesystem.
How do I add more space to a partition?
In Disk Management, right-click the existing volume you want to extend④, then select [Extend Volume]⑤. If there is no unallocated space, but you want to extend the existing volume, you are able to delete a separate volume, and then it will become unallocated space.
How to free up space in root linux?
Freeing disk space on your Linux server
Get to the root of your machine by running cd /
Run sudo du -h --max-depth=1.
Note which directories are using a lot of disk space.
cd into one of the big directories.
Run ls -l to see which files are using a lot of space. Delete any you don't need.
Repeat steps 2 to 5.
How do I check root space?
Linux df command
The df command stands for "disk-free," and shows available and used disk space on the Linux system. df -T shows the disk usage along with each block's filesystem type (e.g., xfs, ext2, ext3, btrfs, etc.)
How to add space from home to root partition in Linux?
shrink the /home logical volume $ lvreduce -L -40G /dev/mapper/VolGroup-lv_home.
resize the /home partition to the size of the LV $ resize2fs /dev/mapper/VolGroup-lv_home.
Increase/Extend Root Filesystem Online Without Downtime & Without Losing Data Using fdisk In Linux
How to increase root space?
There are three common ways to increase disk space on the root partition or any partition for that matter.
Delete aging, rotated or unused files.
Increase the size of the root partition and resize its filesystem.
Add disks and subpartition the root filesystem.
How do I allocate more space to a Linux partition?
To extend the partition, run the growpart /dev/vdb 3 command. If the disk is a Nonvolatile Memory Express (NVMe) disk whose device name is /dev/nvme0n1 and you want to extend the /dev/nvme0n1p1 partition, run the growpart /dev/nvme0n1 1 command instead of the growpart /dev/nvme0n1p1 1 command.
How to increase disk space in Linux?
Extend Partition Manually
Extend the physical drive partition: sudo fdisk /dev/vda – Enter the fdisk tool to modify /dev/vda. ...
IF using LVM: Modify (extend) the LVM: Tell LVM the physical partition size has changed: sudo pvresize /dev/vda1. ...
Resize the file system:
How do I find my root domain?
As we mentioned, the root domain is what comes after the “www” and includes the Top-level domain extension, like .com or . org. For example, in the website address www.example.com, “example.com” is the root domain.
How to check the size of root partition in Linux?
Method 1: Check Disk Space via df Command. Display Usage in Megabytes and Gigabytes. Display a Specific Filesystem. ...
Method 2: Check Disk Space via the du Command.
Method 3: Check Disk Space via the pydf Command.
Method 4: Check Disk Space via the fdisk -l Command.
Method 5: Check Disk Space via the lsblk Command.
How to increase root partition size in Linux without losing data?
Run `cfdisk` and choose "resize" for the root partition. It will propose the maximum possible size. Confirm the changes and exit `cfdisk`. Reboot your system to update the partition table.
How do I fix root directory is full?
If the root directory is full, that suggests it is probably formatted as FAT ratherr than FAT32 or exFAT. Pick one file that you know is not required and delete it. Then create a directory in its place. Next, move all the other files into that new directory.
How do I increase memory space in Linux?
The entire memory in Linux is called virtual memory—it includes physical memory (often called RAM) and swap space. The physical memory of a system cannot be increased unless we add more RAM. However, the virtual memory can be increased by using swap space from the hard disk.
How do I extend a partition with free space?
2. How do I extend my Windows partition?
Open Disk Management and right-click a partition next to your target drive, select Shrink Volume.
Then, adjust the size you would like to shrink and add to the target partition, click Next, and Finish.
Then, right-click on the target drive and select Extend Volume.
How do I add more partitions?
To create and format a new partition (volume)
Right-click an unallocated region on your hard disk, and then select New Simple Volume. In the New Simple Volume Wizard, select Next. Enter the size of the volume you want to create in megabytes (MB) or accept the maximum default size, and then select Next.
Can I increase partition size without formatting?
Windows Disk Management comes with “Shrink Volume” and “Extend Volume” functions. They can change partition size without losing data in Windows 10/8/7. To perform such tasks via the Disk Management tool, first, open it: right-click “This PC/My Computer”, select “Manage”->“Disk Management” under “Storage”.
What is root level?
The highest authority or privilege given to a user working with an operating system or other control program. A person with root level access is called an "administrator," "root user" or "superuser."
How do I get to my root directory?
To locate the system root directory:
Press and hold the Windows key, then press the letter 'R'. (On Windows 7, you can also click start->run… to get the same dialog box.)
What is the difference between root and domain?
A domain is like your website's address on the internet. For example, www.namehero.com is a domain name. Each domain must be unique to a website. A root domain is the highest-level domain in a website's hierarchy and can impact your website's visibility in search engine rankings.
How can I increase my disk space?
Tips to free up drive space on your PC
Check the current space on your PC. ...
Use Disk Cleanup. ...
Uninstall desktop apps you no longer need. ...
Uninstall Windows Store apps you no longer need. ...
Archive or delete files you're no longer using. ...
Reduce the size of the WinSxS folder. ...
Make OneDrive files online-only.
What to do if disk space is full in Linux?
Solutions
Clean up files or directories that are heavily consumed by inodes to reduce inode usage. If you do not want to format disks to increase the number of inodes, perform the following operations to delete files or directories that use a large number of inodes: ...
Reformat the disk to increase the number of inodes.
How to increase disk space using command prompt?
To extend a volume, follow these steps:
At a command prompt, type diskpart.exe.
Type list volume to display the existing volumes on the computer.
Type Select volume <volume number> where <volume number> is number of the volume that you want to extend.
Type extend [size=n] [disk=n] [noerr].
How do I add more space to my partition?
To add unallocated space, you just right-click the partition that is adjacent to the space on the left side and select "Extend Volume". Select the disk that contains the unallocated space, and follow the prompt to merge the unallocated space into the selected volume.
How do I add more swap space in Linux?
Adding Swap Space on a Linux System
Become a superuser (root) by typing: % su Password: root-password.
Create a file in a selected directory to add swap space by typing: dd if=/dev/zero of=/ dir / myswapfile bs=1024 count =number_blocks_needed. ...
Verify that the file was created by typing: ls -l / dir / myswapfile.
How do I increase disk quota in Linux?
Managing Quotas in Linux Using CyberPanel – How to Enable and Check User Quotas