problem: files removed from the bin but no space gained

Discussion in 'Acer Aspire One' started by utonto, Oct 23, 2008.

  1. utonto

    utonto

    Joined:
    Aug 19, 2008
    Messages:
    15
    Likes Received:
    0
    i have a tragical problem:
    i wanted to delete 2 big files so i went in the file manager , clicked with the right button of the mouse on the files and then pressed delete. when it said to me that the files were too big for the bin i clicked on directly remove the files.
    the problem is that i gained no space from removing those files.
    before i had about 56 mb of left space and now its exactly the same!!! please i neeed help
    thanks
    p.s. sorry for my poor english
     
    utonto, Oct 23, 2008
    #1
  2. utonto

    utonto

    Joined:
    Aug 19, 2008
    Messages:
    15
    Likes Received:
    0
    any help?
     
    utonto, Oct 23, 2008
    #2
  3. utonto

    Duncan_Rowland

    Joined:
    Aug 25, 2008
    Messages:
    246
    Likes Received:
    0
    Are you on XP or Linpus?
    Have you tried emptying the trash anyway?
    Can you get to the directory via a command prompt?
    If so, what does dir/ls show for that directory?
    and can you remove the file via command prompt? (del/rm)
     
    Duncan_Rowland, Oct 23, 2008
    #3
  4. utonto

    utonto

    Joined:
    Aug 19, 2008
    Messages:
    15
    Likes Received:
    0
    i'm on limpus.
    yes, but no change
    unfortunately i can't remember what was the folder of the files.

    i have always used windows xp. isn't there a search function in order to discover where are the files now?
    (i have tried the search option of thunar but i have pressed canc button on the files found by it and so when i repeat the search it is not able to find the file again!!!! :x )
     
    utonto, Oct 23, 2008
    #4
  5. utonto

    Duncan_Rowland

    Joined:
    Aug 25, 2008
    Messages:
    246
    Likes Received:
    0
    Can you remember the filename (or part of it)?
    If so, you can locate it with...
    sudo find / -name your_filename_goes_here
    or, if you can only remember a bit, you can use wildcards
    sudo find / -name *filename*
     
    Duncan_Rowland, Oct 23, 2008
    #5
  6. utonto

    utonto

    Joined:
    Aug 19, 2008
    Messages:
    15
    Likes Received:
    0
    yes, sure

    none seems to work. it just don't want to find the file.
    it seems like the files are no more in the hard disk but i know that this is not true!! :x
    thanks for your help... any other idea?
     
    utonto, Oct 24, 2008
    #6
  7. utonto

    Duncan_Rowland

    Joined:
    Aug 25, 2008
    Messages:
    246
    Likes Received:
    0
    If you type:
    sudo du -a / | sort -nr | more
    This will list all files (including directory total) and their sizes sorted starting with the largest.
    Press the spacebar to see subsequent pages and ctrl+c to stop.
    Perhaps you can spot the locaton of the extra big files here?
    also - you can see the percentage use of your disk (/dev/sda1) by typing
    df
    finally, you could try booting a live distro from a USB stick and running fsck to make sure there is not corruption of your file system.
     
    Duncan_Rowland, Oct 24, 2008
    #7
  8. utonto

    utonto

    Joined:
    Aug 19, 2008
    Messages:
    15
    Likes Received:
    0
    this is what the terminal shows when i type the commands you have suggest
    i have marked with red colour the fact that it shows 2 different values... is it normal?
     
    utonto, Oct 24, 2008
    #8
  9. utonto

    Duncan_Rowland

    Joined:
    Aug 25, 2008
    Messages:
    246
    Likes Received:
    0
    hmm.. I'm not sure. I removed fuse from my setup, so my mounts are not quite the same...
    On my machine, there is a difference but nowhere near as big as the one from your disk...

    [Duncan@localhost ~]$ df
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/sda1 6720248 4817104 1561768 76% /

    [Duncan@localhost ~]$ sudo du -a / | sort -nr | head -1
    4814468 /

    So I have a difference of:
    4817104-4814468 = 2636
    Whereas yours is:
    5570124-5084672 = 485452

    I don't really understand why this would be. But perhaps if you run fsck on your disk it could fix it?
    The easiest way to do this I think is to boot a live distro from a USB pendrive...
     
    Duncan_Rowland, Oct 24, 2008
    #9
  10. utonto

    Duncan_Rowland

    Joined:
    Aug 25, 2008
    Messages:
    246
    Likes Received:
    0
    hmm.. I just booted my own Aspire One from usb (backtrack3) and ran fsck,
    this has reduced the discrepancy to only 88 (as below),
    so perhaps there is indeed something corrupt on your disk that needs fixing to get the space back...

    [Duncan@localhost ~]$ sudo du -a / | sort -nr | head -1
    du: cannot access `/proc/2967/task/2967/fd/4': No such file or directory
    du: cannot access `/proc/2967/task/2967/fdinfo/4': No such file or directory
    du: cannot access `/proc/2967/fd/4': No such file or directory
    du: cannot access `/proc/2967/fdinfo/4': No such file or directory
    4814488 /
    [Duncan@localhost ~]$ df
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/sda1 6720248 4814400 1564472 76% /
    none 252364 0 252364 0% /dev/shm
     
    Duncan_Rowland, Oct 24, 2008
    #10
  11. utonto

    utonto

    Joined:
    Aug 19, 2008
    Messages:
    15
    Likes Received:
    0
    how exactly works fsck?
    i booted the aspire one with a usb device
    then i opened the terminal, umounted the hd, and then tried with this command: fsck dev/sda1
    after that it told me that the system is clean.

    is that the way to do it?
     
    utonto, Oct 25, 2008
    #11
  12. utonto

    Duncan_Rowland

    Joined:
    Aug 25, 2008
    Messages:
    246
    Likes Received:
    0
    Nearly there I think. You can't check a mounted partition (which is why you can't check when running from linpus).
    So you need to unmount the partition you want to check (you can check which this is using df, for me it's hdc1not sda1)
    So I do
    umount /dev/hdc1
    and then
    fsck /dev/hdc1
    (and I press "y" when it asks me to fix anything, but I think the -y flag requests not to prompt for this)
    p.s. I've assumed you don't have an SD card or USB stick inserted when you've run "sudo du...",
    as this could cause the discrepancies with the sizes seen with df... (i.e. du sums all file systems together).
     
    Duncan_Rowland, Oct 25, 2008
    #12
  13. utonto

    utonto

    Joined:
    Aug 19, 2008
    Messages:
    15
    Likes Received:
    0
    ok so i've done it correctly
    you have assumed well
     
    utonto, Oct 26, 2008
    #13
  14. utonto

    Duncan_Rowland

    Joined:
    Aug 25, 2008
    Messages:
    246
    Likes Received:
    0
    Hi utonto,
    sorry, I don't know how to help further... perhaps others have ideas?
    The files are not present,
    The file system is fine,
    Sounds like everything should be ok... Are you sure the disk space is still "missing"?
    ...The 56mb you originally had, is not the same as the 12% now free (from your df)
    So, perhaps it's fine now? (the du discrepancy might just be from the differing mounts?)
    Best -Duncan.
     
    Duncan_Rowland, Oct 26, 2008
    #14
  15. utonto

    utonto

    Joined:
    Aug 19, 2008
    Messages:
    15
    Likes Received:
    0
    i have deleted some other files from my hard disk because it was not possible to use the pc with only 56 mb of free space.
    the thing is that i never managed to regain the space occupied by those famous files.
    i hope someone will have ideas.

    if not one day or the other i will format the whole aspire one.
     
    utonto, Oct 28, 2008
    #15
  16. utonto

    utonto

    Joined:
    Aug 19, 2008
    Messages:
    15
    Likes Received:
    0
    finally something happened!
    for a fortunate case there was a trouble with the plug where the aspire was plugged in. so it crashed down.
    i restarted the aspire and finally i regain more than 1.5 gb of free space.
    it seems like the crash has reset the hard disk
     
    utonto, Nov 1, 2008
    #16
  17. utonto

    fweigel

    Joined:
    Oct 24, 2008
    Messages:
    118
    Likes Received:
    0
    Ok, your disk is full...

    Try "sudo dumpe2fs -h /dev/sda1" to display the file system details. "df -h", of course, to display the free-space.

    And, now for the fun part. A certain percentage (5% or so) of the disk is reserved for use by root. This is the cause of discrepancies in "dh" output. There is also a "maximum mount count", after which a "fsck" (file system check) is forced. By default (on the 120GB hard disk version), the maximum mount count is set to 26.

    The maximum mount count and the reserved percentage can be adjusted:

    sudo tune2fs -m reserved_blocks_percent /dev/sda1
    sudo tune2fs -c max_mounts_count /dev/sda1

    Use 0 to disable.
     
    fweigel, Nov 4, 2008
    #17
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.