Web Server forum
Back To The Forum Home!Search!Private Messaging System

This is Interesting: Free IT Magazines Now Free shipping to California  
Web Server Talk Web Server Talk > Unix and Linux reviews > Linux support forum > Cheap Linux Hardware > Please help linux neophyte restore data to hard drive!




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Please help linux neophyte restore data to hard drive!  
Mike Lascuola


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-09-04 08:53 PM

I am new to linux (just installed Fedora last week), and here is my
task.  I have a 30GB hard drive from an Alesis HD-24 hard disk
recorder, on which I had recorded over an hour of multitrack data when
the power failed.  In my hard luck of hard luck stories, the new UPS I
purchased just for this gig was DOA, so I was running without a UPS.

That is water under the bridge...

I've heard tell that if I overwrite the header on the hard drive with
what the header would have looked like, I can get all of the data.
So, I took an identical Maxtor hard drive, and recorded over an hour
of blank space using the Alesis HD-24.  I've heard that linux users
can view the data on the drive no matter what the file system (it is
Alesis proprietary) to see where the header and data start and stop,
and write the good header to the original hard drive.

It looks like I'll need the dd command and maybe SFdisk, but --
how?!!!

1)  What command do I use to read the data on the devices to make sure
I know what is what?
2)  (STUPID) The only way I have found to get a command prompt in
Fedora is to use Terminal, and then I have to close the window and
open another one to enter the next command!  I know there is an easier
way (with command history, etc., like doskey in Windows)
3)  Do I have to copy the data to the OS boot drive, or can I copy
directly from the one 30GB device to the other?

Thanks in advance!





[ Post a follow-up to this message ]



    Re: Please help linux neophyte restore data to hard drive!  
John-Paul Stewart


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-09-04 08:53 PM

Mike Lascuola wrote:
> I am new to linux (just installed Fedora last week), and here is my
> task.  I have a 30GB hard drive from an Alesis HD-24 hard disk
> recorder, on which I had recorded over an hour of multitrack data when
> the power failed.  In my hard luck of hard luck stories, the new UPS I
> purchased just for this gig was DOA, so I was running without a UPS.
>
> That is water under the bridge...
>
> I've heard tell that if I overwrite the header on the hard drive with
> what the header would have looked like, I can get all of the data.
> So, I took an identical Maxtor hard drive, and recorded over an hour
> of blank space using the Alesis HD-24.  I've heard that linux users
> can view the data on the drive no matter what the file system (it is
> Alesis proprietary)

You can read/write raw bytes, but in this case you're unlikely to be
able to make sense out of the data unless you know a *lot* about the
internals of the Alesis system.

Linux will not be able to read the proprietary Alesis filesystem as a
filesystem.  Linux will just see a stream of raw data.  It is up to
*you* to interpret that data by yourself.  IMHO, for that reason, you'd
be better off talking to other Alesis users (or Alesis directly) about
data recovery.  I can't stress enough the need for *you* to understand
the Alesis disk format/filesystem/whatever, and that's not likely
information you'll be able to get here in a Linux newsgroup.

> to see where the header and data start and stop,
> and write the good header to the original hard drive.

You either have to know that the header occupies certain parts of the
disk, or know how to tell the difference between the header and your own
data.  Do you know if the header is always a fixed size at the start of
the disk?  Alternatively, do you know the on-disk format of the data?
(In that case anything that didn't match that format _might_ be header.)

> It looks like I'll need the dd command and maybe SFdisk, but --
> how?!!!
>
> 1)  What command do I use to read the data on the devices to make sure
> I know what is what?

dd if=/dev/<whatever> of=/tmp/disk.img

Substiture /dev/<whatever> with the device node for the disk you're
trying to recover.  (E.g., /dev/hdc or /dev/sdb)

Now /tmp/disk.img is a complete copy of the drive.  You can edit it with
a hex editor or do whatever you like with it from there without altering
the original.

> 2)  (STUPID) The only way I have found to get a command prompt in
> Fedora is to use Terminal, and then I have to close the window and
> open another one to enter the next command!  I know there is an easier
> way (with command history, etc., like doskey in Windows)

Fire up an xterm or equivalent.  Or press Ctrl-Alt-F1 to leave graphical
mode entirely and work at the command prompt only.

> 3)  Do I have to copy the data to the OS boot drive, or can I copy
> directly from the one 30GB device to the other?

You certainly don't need to copy to the boot drive or anywhere else
unless you want to.  However, I'd strongly recommend making a copy of
the failed device, working with that, and putting the original in a safe
place.  That way, if you make a really big mistake, you can always go
back to the beginning and start over if you have to.

You also might want to consider contacting a company that specializes in
data recovery.  They're not cheap, but if your data is valuable, it
could well be worth it.





[ Post a follow-up to this message ]



    Re: Please help linux neophyte restore data to hard drive!  
Mike Lascuola


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
07-15-04 07:47 AM

Thanks for the help!  I am well on my way, now.  For some reason, when
I log in as a regular user (even though I have "root" rights), I
cannot see the /dev/hdc and /dev/hdd.  When I logged in as root, then
I can open and read these drives.

I copied the first few KB of one of the drives using:

dd if=/dev/hdc bs=1 skip=1 count=128000 seek=1 of=Disk1.raw

Then read it using something like
hexdump -C Disk1.raw > Disk1.txt

And opened Disk1.txt with the notepad-like text editor.

What I'd really like is a GUI Linux hex browser that I can scroll
through the entire device (30GB), as my Fedora boot disk is only a 3GB
drive, and this can get tedious!





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:11 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register