Find the answer to your Linux question:
Results 1 to 7 of 7
Hi! I have problem with my hard drive on Debian. I connected my hard drive as a local drive (NFS) in to Mac OS. Later i deleted some files on ...
  1. #1
    Just Joined!
    Join Date
    Jan 2011
    Posts
    2

    Hard drive showed incorrect free space

    Hi! I have problem with my hard drive on Debian. I connected my hard drive as a local drive (NFS) in to Mac OS. Later i deleted some files on that hard drive from my mac but the free space didnt change. It looks like these files moved in to trash or something but i dont know where is it.

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,086
    Hello and welcome!

    Trash usually goes into a hidden folder, such as .Trash

    Set your file manager to also view hidden files/folders then navigate to it, or use ls -a from the command line to see a listing of all files/folders, including the hidden ones.
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  3. #3
    Just Joined!
    Join Date
    Jan 2011
    Posts
    2
    I use just command line. I dont have anything called .Trash in user folder and in root folder too.

  4. #4
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,086
    It might be at: /home/user_name/.local/share/Trash
    oz

    new members/users: read this first | new member faq
    no private messages requesting computer support - post them on the forums!
    please use the "report post" button to alert our forum admins to problematic posts rather than responding to them yourself.

  5. #5
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    ncdu is a handy ncurses disk usage viewer that might help locate what's filling up your harddrive.

    Debian -- Package Search Results -- ncdu
    NCurses Disk Usage

  6. #6
    Just Joined!
    Join Date
    Jan 2011
    Posts
    2
    You could try this:
    find <path> -size +10000k -print0 | xargs -0 ls -lh

    Assuming your running the command as root. Otherwise you might get some permission denied errors. It might help to narrow the results by entering the absolute path of where you want to look as well. Otherwise / is just gonna show the entire disk.

  7. #7
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    622
    If you deleted files that were currently open by a process, the space will not be released until the process closes the file. You may be able to find the culprit(s) with fuser and/or lsof. If not, a reboot will release the space since all processes will be shut down and all file handles released.

    The other common culprit for inexplicable disk usage is files in a folder used as a mount point. The files in the physical folder will be hidden until the filesystem mounted on the folder is unmounted.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •