Cloning disk partitions; could someone review this?
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.
Cloning disk partitions; could someone review this?
I'm trying to clone two HD partitions from a defective drive. I have no backups, so I have to get it right the first time. I'd like to get someone to give me a sanity check.
I have a dual boot HD (via GRUB) with the first partition NTFS (130GB, Windows XP professional) and a small ext3 (<1GB, RHEL 4) partition. The rest of the disk is unformatted and for now I don't care about it. I plan to use "dd" from linux to clone the first partition and probably Clonezilla to do the rest. The first partition has so many bad sectors, Clonezilla won't work on it. I cloned the first (ntfs) partition to an partition sized exactly the same on an external USB (/dev/sdb1) HD via "dd if=/dev/sda1 of=/dev/sdb1 bs=512 conv=noerror,sync count=287413957" (I don't have my notes in front of me, so the count value may be off)", but when I look at /dev/sdb1 via GParted, it doesn't see the cloned partion on the external USB drive as NTFS, rather as inidentified.
Maybe my thinking is naive, but shouldn't the cloned partition show up as NTFS? Also, is my approach on the right track?
You copied the partition but not the partition table. The ID is in the table.
[Edit for more info] Are you on the right track? Hard to know, dd will copy bad with good, so it might not do what it is you want. NTFS partitions are finicky about being moved, so it may become unbootable. It's unfortunate that you have no backup; I'd probably move as much data off the drive using disk recovery software if necessary, cp if not necessary.
Last edited by mostlyharmless; 10-03-2008 at 01:09 PM.
Reason: added info
you know I've always used ghost for many years, and tried clonzilla, and ghost for linux, none of them I liked, until I run into partimage, specific the one that comes with systemrescuecd distro I really recommend it, it's really easy to use, I backup all my installations with it
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.