Sponsored Content
Top Forums UNIX for Advanced & Expert Users recovering a deleted directory Post 302479356 by Corona688 on Friday 10th of December 2010 11:33:57 AM
Old 12-10-2010
Quote:
Originally Posted by COKEDUDE
Any idea how? I have read every guide I can find on the internet with no luck.
Well, how did you encrypt it in the first place? How does it usually get mounted?
Quote:
What does Magic Rescue do that photorec can't do?
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.
 

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
jpeg(n)                                                       JPEG image manipulation                                                      jpeg(n)

__________________________________________________________________________________________________________________________________________________

NAME
jpeg - JPEG querying and manipulation of meta data SYNOPSIS
package require Tcl 8.2 package require jpeg ?0.3.3? ::jpeg::isJPEG file ::jpeg::imageInfo file ::jpeg::dimensions file ::jpeg::getThumbnail file ::jpeg::getExif file ?section? ::jpeg::formatExif keys ::jpeg::exifKeys ::jpeg::removeExif file ::jpeg::stripJPEG file ::jpeg::getComments file ::jpeg::addComment file text... ::jpeg::removeComments file ::jpeg::replaceComment file text ::jpeg::debug file ::jpeg::markers channel _________________________________________________________________ DESCRIPTION
This package provides commands to query and modify JPEG images. JPEG stands for Joint Photography Experts Group and is a standard for the lossy compression of photographical images. It is specified at LINK_HERE. COMMANDS
::jpeg::isJPEG file Returns a boolean value indicating if file is a JPEG image. ::jpeg::imageInfo file Returns a dictionary with keys version, units, xdensity, ydensity, xthumb, and ythumb. The values are the associated properties of the JPEG image in file. Throws an error if file is not a JPEG image. ::jpeg::dimensions file Returns the dimensions of the JPEG file as a list of the horizontal and vertical pixel count. Throws an error if file is not a JPEG image. ::jpeg::getThumbnail file This procedure will return the binary thumbnail image data, if a JPEG thumbnail is included in file, and the empty string otherwise. Note that it is possible to include thumbnails in formats other than JPEG although that is not common. The command finds thumbnails that are encoded in either the JFXX or EXIF segments of the JPEG information. If both are present the EXIF thumbnail will take precedence. Throws an error if file is not a JPEG image. set fh [open thumbnail.jpg w+] puts -nonewline $fh [::jpeg::getThumbnail photo.jpg] close $fh ::jpeg::getExif file ?section? section must be one of main or thumbnail. The default is main. Returns a dictionary containing the EXIF information for the speci- fied section. For example: set exif { Make Canon Model {Canon DIGITAL IXUS} DateTime {2001:06:09 15:17:32} } Throws an error if file is not a JPEG image. ::jpeg::formatExif keys Takes a list of key-value pairs as returned by getExif and formats many of the values into a more human readable form. As few as one key-value may be passed in, the entire exif is not required. foreach {key val} [::jpeg::formatExif [::jpeg::getExif photo.jpg]] { puts "$key: $val" } array set exif [::jpeg::getExif photo.jpg] puts "max f-stop: [::jpeg::formatExif [list MaxAperture $exif(MaxAperture)]] ::jpeg::exifKeys Returns a list of the EXIF keys which are currently understood. There may be keys present in getExif data that are not understood. Those keys will appear in a 4 digit hexadecimal format. ::jpeg::removeExif file Removes the Exif data segment from the specified file and replaces it with a standard JFIF segment. Throws an error if file is not a JPEG image. ::jpeg::stripJPEG file Removes all metadata from the JPEG file leaving only the image. This includes comments, EXIF segments, JFXX segments, and applica- tion specific segments. Throws an error if file is not a JPEG image. ::jpeg::getComments file Returns a list containing all the JPEG comments found in the file. Throws an error if file is not a valid JPEG image. ::jpeg::addComment file text... Adds one or more plain text comments to the JPEG image in file. Throws an error if file is not a valid JPEG image. ::jpeg::removeComments file Removes all comments from the file specified. Throws an error if file is not a valid JPEG image. ::jpeg::replaceComment file text Replaces the first comment in the file with the new text. This is merely a shortcut for ::jpeg::removeComments and ::jpeg::addCom- ment Throws an error if file is not a valid JPEG image. ::jpeg::debug file Prints everything we know about the given file in a nice format. ::jpeg::markers channel This is an internal helper command, we document it for use by advanced users of the package. The argument channel is an open file handle positioned at the start of the first marker (usually 2 bytes). The command returns a list with one element for each JFIF marker found in the file. Each element consists of a list of the marker name, its offset in the file, and its length. The offset points to the beginning of the sections data, not the marker itself. The length is the length of the data from the offset listed to the start of the next marker. LIMITATIONS
can only work with files cant write exif data gps exif data not parsed makernote data not yet implemented BUGS, IDEAS, FEEDBACK This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category jpeg of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either package and/or documentation. KEYWORDS
comment, exif, image, jfif, jpeg, thumbnail COPYRIGHT
Copyright (c) 2004-2005, Code: Aaron Faupell <afaupell@users.sourceforge.net> Copyright (c) 2007, Code: Andreas Kupries <andreas_kupries@users.sourceforge.net> Copyright (c) 2004-2007, Doc: Andreas Kupries <andreas_kupries@users.sourceforge.net> jpeg 0.3.3 jpeg(n)
All times are GMT -4. The time now is 03:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy