Where did all my Disk Space go?

If you receive a disk space warning or notice that you may need more disk space, then automated backups you weren’t aware of, unused or forgotten plugins, or a log file that has grown rapidly could be eating up your disk space. Simply deleting a few files could free up large amounts of space in your account. But how to find that large needle in the haystack? 

You can use the Disk Usage tool to check your current disk space usage to see if any space can be freed up.

Disk Usage

cPanel has a tool called Disk Usage which is found under the Files section.

 

Screen_Shot_2023-01-23_at_3.10.43_PM.png

Disk Usage will calculate the size of every folder in your account and display it in a nice graph. That said, this particular view does not allow you to see which subdirectory or folder is consuming the most space.

More often than not you’ll find that the public_html folder which houses all of your web content is the largest, but that could still leave you searching blindly for more information on where within that folder the culprit is.

Thankfully cPanel also provides a way to view the files and sort them by how much disk sapce they are using. If you scroll down the new tool is at the bottom of the page, you will see an sortable view of your files.

Screen Shot 2020-01-08 at 6.34.00 PM

Clicking the > symbol in front of the directory you wish to examine will expand it and show the subdirectories as shown in the example below. Each directory with a > in front of it can be expanded further.

Screen Shot 2020-01-08 at 6.34.31 PM

Ncdu

We also have a program called Ncdu added to our servers which is available from the command line. You’ll need to be logged in via Terminal with your SSH account to take advantage of this. Once connected, simply navigate to the folder you want information about and type the ncdu command to get a text-based graphical representation of the largest folders.

Because the folders and files are ordered by size, we recommend starting at the root of your account and running the command there. You can use the arrow keys to move up or down and enter to navigate into a folder and get a readout of the size of its contents. In our experience it makes quick work of analyzing disk space issues and finding any opportunities to clear out the cruft. When you’re finished simply hit the q key to quit.

If for some reason ncdu is not available in your account on Reclaim Hosting put in a support ticket and we’d be happy to make sure it gets added.

One last item to be aware of is that when deleting anything through the cPanel File Manager, it's important to always check the Skip the trash and permanently delete the files option otherwise any deleted files will be put into your .trash folder which still consumes space until emptied.

Skip_the_trash.png

Upgrading

As Reclaim Hosting has grown over the years we’ve consistently increased our storage options. If you find you simply need more disk space, then upgrading is an easy process

 

Was this article helpful?
0 out of 1 found this helpful

Articles in this section

See more
Reclaim Hosting Support Hours
8:00 am - 5:00 pm ET, Monday through Friday
Submit a Ticket
Get a quick and helpful response from the pros.
Need Extra Support?
No problem, we're here to help! Talk to us about Professional Services or custom Service Level Agreements.