LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-28-2010, 01:29 PM   #1
themacguy
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Rep: Reputation: 0
Lost disk space after deleting files, trash, hidden trash, etc.


Hello,

Forgive me if this is repetitive, but I've searched online all day and haven't been able to find a solution to this problem. Please feel free to point to other threads if applicable.

My Configuration:

I have an external hard drive (1TB, HFS formatted, called "BACKUP") connected via USB 2.0 to a G4 PowerPC running Ubuntu 9.10. I've set this computer up to be used as a file server using samba and netatalk (afpd). My BACKUP drive is shared and I regularly connect to it from my other OSX 10.4.11 mac (using AFP) for backing up files, and it's been pretty flawless.

My Problem:

Because the BACKUP drive is so big, I've only just recently noticed that I'm running out of space. After mounting the BACKUP drive over the network to my other OSX mac and deleting several large files, there was no change in the amount of available space on the drive (checked this in the Gnome desktop as well as typing "df -h" from terminal). However, when I delete a file using the Gnome desktop, space reappears. I've tried emptying the trash on my mac and the Ubuntu machine with no success, checking for large, hidden files, etc. Unfortunately, the files are gone, so I cannot "re-delete" them, but the space they occupied is still unavailable.

Every post I read mentions checking the trash, which I've done several times but unsuccessfully. When I check the "Properties" of the BACKUP drive from the Gnome desktop, it tells me that the contents of my drive totals 717.7 GB, but 904.1 GB is used and only 27.3 GB is free.

Is this a bug? Am I missing something? Any and all help is greatly appreciated. I'm a bit of a novice.

Thanks,

Eric
 
Old 06-28-2010, 01:36 PM   #2
yooy
Senior Member
 
Registered: Dec 2009
Posts: 1,387

Rep: Reputation: 174Reputation: 174
What filesystem version do you use?
Try to delete files with shift+delete, look for hidden files or just wait, maybe files are in use and will be deleted afterward.
 
Old 06-28-2010, 01:48 PM   #3
themacguy
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Well, the Filesystem I'm using for the G4 PowerPC is Linux Ext 3 (version 1.0), but the filesystem on the external BACKUP drive is Apple HFS+. I tried using the shift-delete combo, but even then, deleting from the Gnome desktop doesn't seem to be an issue. This only has happened after deleting from the BACKUP when it is mounted over the network via AFP.

I suppose a workaround for now is to always delete from the Gnome desktop, but I'm still currently missing roughly 200GB of space that I'd like to have back. Thoughts?

EDIT: Also, additional info - I have rebooted several times and physically unplugged/plugged in the drive to see if that was the problem - no luck.

Last edited by themacguy; 06-28-2010 at 02:16 PM. Reason: additional info
 
Old 06-28-2010, 04:51 PM   #4
themacguy
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by themacguy View Post
...the filesystem on the external BACKUP drive is Apple HFS...
Just a thought, as I'm reading more and more through various posts on various websites, I'm starting to think this problem may be related to the HFS catalog file. I might have a lead somewhere else using fsck.hfsplus, but I haven't tried yet.

Anyone have any experience with recovering disk space on an HFS file system?
 
Old 06-29-2010, 09:03 AM   #5
libssd
LQ Newbie
 
Registered: May 2010
Distribution: Ubuntu desktop 9.04
Posts: 5

Rep: Reputation: 1
Try running Disk Usage Analyzer to see what is where. I had a similar problem on a Mac, and traced it to WD backup software that came with the drive, and created a hidden partition.
 
Old 06-29-2010, 09:52 AM   #6
themacguy
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Original Poster
Rep: Reputation: 0
For anyone who is having the same problem (or just interested), I was able to fix my drive, although I still don't know how the problem occurred in the first place.

I removed my drive from the linux machine and physically plugged it into my mac. At that point, I was able to run Disk Utility and it fixed the problem. The log file reported the following after it successfully repaired it:


-----
Verify and Repair disk “BACKUP”
Checking HFS Plus volume.
Checking Extents Overflow file.
Checking Catalog file.
Checking Catalog hierarchy.
Checking Extended Attributes file.
Checking volume bitmap.
Checking volume information.
Invalid volume file count
(It should be 44906 instead of 44816)
Invalid volume directory count
(It should be 3762 instead of 3709)
Invalid volume free block count
(It should be 55541680 instead of 7144996)
Repairing volume.
Rechecking volume.
Checking HFS Plus volume.
Checking Extents Overflow file.
Checking Catalog file.
Checking Catalog hierarchy.
Checking Extended Attributes file.
Checking volume bitmap.
Checking volume information.
The volume BACKUP was repaired successfully.
Mounting Disk

1 HFS volume checked
Repair attempted on 1 volume
1 HFS volume repaired

-------


Again, anyone with any info or having similar problems with HFS+ filesystems on a linux machine is welcome to post any advice!
 
Old 08-08-2010, 06:16 AM   #7
Tycoon
LQ Newbie
 
Registered: Aug 2010
Posts: 1

Rep: Reputation: 0
Show Hidden Files

If you have this problem again or for anyone else that lands on this thread. Show hidden files it your friend.

When you click on View -> Show Hidden Files, you will see a folder called trash or something similar. Delete this and you will get your space back.

You may need root access to delete it.

I was working with a friends HFS+ drive today and noticed this.
 
Old 06-06-2012, 02:51 AM   #8
prakkash3
LQ Newbie
 
Registered: Jun 2012
Posts: 1

Rep: Reputation: Disabled
apt-get install ncdu ... delete files through this ... simple & efficient ..

ravi
 
  


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
How to open the trash folder and empty the trash in command line cmx08 Linux - Newbie 5 08-29-2008 09:15 AM
Move to trash works beautifully, but empty trash .. different story. kd5eax Mandriva 2 12-04-2007 02:52 PM
Deleting files from command line goes to trash? HSN Linux - Enterprise 1 02-18-2007 11:38 PM
Broken trash, lost HDA space...? lefty.crupps SUSE / openSUSE 1 05-16-2005 04:07 PM
Deleting from trash can KezzerDrix Mandriva 1 03-27-2005 10:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:08 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