LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-13-2011, 04:09 PM   #1
ZeroGrav
LQ Newbie
 
Registered: Jun 2011
Distribution: Debian 6.0
Posts: 5

Rep: Reputation: Disabled
Disk full but du shows approx 14GB free [SOLVED]


I shared a folder on my system through Samba. After a while my disk became full and I did a cut - paste of the files through Webmin File Manager to an external USB-drive.

The problem is that source files are gone but the free space is still 0.

I have tried reboot, forced fsck at boot but none has helped.

Output from df -h:
Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              15G   15G     0 100% /
tmpfs                  46M     0   46M   0% /lib/init/rw
udev                   41M  116K   41M   1% /dev
tmpfs                  46M     0   46M   0% /dev/shm
overflow              1.0M     0  1.0M   0% /tmp
Output from du --max-depth 1 -c -h
Code:
93M     ./lib
52K     ./root
116K    ./dev
666M    ./usr
8.0K    ./mnt
5.0M    ./bin
4.0K    ./opt
3.9M    ./sbin
76K     ./home
du: cannot access `./proc/2480/task/2480/fd/3': No such file or directory
du: cannot access `./proc/2480/task/2480/fdinfo/3': No such file or directory
du: cannot access `./proc/2480/fd/3': No such file or directory
du: cannot access `./proc/2480/fdinfo/3': No such file or directory
0       ./proc
4.0K    ./srv
14G     ./media
0       ./tmp
6.8M    ./etc
16K     ./lost+found
4.0K    ./selinux
14M     ./boot
143M    ./var
0       ./sys
15G     .
15G     total
The 14GB listed in ./media is the USB-stick where I pasted the files, I have tripple checked it already.

What else can I do? The files should be unlocked after reboot right? lsof doesn't show anything related to this.

Please help!!

Last edited by ZeroGrav; 06-14-2011 at 06:54 AM. Reason: Solved
 
Old 06-13-2011, 05:15 PM   #2
bryanl
Member
 
Registered: Dec 2003
Posts: 97

Rep: Reputation: 35
On ext partitions, 5% is reserved for system use in cases like this. Use 'sudo tune2fs -l /dev/sda1' for a rundown on what is going on with the partition.

From the du output, I think you need to run that with the USB stick removed (and any other storage devices as well) so you can see space utilization on the root partitions and not on other mounted file systems. It almost looks like you have a subdirectory under /media that is being used as both a storage area and as a mount point and that could confuse things.
 
Old 06-14-2011, 01:29 AM   #3
ssrameez
Member
 
Registered: Oct 2006
Location: bangalore
Distribution: Fedora, Ubuntu, Debian, Redhat
Posts: 82

Rep: Reputation: 6
/media is not reported in the df output..

could you try "df -hP" and paste the results here..
Also use fdisk -l
 
Old 06-14-2011, 06:53 AM   #4
ZeroGrav
LQ Newbie
 
Registered: Jun 2011
Distribution: Debian 6.0
Posts: 5

Original Poster
Rep: Reputation: Disabled
Thanks for helping out!

Did an extra check and it turns out that Webmin shows that the external USB-stick is mounted to /media/usb1 but it turns out that it was not mounted at all. What I actually did was to copy files from /media/usb0 to /media/usb1, both residing on the root file system.

How can I find out where /media/usb0 and /media/usb1 are located in the filesystem?
 
Old 06-14-2011, 06:55 AM   #5
ssrameez
Member
 
Registered: Oct 2006
Location: bangalore
Distribution: Fedora, Ubuntu, Debian, Redhat
Posts: 82

Rep: Reputation: 6
df -hP /media/usb0 /media/usb1

The above command will show you in which filesystem the directories are residing.
 
  


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
free -m shows 2GB used but gnome-system-monitor shows 1GB anjanesh Linux - General 1 03-04-2009 05:49 AM
df -h shows disk full, but it's not the case hypernetics Linux - General 5 11-13-2007 04:05 PM
'df' command shows disk full .... very weird! sharathg786 Slackware 7 03-02-2007 05:48 PM
df shows disk almost full, can't see why mhath Linux - General 6 12-14-2005 09:55 PM
disk shows it is full after installing one cd SDP Linux - Software 1 08-01-2005 07:49 PM

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

All times are GMT -5. The time now is 07:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration