Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8148693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:41:46+00:00 2026-06-06T14:41:46+00:00

I have a linux box with a partition full, the partition being full is

  • 0

I have a linux box with a partition full, the partition being full is stopping SQL from being started. I Need to work out what files I need to delete in order to free up space on the partition, I have tried deleting backup database files from mysql by hand using rm, and deleting old log files, but this just frees up more space from sda8 – which has plenty of space. Does anyone know how to find out which files are in sda7?

Here is the output of df -h

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda6             4.6G  1.2G  3.2G  27% /
tmpfs                 1.8G     0  1.8G   0% /lib/init/rw
varrun                1.8G   92K  1.8G   1% /var/run
varlock               1.8G     0  1.8G   0% /var/lock
udev                  1.8G  168K  1.8G   1% /dev
tmpfs                 1.8G     0  1.8G   0% /dev/shm
lrm                   1.8G  2.5M  1.8G   1% /lib/modules/2.6.28-19-generic/volatile
/dev/sda5              76M   20M   53M  27% /boot
/dev/sda8             220G  7.4G  202G   4% /home
/dev/sda7             4.6G  4.4G     0 100% /var

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T14:41:47+00:00Added an answer on June 6, 2026 at 2:41 pm
    /dev/sda7             4.6G  4.4G     0 100% /var
    varrun                1.8G   92K  1.8G   1% /var/run
    varlock               1.8G     0  1.8G   0% /var/lock
    

    I re-arranged your df -h output a little and trimmed it to the most meaningful lines.

    You need to remove content in /var/ that is not in /var/run or /var/lock. A very fast way to free up a giant pile of free space on Debian-derived systems (including Ubuntu) is to run apt-get autoclean — this will remove old packages from /var/cache/apt/archives/. apt-get clean will free up even more space by removing all packages from that directory. (These packages are kept around for your troubleshooting.) If you’re not sure which to run, apt-get clean is my suggestion — you’ll almost never need those packages anyway.

    But that’s not a long-term solution to your problem. You should probably store your SQL databases in /home instead. You have 202 gigabytes free there and you probably have a backup solution of some sort in place on your /home partition — right? — that you might not have thought to back up from /var/. Make a new directory in /home/ for your SQL databases, make it owned by the user and group accounts for your SQL server, move your databases, and configure the database server to use the new locations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to edit XML files on a small Linux box that we have
I have a linux box with a bank of modems and need to create
I need a place to install libraries in a linux box I have no
I need to reboot a Linux box from a user space process. I want
Ok, I have two related lists on my linux box in text files: /tmp/oldList
I have been developing a script on my linux box for quite some time,
I have WebSphere MQ Client v7.1 on a 64-bit Linux box. I see setmqenv
I have a Linux box. How do I see how my HTML pages look
I have a Linux box and I want to be able to telnet into
I have a Red Hat Linux box that I did not configure but must

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.