LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-06-2017, 08:46 AM   #1
StefanP
Member
 
Registered: Apr 2007
Distribution: Debian 4
Posts: 147

Rep: Reputation: 15
Cannot access free space on hard disk


I am using debian8 and lately I have problem copying files onto my hard disk. Even though I deleted a lot of files to free up space when I try to copy even a 1 gig file it tells me tit cannot because the drive is full. I checked with the "disks" application and it shows I have 100 gigs free. I empried the trash bin also of any files. What can I do except reformat and install debian so that I can use the hard drive again at its full capacity?
 
Old 07-06-2017, 09:20 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
This often happens if you delete a file that is "open" by some process. Most often these are log files.

When you delete an open file it actually only deletes the file name but leaves the file inode which contains the data intact so it is still using the space.

The quickest way to solve this is simply to reboot the system as that will stop all processes and thereby close all open files.

Before deleting a file in future you can run "lsof <filename>" on it to see if any process is using it. If so you should first stop the process then delete the file.
 
1 members found this post helpful.
Old 07-06-2017, 09:35 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,247

Rep: Reputation: 7689Reputation: 7689Reputation: 7689Reputation: 7689Reputation: 7689Reputation: 7689Reputation: 7689Reputation: 7689Reputation: 7689Reputation: 7689Reputation: 7689
you can try:
Code:
df -h
df -ih
can you post the result?
 
Old 07-06-2017, 09:45 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Quote:
Originally Posted by pan64 View Post
you can try:
Code:
df -h
df -ih
can you post the result?
...and du -h on any directory shown by df output. If df -h and du -h on the same directory show different space utilization it is usually due to what I was describing previously.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian squeeze will not show free and used disk space on EXT4 formatted hard drives sillas2001 Debian 5 03-06-2011 07:56 AM
Display Free Hard Disk Space using Fdisk amirsd Linux - Newbie 5 01-27-2010 02:35 PM
How to find how much free space left on my hard disk? DataSheet Linux - Newbie 5 01-06-2007 11:35 PM
Finding Used / Free Space for the Entire Hard Disk Jayaraghavendran Programming 1 03-03-2006 06:33 AM
Not enough free space on hard drive with 50g of free space??? auoq SUSE / openSUSE 5 10-13-2004 09:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration