LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Installing Slackware COMPLETE NEWBIE HERE (https://www.linuxquestions.org/questions/slackware-14/installing-slackware-complete-newbie-here-518039/)

brianc 01-12-2007 09:07 AM

Quote:

Originally Posted by pwc101
Your two hard drives are /dev/hda and /dev/hdb. The dd command you're running is using /dev/hdc as an input, which might be your CD/DVD drive (if you have one). Depending on which drive you are trying to read from (/dev/hdb?), adjust the dd command accordingly.

Actually, I ran the command with /dev/hda and /dev/hdb. The data looks the same on both outputs which might possibly mean my audio is blank on the drive that lost power. That's what I am afraid of! Only thing is, the example that Alesis supplied below mentions that if the audio is blank, that the output would show all zeros. Neither file shows zeros so not sure what is going on. Almost as though the dd command is looking at only one drive??

Thanks!
Brian

pwc101 01-12-2007 09:34 AM

Have you created a new blank audio file on your new hard drive? I suspect the information you're seeing on the output of the dd command is the header file, as the original author of those instructions states:
Quote:

9. I could not figure out where the header ended and audio began.
10. Then I did the same command on the new drive with blank audio and determined where the header ended. Basically, when the header ended the code became all zeros because of blank audio. I determined the audio started at the hex address of 1dff0.
Try increasing the count from 1000 to 10000 (this will take a lot longer to run though) and see if you can spot a difference.

brianc 01-12-2007 11:31 AM

Quote:

Originally Posted by pwc101
Have you created a new blank audio file on your new hard drive? I suspect the information you're seeing on the output of the dd command is the header file, as the original author of those instructions states: Try increasing the count from 1000 to 10000 (this will take a lot longer to run though) and see if you can spot a difference.

Well, I tried that and the two files still appear to be the same. I tried raising the count to 96000000 as the steps suggested below for the copy command, but that locked up the PC!

Thanks for your continued help on this!!

Brian

pwc101 01-12-2007 11:55 AM

In spite of the fact that you're not seeing any zeroes, the fact that both outputs appear similar might suggest that the original hard drive also has no data on it. I'm not familiar enough with the manner in which the audio is recorded to the disk to be able to say for sure, but what you might be seeing is free space on the disk, rather than an audio file.

Obviously I'm not familiar with this piece of kit at all, but their FAQ suggests that each track is recorded as a continuous data stream, so files aren't broken up. What the information you were given by the support people seems to suggest you try, is generate a blank file and they copy into that file (between the beginning and the end of it) the parts of the file that had been created before you lost power. In order to do this, you need to know what the blank file looks like, specifically the part where the header (information on what the file actually is) ends, and where the audio begins. With a blank file, I image this should be fairly obvious as the header will be very complicated, whereas the blank audio will be all exactly the same. Then you need to search you original disk, find the part which matches the end of the header, and then copy from that point onwards into your blank audio file, from the end of the header onwards. Theoretically, you should then have a file which contains the audio data in a valid audio file.

Also, if the file you're trying to rescue isn't the first on the disk, then you'll have to search the entire disk to find where it does begin. This could be a laborious process.

Like I said though, I don't know the ins and outs, I'm sort of guessing.

Cpoc 01-12-2007 01:24 PM

If your hard drive is bad or showing signs of it you can run Spinrite www.grc.com
That will fix your drive up.


All times are GMT -5. The time now is 05:29 PM.