[K12OSN] OT: Using tar on win98 clients

Daniel Hogan CableMonkey42 at gmail.com
Tue Oct 26 21:04:33 UTC 2004

This is what I normally do in Knoppix.  I'm assuming that the harddrive is hda.

On the harddrive you wish to copy from:

1. Using QTParted, shrink the size of the partition(s) so that it will
fit on the smaller harddrive.  I usually go for anything smaller than
the size of the smallest harddrive.
2. dd if=/dev/hda of=myimage.mbr bs=512 count=1
3. sfdisk -d /dev/hda > myimage.sfdisk
4. Use partimage to copy the partition(s) from the harddrive.

On the harddrive wish to copy to (I'm assuming hda on a different computer):

1. dd if=myimage.mbr of=/dev/hda bs=512 count=1
2. sfdisk /dev/hda < myimage.sfdisk
3. Use partimage to write the image to the harddrive.
4. Use QTParted to resize the partition to whatever size you wish.
5. Reboot.

I usually mount a samba share and store the myimage.mbr,
myimage.sfdisk, and the partition image files on it so that I can
easily access it from the other computers.

Hope this helps.

On Tue, 26 Oct 2004 15:51:49 -0400, Henry Burroughs
<hburroughs at hhprep.org> wrote:
>  I know this is a bit off topic, but I'm doing the ever necessary task of
> ghosting.  I would be using partimage (and I was), except some of the hard
> disks are different sizes (and partimage doesn't support shrinking).  I'm
> using a knoppix cd  (3.4 i think).
>  I'm trying tar (trying to keep it simple), and when I restore the image
> onto a fresh drive, it still won't boot properly (I'm even using msdos fdisk
> /mbr to reset the MBR).  So the MBR is in place, it just doesn't want to
> load from there.  Any suggestions or hints?  THanks.
>  Basically, my requirements are a imaging program (or tar) that handles
> restoring to smaller drives (of course, big enough for the actual data).
>  I've spent waaaay too much time trying to get this monster to work.
>  Henry 
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>

More information about the K12OSN mailing list