Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
During running a program, I found this program stack garbage in /usr/tmp. I wanted to just delete that garbage but erased whole dir -_-;;. After deleting mistakenly, I have two ...
  1. #1
    Just Joined!
    Join Date
    May 2009
    Posts
    7

    I deleted /usr/tmp directory -_-;;

    During running a program, I found this program stack garbage in /usr/tmp. I wanted to just delete that garbage but erased whole dir -_-;;. After deleting mistakenly, I have two problem.

    The first one is that when I checked HD using df, Free space did not match to HDCapacity-Used. The difference is 10Gb(the size of the garbage). Before deleting, this gap did not exist!

    The second one is portable HD is not working. Even though I reconnected many times, linux does not recognize HD.

    Thanks, anyway
    Boat

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    1,939
    During running a program, I found this program stack garbage in /usr/tmp
    Don't understand what that means? What command did you use to delete? You did this in /usr/tmp? Did you have /usr on a separate partition?

  3. #3
    Just Joined!
    Join Date
    May 2009
    Posts
    7
    I used 'su and rm -rf /usr/tmp' -_-;;. Can I recover?

  4. #4
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Exclamation

    I used 'su and rm -rf /usr/tmp' -_-;;. Can I recover?
    If you are using ext3 try this - HOWTO undelete removed files and directories on an ext3 file system
    Next time giis might help you ( in case if you wish to install giis -- check below url)
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  5. #5
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    Your post is really strange.

    First thing first:

    Quote Originally Posted by boatempty View Post
    During running a program, I found this program stack garbage in /usr/tmp.
    Do you really mean /usr/tmp? or do you mean /vartmp?

    Regular users do not have permissions to write under /usr/, so... were you operating as root? 'Cause you shouldn't.

    The first one is that when I checked HD using df, Free space did not match to HDCapacity-Used. The difference is 10Gb(the size of the garbage). Before deleting, this gap did not exist!
    I really doubt that deleting a directory has corrupted your file system. You can always boot from a livecd and use fsck to check it. Or, you can do this and reboot:

    Code:
    touch /forcefsck
    This should force an fsck on the next reboot for the root drive. If usr is on a different partition them do this instead:

    Code:
    touch /forcefsck
    That will check the drive for errors, but I doubt it will find any. I'd use du or something like filelight to see where the space is being wasted instead. Checking never hurts though.

    The second one is portable HD is not working. Even though I reconnected many times, linux does not recognize HD.
    I can't see how this is related at all. Open an xterm and run this command:

    Code:
    tail -f /var/log/messages
    Some text should appear on that window. Now plug the drive, hopefully, some more text should appear indicating that the drive has been recognized by the kernel. If that happens, paste that related text here so we can take a look.

  6. #6
    Just Joined!
    Join Date
    May 2009
    Posts
    7
    yes, I deleted directory as root.

    Anyway, I will try your suggestions.

    Thanks a lot.

  7. #7
    Just Joined!
    Join Date
    May 2009
    Posts
    7
    And I have one more question.

    /usr/tmp directory is necessary?

    Do I need to make the same one?

  8. #8
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    Quote Originally Posted by boatempty View Post
    And I have one more question.

    /usr/tmp directory is necessary?

    Do I need to make the same one?
    It isn't necesary, and even more, it doesn't make any sense at all. As I said in my other post, are you sure you don't mean /var/tmp instead?

  9. #9
    Just Joined!
    Join Date
    May 2009
    Posts
    7
    portable HD is working. Thanks.

    Still I could not find where 10GB is. Is filelight useful?

  10. #10
    Just Joined!
    Join Date
    May 2009
    Posts
    7
    I checked again and I deleted /usr/tmp.

    /var/tmp exists.

Page 1 of 2 1 2 LastLast

Posting Permissions

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