Re: [gentoo-user] recover log file

2007-10-17 Thread Mick
On Wednesday 17 October 2007, Dan Farrell wrote:
> On Wed, 17 Oct 2007 01:10:33 +0200
>
> dexter <[EMAIL PROTECTED]> wrote:
> > Mick pisze:
> > > On Tuesday 16 October 2007, Duane Griffin wrote:
> > >> On 15/10/2007, Neil Bothwick <[EMAIL PROTECTED]> wrote:
> > >>> On Mon, 15 Oct 2007 23:26:02 +0200, dexter wrote:
> >  While tar-ing it I've messed up the command and file got deleted
> >  - I need it back desperately
> > >>>
> > >>> emerge testdisk and run photorec.
> > >>
> > >> But be sure it doesn't compile on the same partition that contained
> > >> the lost data!
> > >
> > > Suggest you try testdisk with a LiveCD and stop messing about with
> > > the drive in question in case you overwrite the disk space in
> > > question.
> >
> > Unfortunatelly it is impossible to use live cd, so is not messing
> > with hard drive - there are services on it that must remain online
> > I've asked around, and found pretty cool solution
> >
> > on another system I do:  nc -l -p 21 > drive_image.dd
> > on server with deleted file I do: dd if=/dev/hda1 | nc -q 2  > another system> 21
> >
> > after that I can play around with drive_image.dd using for example
> > autopsy
>
> I'm afraid I don't think that's going to work too well for you.  You
> see, hardware diagnostics generally employ methods of reading older
> data on the drive because it leaves some kind of electromagnetic
> 'residue' on the drive.  In other words, the diagnostic access you need
> requires access to the hard drive you want to diagnose.

Sure, but *software* diagnostics (testdisk) should do what the OP wants.  
Creating a drive/partition image and mounting on another machine using 
loopback will work fine (I have done it myself a number of times).  Recovery 
may be less effective if the original disk are has been overwritten by newer 
data.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] recover log file

2007-10-16 Thread Dan Farrell
On Wed, 17 Oct 2007 01:10:33 +0200
dexter <[EMAIL PROTECTED]> wrote:

> 
> 
> Mick pisze:
> > On Tuesday 16 October 2007, Duane Griffin wrote:
> >   
> >> On 15/10/2007, Neil Bothwick <[EMAIL PROTECTED]> wrote:
> >> 
> >>> On Mon, 15 Oct 2007 23:26:02 +0200, dexter wrote:
> >>>   
>  While tar-ing it I've messed up the command and file got deleted
>  - I need it back desperately
>  
> >>> emerge testdisk and run photorec.
> >>>   
> >> But be sure it doesn't compile on the same partition that contained
> >> the lost data!
> >> 
> >
> > Suggest you try testdisk with a LiveCD and stop messing about with
> > the drive in question in case you overwrite the disk space in
> > question. 
> Unfortunatelly it is impossible to use live cd, so is not messing
> with hard drive - there are services on it that must remain online
> I've asked around, and found pretty cool solution
> 
> on another system I do:  nc -l -p 21 > drive_image.dd
> on server with deleted file I do: dd if=/dev/hda1 | nc -q 2  another system> 21
> 
> after that I can play around with drive_image.dd using for example
> autopsy
> 

I'm afraid I don't think that's going to work too well for you.  You
see, hardware diagnostics generally employ methods of reading older
data on the drive because it leaves some kind of electromagnetic
'residue' on the drive.  In other words, the diagnostic access you need
requires access to the hard drive you want to diagnose.  

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] recover log file

2007-10-16 Thread dexter



Mick pisze:

On Tuesday 16 October 2007, Duane Griffin wrote:
  

On 15/10/2007, Neil Bothwick <[EMAIL PROTECTED]> wrote:


On Mon, 15 Oct 2007 23:26:02 +0200, dexter wrote:
  

While tar-ing it I've messed up the command and file got deleted - I
need it back desperately


emerge testdisk and run photorec.
  

But be sure it doesn't compile on the same partition that contained
the lost data!



Suggest you try testdisk with a LiveCD and stop messing about with the drive 
in question in case you overwrite the disk space in question.
  
Unfortunatelly it is impossible to use live cd, so is not messing with 
hard drive - there are services on it that must remain online

I've asked around, and found pretty cool solution

on another system I do:  nc -l -p 21 > drive_image.dd
on server with deleted file I do: dd if=/dev/hda1 | nc -q 2 another system> 21


after that I can play around with drive_image.dd using for example autopsy

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] recover log file

2007-10-16 Thread Mick
On Tuesday 16 October 2007, Duane Griffin wrote:
> On 15/10/2007, Neil Bothwick <[EMAIL PROTECTED]> wrote:
> > On Mon, 15 Oct 2007 23:26:02 +0200, dexter wrote:
> > > While tar-ing it I've messed up the command and file got deleted - I
> > > need it back desperately
> >
> > emerge testdisk and run photorec.
>
> But be sure it doesn't compile on the same partition that contained
> the lost data!

Suggest you try testdisk with a LiveCD and stop messing about with the drive 
in question in case you overwrite the disk space in question.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] recover log file

2007-10-15 Thread Duane Griffin
On 15/10/2007, Neil Bothwick <[EMAIL PROTECTED]> wrote:
> On Mon, 15 Oct 2007 23:26:02 +0200, dexter wrote:
>
> > While tar-ing it I've messed up the command and file got deleted - I
> > need it back desperately
>
> emerge testdisk and run photorec.

But be sure it doesn't compile on the same partition that contained
the lost data!

Cheers,
Duane.

-- 
"I never could learn to drink that blood and call it wine" - Bob Dylan
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] recover log file

2007-10-15 Thread Neil Bothwick
On Mon, 15 Oct 2007 23:26:02 +0200, dexter wrote:

> While tar-ing it I've messed up the command and file got deleted - I 
> need it back desperately

emerge testdisk and run photorec.


-- 
Neil Bothwick

Top Oxymorons Number 8: Tight slacks


signature.asc
Description: PGP signature


[gentoo-user] recover log file

2007-10-15 Thread dexter

Hello - I have a problem regarding apache log file.
While tar-ing it I've messed up the command and file got deleted - I 
need it back desperately
The file was 655887455 bytes long, I can not remove the drive that 
stored it from the server, and I suppose the time is of the esence. The 
file was created during experiment with apache load balancing, and if I 
won't get it I have to go all over again.

Please advise.
--
[EMAIL PROTECTED] mailing list