View Single Post
Old 01-18-2010, 12:59 PM  
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
Quote:
Originally Posted by mkx View Post
I heard I can quick format it and make an image with get databack but since I might only have once chance to restore this drive I want to make sure I know what I am doing.
Good thinking. Normally before doing anything that could possibly make any changes to
a damaged drive, you want to first make a copy of it. On Windows, you can go down
to your local store and spend $75 on Norton Ghost, or you can download any boot
floppy, CD-ROM, or DVD from any other operating system made since 1970 and
a "copy something" tool will be included. So rather than waste a trip to the store and
$75, just download any Linux. The big Linux distros that take a while to download
will have pretty icons you can click to copy your drive. With little floppy based ones
that download in 60 seconds, you have to type the "dd" command.

Assuming you're impatient and download a tiny floppy style one, here are the
commands to type:
fdisk -l /dev/sda
fdisk -l /dev/sdb

Look carefully and make sure you know which is your old disk and which is the
new one you're copying to. Then check again. You don't want to copy emptiness
onto your data drive, so be sure you know which drive is which. Then:
dd if=/dev/sda of=/dev/sdb

The above is if sda of the old drive (input) and sdb is the new (output).
otherwise, reverse it:
dd if=/dev/sdb of=/dev/sda

You now have a copy of your drive.
__________________
For historical display only. This information is not current:
support@bettercgi.com ICQ 7208627
Strongbox - The next generation in site security
Throttlebox - The next generation in bandwidth control
Clonebox - Backup and disaster recovery on steroids
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote