LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-17-2004, 01:22 AM   #1
patske
LQ Newbie
 
Registered: Nov 2003
Posts: 7

Rep: Reputation: 0
Help: Accidently deleted file


Hey guys im a big ol newbie at linux and was just wondering if there is anyway i can get a file i accidently deleted from /usr/bin/ back

the file is /usr/bin/transcode

i have my reasons for accidently deleting this file and if i told you them it wouldn't sound so stupid but im not getting into that. i just need to know if i can get this file back i did it in command using rm transcode.
Main reason i need this file back is because i have the program installed but i cannot use it now because the executable thingy is gone
anyway help if you can anyone. Thanks

Last edited by patske; 02-17-2004 at 01:23 AM.
 
Old 02-17-2004, 01:39 AM   #2
Demonbane
Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
If you use ext3 I think there's a way, but maybe its quicker just reinstalling the app?
 
Old 02-17-2004, 01:47 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,675
Blog Entries: 54

Rep: Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953Reputation: 2953
Check out the LQ FAQ: Security references, post #5 "Forensics, recovery, undelete" for undelete HOWTO's and tools.
 
Old 02-17-2004, 08:43 AM   #4
SylvainP
LQ Newbie
 
Registered: Feb 2004
Distribution: Suse, Knoppix, Slackware
Posts: 27

Rep: Reputation: 15
I've never tried to undelete a file in Linux but if you want to go that way then it's imperative that you don't do any operation that will cause a write to the partition where that file resides as that may overwrite the sectors it used.

But I think the easiest thing for you to do would be to reinstall the application that this file comes from.
 
Old 02-17-2004, 10:24 AM   #5
Marius2
Member
 
Registered: Jan 2004
Location: Munich
Distribution: SuSE 9.2, 10.2, 10.3, knoppix
Posts: 274

Rep: Reputation: 30
1. unmount the partition on which the file was, if possible.
2. use debugfs to undelete the file (debugfs --help; man debugfs)

HTH
 
Old 02-17-2004, 10:34 AM   #6
patske
LQ Newbie
 
Registered: Nov 2003
Posts: 7

Original Poster
Rep: Reputation: 0
thanx everyone for their help. I ended up just reinstalling regretably but it's fixed now, ill learn not to be so hast in my deletions next time
 
  


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
I accidently deleted /udev folder, what can I do? QuickTime Mandriva 1 09-29-2004 07:00 AM
accidently deleted /boot partition :( aditya_ic Linux - General 7 07-29-2004 03:37 AM
Accidently deleted GLIBC, any help for SuSE? Raj_Nair Linux - Distributions 0 06-30-2004 11:42 AM
I accidently deleted the lib directory ICO Slackware 2 02-10-2004 01:40 PM
Accidently deleted /dev/dsp MasterKin8T Linux - Newbie 2 01-29-2004 09:06 PM


All times are GMT -5. The time now is 05:20 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration