hard drive failing, how can I create an image of my drive?
My hard drive is dying off and I want to make an image and transfer it to my other hard drive. I looked at norton ghost, but it only supports ext3, I have reiserfs. I also looked at partimage, some linux program that is similar to ghost, but it's in alpha quality and I can't even access there website, it's down. Can anyone recommend to me an easy to use tool for backing up my linux drive? I want to duplicate it as is on my other drive. thanks
|
You can use the "dd" command:
dd if=/dev/hda1 (or whatever your partition is) of=target (the target can be another partition or a file you can use to restore the partition later. |
wow that was a fast reply, under a minute since I clicked post hehe. Thanks juanbobo
|
If you want to copy an image from one partition to another of identical size, you can do this:
Code:
dd if=/dev/hda1 of=/dev/hdb2 Code:
cat /dev/hda1 | bzip2 > file.img Code:
cat file.img | bunzip2 > /dev/hdb1 You can copy an image onto a partition that's too large, but you will then lose the extra space (unless you resize the reiserfs image). If you copy it to a partition that's too small, you'll probably break something. There are tools out there to do this more efficiently, but this method is simple, needs no extra tools, and it does work. |
I'm copying the linux partition to a hard drive that is much larger, will this method still work rjlee?
|
If the drive has errors on it I think ddrescue may be a better tool. You may need to download and compile though. I've never actually used it, but I think the command line switches are very similar if not the same.
$.02 |
Quote:
|
All times are GMT -5. The time now is 03:55 AM. |