Quote:
Originally Posted by dsschanze
This morning in haste, I stupidly disconnected my external HD from my laptop and as a result some of my files that had just finished copying have gone missing.
|
In short syncing didn't complete and as a result the files weren't written completely.
Quote:
Originally Posted by dsschanze
While the files I lost are not super critical to get back - it would be nice to be able to retrieve them.
|
You referred to "copying" which in contrast to moving means the original is still available. That being the case I wouldn't bother with recovery.
Quote:
Originally Posted by dsschanze
Is an application such as Photorec the easiest way to attempt their retrieval or is another application more suitable.
|
Photorec, Scalpel and Foremost all can or can't make heads or tails of it but IMHO something being suitable depends on an understanding of the tools and the situation. Think files that are incomplete anyway, files that don't have proper header / footer signatures or an OP forgetting to mention he compounded the situation by already having run fsck or copied files over or something like that. Whatever you intend to use do read the manual, set the victim drive read-only, decide if you need to make an image of the drive or can live without it and always recover to a physically different medium.
Quote:
Originally Posted by dsschanze
Also it appears that space is being taken up by these files on my external HD - is there a way to reclaim this space?
|
Running fsck on the medium should fix file systems problems if any and correct the file systems state (dirty > clean). If after that space still doesn't seem to be reclaimed you could zero out free space by dd'ing /dev/zero
to a file on the medium.