Sponsored Content
Top Forums UNIX for Advanced & Expert Users recovering a deleted directory Post 302484144 by cokedude on Thursday 30th of December 2010 12:59:39 AM
Old 12-30-2010
Quote:
Originally Posted by Corona688
Well, how did you encrypt it in the first place? How does it usually get mounted? Magic Rescue works much the same way as Photorec -- scan every block to see if it's the start of a file -- but it's lot more sophisticated, using script-like plugins to recognize many types of files instead of recognizing a simple few hardcoded ones.

Code:
$ ls /usr/share/magicrescue/recipes
avi  gimp-xcf  gzip       jpeg-jfif  mp3-id3v2  perl  zip
elf  gpl       jpeg-exif  mp3-id3v1  msoffice   png
$ cat /usr/share/magicrescue/recipes/jpeg-exif
# Extracts jpeg files with the Exif magic bytes. These usually originate from
# digital camaras or other devices.
# Depends on jpegtran from libjpeg: http://freshmeat.net/projects/libjpeg/
# See also jpeg-jfif
6 string Exif
0 int32 ffd80000 ffff0000
extension jpg
command jpegtran -copy all -outfile "$1"
$

This is also what makes it slower, since it does a lot more work on each block it reads, checking them all to see what they are.

You seem to be having lots and lots of data loss problems lately. A good backup might be an idea.
Like this when I installed Linux.

Image

By logging in the normal way from the login menu. I don't think I should be using my system the normal way cause that will decrease the possibility of me getting my data back.

I wrote my own guide of how to decrypt an encrypted home directory. I wrote the Live CD method of opening a encrypted home directory.

https://help.ubuntu.com/community/En...me%20directory

The first time wasn't my fault. The second time I was stupid. I had a phone call while I was testing the rm -r command. I typed in the wrong directory while I was talking. I know I should have stopped what I was doing but I didn't.

Back the topic at hand. Should I use Magic Rescue or a different program?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Recovering lost files

I noticed this in a search for more security tools... It IS possible to "undelete" a file; I suppose recover would be a better term for it. I suppose we've all made the boo-boo (that we all hopefully learned from) of deleting a file, and finding that you do not have a backup. I wouldn't... (1 Reply)
Discussion started by: LivinFree
1 Replies

2. SCO

HELP! Recovering system from New Orleans!!

I am helping a company recover a system that is SCO OS 5.0.5 - they have their backup media, cd copies of SCO, but they do not have their license keys to install and SCO is being difficult in validating their license. Does anyone have an install license key for 5.0.5 that they would be willing... (1 Reply)
Discussion started by: ggraham
1 Replies

3. Solaris

Deleted Lost+Found directory

If you delete your lost & found directory, how do you get it back, just do a mkdir? (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies

4. Shell Programming and Scripting

files of size 0 need to be deleted inside a directory

Hiiii, I have written a script which takes backup of some log files. let say the backuplocation is --- /abc/backuplocation -rw-r--r-- 1 webmut2 spgroup 0 Jan 27 02:41 ansrpt23994.log -rw-r--r-- 1 webmut2 spgroup 0 Jan 27 02:41 ansrpt3601.log -rw-r--r-- 1... (2 Replies)
Discussion started by: namishtiwari
2 Replies

5. Solaris

Directory should not be deleted, But the contents can be

Hi Guys, I have an user's home directory set to /home/A And A contains the following directories B & C Is there some way in solaris by which i can prevent the directories B and C from getting deleted by the user but the contents of the directories B & C can be deleted ? Also i have... (2 Replies)
Discussion started by: localhost
2 Replies

6. SCO

Recovering 5.0.7 from Bootable CD

I've been working with SCO Unix for several years now but have never had to restore a system from a bare drive. I have a bootable CD that contains what appears to be the correct files necessary to recover the boot and root filesystems. I've got the BIOS setup such that the CD is the first... (12 Replies)
Discussion started by: teamhog
12 Replies

7. AIX

Recovering a failed system

Hi,My system is not booting and at the startup it is getting struck.In HMC error code is coming as 0000, I know the reason of failing.I have few queries on recovery, please answer:1. I have mksysb of the system from which I can restore the system but problem is my few application mount point was a... (5 Replies)
Discussion started by: aixpank
5 Replies

8. Shell Programming and Scripting

recovering cron job

I deleted one of the job from the cron tab. I want to get it back. How can i do this. pplease suggest me.. thanks (1 Reply)
Discussion started by: pranabrana
1 Replies

9. Emergency UNIX and Linux Support

Directory got deleted

One of my directory code where i have stored all my scripts have disappeared . I have no idea on how it got deleted.Could someone pls help me to track-back on what would have happened? I left the office yesterday and today when i just logged in to work with the scripts I could not find the... (13 Replies)
Discussion started by: michaelrozar17
13 Replies

10. Solaris

Directory cannot be deleted!!!

Friends, I have accidently, as root, created a directory gabsf under /home. Now I cannot delete this thing, I have tried rm and rmdir, as well as explicit path name, but it is really undeleteable. Here is what ls -l says. # ls -l /home total 6 drwxr-xr-x 2 dawood dawood 2 Sep 5... (3 Replies)
Discussion started by: gabam
3 Replies
RECOVER(1)						      General Commands Manual							RECOVER(1)

NAME
recover - recover a deleted file SYNOPSIS
recover [device] [options] OPTIONS
-h, --help prints help -a, --all no filtering; dump all deleted inodes DESCRIPTION
recover recovers a file which matches some ext2 - info about the deleted inode by getting all the deleted inodes and filtering them. It's based upon the Ext2Undeletion-howto by Aaron Crane. Using this utility, your chances to recover a lost file should increase a lot. QUESTIONS ABOUT THE DELETED FILE
o Hard disk device name o Year of deletion o Month of deletion o Weekday of deletion o First/Last possible day of month o Min/Max possible file size o Min/Max possible deletion hour o Min/Max possible deletion minute o User ID of the deleted file o A text string the file included (can be ignored) BUGS
Please note that recover does not work with ext3 filesystems, it is strictly ext2-only. For further information on this, please read /usr/share/doc/recover/README.ext2only WARRANTY
There is no warranty. SEE ALSO
debugfs (8) AUTHOR
Tom Pycke (Tom.Pycke@advalvas.be) WEBSITE
http://users.linuxbox.com/~recover November 4 1999 RECOVER(1)
All times are GMT -4. The time now is 01:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy