LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 12: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 12:23 AM.
 
Old 02-17-2004, 12:39 AM   #2
Demonbane
LQ 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, 12:47 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Check out the LQ FAQ: Security references, post #5 "Forensics, recovery, undelete" for undelete HOWTO's and tools.
 
Old 02-17-2004, 07: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, 09:24 AM   #5
Marius2
Member
 
Registered: Jan 2004
Location: Munich
Distribution: SuSE 9.2, 10.2, 10.3, knoppix
Posts: 276

Rep: Reputation: 31
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, 09: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:00 PM.

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
Open Source Consulting | Domain Registration