LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I image an OS Hard drive with a Knoppix Live CD and dump that image to new HD (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-image-an-os-hard-drive-with-a-knoppix-live-cd-and-dump-that-image-to-new-hd-4175487725/)

jobeau1 12-12-2013 10:12 AM

How do I image an OS Hard drive with a Knoppix Live CD and dump that image to new HD
 
I'm a complete newb to Linux though I have some basic experience with Solaris. I have an OS image on an external drive that was made (by someone else)with one of the utilities in Knoppix Live. First, I'm not sure how to look at or identify this image so that I am sure that I am dumping the correct image from the source drive to the correct destination drive. I'm not sure what utility to use, like dd or partimage. Second, I need to know how to dump this image onto another drive. If someone could tell me where I can read about how to use dd and partimage on the Knoppix Live CD, that may be all I need. Also, I have been doing some reading and I'm not sure dd is the correct utility to use since it can affect the usable size of the drive. Maybe a partimage tutorial or step by step would be helpful.

Thanks

schneidz 12-12-2013 10:19 AM

this seems kinda' dangerous for a noobie.

run the file command to determine if it is a partition iso or a disk image...

then the format of the command would be something like:
Code:

dd if=fc19-11-15-2013.iso of=/dev/sdb bs=8M

jobeau1 12-12-2013 03:36 PM

Thanks Schneidz. I ended up using the command:

dd if=/dev/sda of=/dev/sdb bs=1024

its copying now.

jefro 12-12-2013 05:36 PM

As a note, live cd's like knoppix have many tools. Gparted for example might have been used. A number of apps can be loaded if not installed like partimage to a live booted system. Other live cd's are also useful for this task. Clonezilla and Redobackup and systemrescue.

dd is a bit by bit copy. It tends to work but you also have to know limits of exact copies. Generally you fix any specific references before the clone. Otherwise you'd have to edit them later. Grub and fstab are common issues. In some cases you will have messed up geometry.

nd7rmn8 12-12-2013 06:35 PM

I would recommend using the DRBL livecd. It contains the clonezilla program, as well as a few other useful utilities, and it boots into a gui. It's intended purpose is to facilitate imaging multiple computers over a network at the same time, but it works great for single computers as well.

Here is the link to the clonezilla livced guide.
http://clonezilla.org/clonezilla-live-doc.php

Also, keep in mind you can only image to a partition of equal or greater size. It doesn't matter if 90% of the image is of free space, it wont work. Atleast not last time I checked.


All times are GMT -5. The time now is 01:35 PM.