Semi-vague Forensics help, DD, FS Header/Footer and Some Comic Timing With HDD Death
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Semi-vague Forensics help, DD, FS Header/Footer and Some Comic Timing With HDD Death
Okay, as the subject suggests I'm struggling with some simple forensic type stuff. First, a little background.
So its christmas, and for a little extra cash I'm working on an old school friend's external hard drive, the usual data recovery and transfer. The people at either his company or University tech desk couldn't help him, but that meant nothing to me so I jump in.
Very simple problem, the disk has just started to die, essentially, the disk's SMART stuff is screaming at me, files taking too long to read, etc., so I use
Code:
# dd if=/dev/sdc of=/backup/hdd.dump
to make a dump. This is pretty standard stuff. The problem is that 130gig into about 200gig of data, the disk goes kersplunk. We're talking the full set of funny clicks, not showing up, funny smells etc.
So I do my best, tell the guy I could only recover 130gig, use
Code:
# dd if=/backup/hdd.dump of=/dev/sdd
to put it on the new one.
Only thing is, not recognised properly. So have I either tried to use dd in a context where something better should have been used? Have I lost valuable information I needed in the last part of the filesystem? And if so, where can I find this? Is there a tool similar to diff that will handle hex files? I'm trying to work out similarities at the start and end of the file systems, but of course with binary files, you get the ever so helpful
Code:
jc@jcbroom:~/systems$ diff fat32-1.log fat32-2.log
Binary files fat32-1.log and fat32-2.log differ
Thats fantastic, off the top of your head, could you recommend any specific tool? I've only ever used foremost, but as I remember, it is limited to about 2 or 3 gig files. Would scalpel do the trick? Or is that limited too?
Thats fantastic, off the top of your head, could you recommend any specific tool? I've only ever used foremost, but as I remember, it is limited to about 2 or 3 gig files. Would scalpel do the trick? Or is that limited too?
Cheers
From the head to the scaple.conf file:
Quote:
# Scalpel configuration file
# This configuration file controls the
# types and sizes of files that are carved by Scalpel. Currently,
# Scalpel can read Foremost 0.69 configuration files, but Scalpel
# configuration files may not be backwards-compatible with Foremost.
# In particular, maximum file carve size under Foremost 0.69 is 4GB,
# while in the current version of Scalpel, it's 16EB (16 exabytes).
Can you mount the image file you created rather than the disk to which you moved the image? (My thought is that the partition table in the image may not be compatible with the geometry of the HD to which you copied it.)
Thats fantastic, off the top of your head, could you recommend any specific tool? I've only ever used foremost, but as I remember, it is limited to about 2 or 3 gig files. Would scalpel do the trick? Or is that limited too?
Cheers
If you're using ext3 I highly recommend ext3grep. It's fairly new, far from perfect, but its quite impressive (if you're using ext3).
Also remember you don't need to actually dd the file out to a new drive, you can just mount the file itself as loopback.
I also recommend you make a backup of the actual dump to work with, nothing like having your image becoming corrupt while you're working on it.
As one of the above posters mentioned, I think the problem is that you are trying to replicate a failing drive. Not a good idea. First of all, I would have used dd_recover, and second, work with the dd file as a filesystem and do not try to write it onto a drive block for block. Pull out what is needed and write it somewhere, but I would not write every single block onto another drive. As they said, partition table, etc. is gonna be all borked. Just get your files out. x2 on the ext3grep if you know what you're doing somewhat.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.