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 ...
- 05-08-2009 #1Just 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
- 05-08-2009 #2Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 1,939
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?During running a program, I found this program stack garbage in /usr/tmp
- 05-08-2009 #3Just Joined!
- Join Date
- May 2009
- Posts
- 7
I used 'su and rm -rf /usr/tmp' -_-;;. Can I recover?
- 05-08-2009 #4
If you are using ext3 try this - HOWTO undelete removed files and directories on an ext3 file systemI used 'su and rm -rf /usr/tmp' -_-;;. Can I recover?
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
-------------------
- 05-08-2009 #5Linux Guru
- Join Date
- Nov 2007
- Location
- Córdoba (Spain)
- Posts
- 1,513
Your post is really strange.
First thing first:
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.
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: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!
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.Code:touch /forcefsck
I can't see how this is related at all. Open an xterm and run this command:The second one is portable HD is not working. Even though I reconnected many times, linux does not recognize HD.
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.Code:tail -f /var/log/messages
- 05-11-2009 #6Just Joined!
- Join Date
- May 2009
- Posts
- 7
yes, I deleted directory as root.
Anyway, I will try your suggestions.
Thanks a lot.
- 05-11-2009 #7Just 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?
- 05-11-2009 #8Linux Guru
- Join Date
- Nov 2007
- Location
- Córdoba (Spain)
- Posts
- 1,513
- 05-11-2009 #9Just Joined!
- Join Date
- May 2009
- Posts
- 7
portable HD is working. Thanks.
Still I could not find where 10GB is. Is filelight useful?
- 05-11-2009 #10Just Joined!
- Join Date
- May 2009
- Posts
- 7
I checked again and I deleted /usr/tmp.
/var/tmp exists.


Reply With Quote
