niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » OpenBSD
file deletions..
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
sriram.sitaraman@gmail.co
*nix forums beginner


Joined: 23 May 2005
Posts: 10

PostPosted: Mon Jul 17, 2006 1:27 am    Post subject: file deletions.. Reply with quote

hi All

I have openBSD 3.4 running on x86. Unfortunately I deleted a number of
files in a directory using the rm command in my home directory.

# rm -rf /home/sriram/images/


the system itself is a standard install.

I would like to request information on how I could retrieve the files
back. I initially copied the top level directory from a Windows
machine. I deleted the files on the Windows machine as well, but
unfortunately using search and recover tools in Windows tools does not
show the files..

Are there similar tools in OpenBSD ? please help..

Sriram
Back to top
void * clvrmnky()
*nix forums Guru Wannabe


Joined: 01 Mar 2006
Posts: 152

PostPosted: Mon Jul 17, 2006 5:03 pm    Post subject: Re: file deletions.. Reply with quote

sriram.sitaraman@gmail.com wrote:
Quote:
hi All

I have openBSD 3.4 running on x86. Unfortunately I deleted a number of
files in a directory using the rm command in my home directory.

# rm -rf /home/sriram/images/

Yup. Everyone does this at least once in their lives.


Quote:
the system itself is a standard install.

I would like to request information on how I could retrieve the files
back. I initially copied the top level directory from a Windows
machine. I deleted the files on the Windows machine as well, but
unfortunately using search and recover tools in Windows tools does not
show the files..

Are there similar tools in OpenBSD ? please help..

Not in the default install. There may be something in the ports tree

that allows you to inspect the raw file directory entries to mark them
in use (again) so you can retrieve them (if they have not already been
written over).

Unfortunately, the act of using the box increases the chance that the OS
will overwrite the deleted files. Certainly running a ports build would
likely do that.

If this data is precious, down the server *now* and start investigating
data recovery options. You either have to find a service to do it, or
find a home-grown solution that allows you to non-destructively inspect
a FFS disk to retrieve file info for files marked deleted.
Back to top
Marc Espie
*nix forums beginner


Joined: 10 Apr 2005
Posts: 27

PostPosted: Mon Jul 17, 2006 10:15 pm    Post subject: Re: file deletions.. Reply with quote

In article <1153099671.576755.183830@b28g2000cwb.googlegroups.com>,
<sriram.sitaraman@gmail.com> wrote:
Quote:
hi All

I have openBSD 3.4 running on x86. Unfortunately I deleted a number of
files in a directory using the rm command in my home directory.

# rm -rf /home/sriram/images/


the system itself is a standard install.

I would like to request information on how I could retrieve the files
back. I initially copied the top level directory from a Windows
machine. I deleted the files on the Windows machine as well, but
unfortunately using search and recover tools in Windows tools does not
show the files..

Too bad, you can't.

In any case, OpenBSD 3.4 is ancient, use the opportunity to update...
Back to top
sriram.sitaraman@gmail.co
*nix forums beginner


Joined: 23 May 2005
Posts: 10

PostPosted: Tue Jul 18, 2006 12:28 am    Post subject: Re: file deletions.. Reply with quote

thanks.. but just fyi : the program photorec -
http://www.cgsecurity.org actually was able to salvage some deleted
file.. with very minimum effort..


Srirma
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Mon Dec 01, 2008 9:37 pm | All times are GMT
navigation Forum index » *nix » BSD » OpenBSD
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Running php file everyday on scheduled time sachin PHP 1 Fri Jul 21, 2006 12:49 pm
No new posts Regarding thesaurus iso file Srikanth modules 0 Fri Jul 21, 2006 10:42 am
No new posts how can i get a file descriptor not used? mars system 0 Fri Jul 21, 2006 7:41 am
No new posts small GTK "Open file" dialog David Siroky Debian 0 Fri Jul 21, 2006 7:30 am
No new posts Trouble Declaring 3D Array in Header File free2klim C++ 1 Fri Jul 21, 2006 4:07 am

Loans | Loans | AdSense Optimization Tutorials | MPAA | Credit Cards
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1793s ][ Queries: 16 (0.1046s) ][ GZIP on - Debug on ]