PDA

View Full Version : Image: Dual boot system, ntfs + ext3.



UnknownEntity
12-03-2005, 05:36 AM
System to be imaged (This entire setup is on a single 40GB hard disk):
Windows XP Pro [NTFS]
Fedora Core 4 [EXT3]
-Boot Parition [EXT3]
-Swap Parition

How would I tell Knoppix to image the entire drive, and not just one of the above paritions. I am not even sure if Knoppix can support this type of image process.

I need to authenticate to a Kerberos based Windows 2003 network share, and store an image file that will be used to image 30 or so machines.

Can Knoppix just copy the entire HDD byte-for-byte to an image file, and restore that to other hard drives?

Regards, and thank you for any help.

OErjan
12-03-2005, 01:22 PM
sure, let us say the hdd is called hda, first partition is hda1, second hda2...
to image whole disk to disk hdb as a file on the mounted partition hdb1 do
dd if=/dev/hda of=/mnt/hdb1/diskimage.img
hdb1 that has to be greater than 40G AND be a linuxwritable fileformat with support for large files ext3, reiserfs or such.
another thing is that DMA might speed things considerably. so boot with knoppix dma
to restore it, just do the reverse.
code]dd if=/mnt/hdb1/diskimage.img of=/dev/hda[/code]

to do it on several disks will take time, LOTS of time, and require disks with exactly same architecture.
a faster way would be to just copy the linux partitions content over to the new disks filesystem and install the bootloader from chroot,
how to copy so it will boot and how to chroot is answered in the posts below.
copying so permissions are kept
http://www.knoppix.net/forum/viewtopic.php?t=9614
how to chroot is here
http://www.knoppix.net/forum/viewtopic.php?t=21457
how to copy over a network is answered here
http://www.knoppix.net/forum/viewtopic.php?t=21845

keep asking