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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-06-2017, 08:46 AM
|
#1
|
Member
Registered: Apr 2007
Distribution: Debian 4
Posts: 147
Rep:
|
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?
|
|
|
07-06-2017, 09:20 AM
|
#2
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
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.
|
07-06-2017, 09:35 AM
|
#3
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,247
|
you can try:
can you post the result?
|
|
|
07-06-2017, 09:45 AM
|
#4
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
Quote:
Originally Posted by pan64
you can try:
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.
|
|
|
All times are GMT -5. The time now is 09:37 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|