<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1555" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Tahoma><FONT size=2><SPAN class=953245211-16102006><FONT
face=Arial color=#0000ff>Soz leo</FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=953245211-16102006></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN class=953245211-16102006><FONT
face=Arial color=#0000ff>Don't include the $ signs at the start
of filenames when in DOS - I'm getting confused (sign of age).
Command prompt from Windoze - Start -> Run - (type <EM>cmd</EM> in box) click
OK.</FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN class=953245211-16102006><FONT
face=Arial color=#0000ff></FONT></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN class=953245211-16102006><FONT
face=Arial color=#0000ff>If you want to use Linux I can't help with shell script
especially since I don't know the format of the file command and how to get
filenames/types from it and pass these to an mv command - maybe best to use a
pipe or type commands in at command line rather than shell script. Ron may
be able to help. As regards running any script against these files - it's
probably best to run it on copies in a new directory. Maybe putting
all your files back into one directory would help you sort them easier after
renaming anyway. File permissions may be a consideration as well so any
shell script may need a chmod or two unless run as root - now I know I'm
babbling/blagging LOL.</FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT face=Arial color=#0000ff size=2><SPAN
class=953245211-16102006></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT face=Arial color=#0000ff size=2><SPAN
class=953245211-16102006>Rob</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT face=Arial color=#0000ff size=2><SPAN
class=953245211-16102006></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=953245211-16102006> </SPAN>-----Original Message-----<BR><B>From:</B>
Broadfield Robert [mailto:BroadfieldR@walsall.gov.uk] <BR><B>Sent:</B> 16
October 2006 10:38<BR><B>To:</B> 'Wolverhampton Linux User
Group'<BR><B>Subject:</B> RE: [Wolves] NTFS deleted file
recovery<BR><BR></DIV></FONT></FONT>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV><FONT face=Tahoma><FONT size=2><SPAN class=828312709-16102006><FONT
face=Arial color=#0000ff>Have you tried renaming in DOS? Find the
command prompt, then find the directory where you stored the files using
cd. The command is as follows:</FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=828312709-16102006></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN class=828312709-16102006><FONT
face=Arial color=#0000ff>ren <EM>$oldfilename
$newfilename</EM></FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT face=Arial color=#0000ff size=2><SPAN
class=828312709-16102006><EM></EM></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT face=Arial color=#0000ff size=2><SPAN
class=828312709-16102006>Obviously, just changing file extension in each
case.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=828312709-16102006></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN class=828312709-16102006><FONT
face=Arial color=#0000ff>I have used this before to change file extensions and
it does work.</FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=828312709-16102006></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN class=828312709-16102006><FONT
face=Arial color=#0000ff>I'm new to Linux so not sure whether the mv
command would work the same way. If it does, and you wanted to save
time, you might be able to write a shell script using "file" to test for the
filetype and mv to create a file with the correct extension in each
case.</FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT face=Arial color=#0000ff size=2><SPAN
class=828312709-16102006></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT face=Arial color=#0000ff size=2><SPAN
class=828312709-16102006>Rob</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Tahoma><FONT face=Arial color=#0000ff size=2><SPAN
class=828312709-16102006></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Tahoma><FONT size=2><SPAN
class=828312709-16102006> </SPAN>-----Original
Message-----<BR><B>From:</B> leo sandhu [mailto:leosandhu@gmail.com]
<BR><B>Sent:</B> 15 October 2006 23:36<BR><B>To:</B> Wolverhampton Linux User
Group<BR><B>Subject:</B> Re: [Wolves] NTFS deleted file
recovery<BR><BR></DIV></FONT></FONT>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">It's not worked :( I have
already seperated all the files into seperate directories based upon size
and the alleged extension. Running *.* is simply
confirming that the files are sorted correctly :S <BR><BR>Still very
few of them are actually opening and the huge files are still
insisting to be .doc files. Is it possible that they are some form of
temp file created by M$ Office?? <BR><BR>:'(<BR><BR>Ron
said>>><BR><BR>Mount the disk under Linux (ubuntu live CD?), open
up a shell and run<BR>"file" against the files e.g. "file *.*" this will at
least identify if<BR>the file is a PDF, Office document, mpeg, iso whatever
based on the <BR>content of the file instead of the
extension.<BR><BR>HTH<BR><BR><<<<<BR><BR><BR>
<DIV>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid"><BR><BR>leo
sandhu wrote:<BR>><BR>> Does anybody know about manipulating file
headers?<BR>><BR>> In the end I used PhotoRec and succesfully
recovered 36GB of data from<BR>> the old 40Gb drive. The
problem now is that although I requested only a <BR>>
few file types - .pdf .doc .ppt .xl ; the stupid
thing has actually<BR>> recovered what looks like every file on that
hard disk outside of the<BR>> main "windows" directory and liberally
distributed a file extension <BR>> based upon what seems to be luck of
the draw.<BR>><BR>> This means I now have doc files that are 640mb
in size. Me thinks these<BR>> seem likely to be either MPG
or iso files and are easily ignored.<BR>> However, actually sifting
through the thousands of remaining files is<BR>> worse than drowning in
custard. There is some 20Gb of files under 10mb<BR>> in
size,<BR>><BR>> Please, can anyone tell me a way to easily (or at
least more sensibly) <BR>> filter these files, maybe try to reallocate
file extensions and check<BR>> for integrity?<BR>><BR>> please :S
please
:S<BR><BR><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>