No subject
Tue Dec 2 02:44:59 GMT 2003
disk info ...
If I am right the partition info is after 416b and upto & including 512b
My idea is to partition and format the new disk then
save the partition info:
dd if=/dev/hda skip=416 bs=1 count=96 of=/floppy/partinfo.img
do an image of the 10gig partition on larger disk in full
dd if=/dev/hda bs=1024 count=10,485,760 of=/dev/hdb2/image-hda.img
ie I think ten gig should be:
1,048,576 ie 1 megabyte)*1024 to get 1 gig * 10 [so div by 1024 for this
count ....but maybe exact amounts don't matter.]
restore in full
dd if=/dev/hdb2/image-hda.img of=/dev/hda
(don't need any counts do we?)
then
dd if=/floppy/partinfo.img of=/dev/hda skip=416 bs=1 count=96
to put on the partition info we made when formatting the smaller disk
- - -
*2nd idea:
dd if=/dev/hda1 of=/dev/hdb2/image-hda1.img ... then I run out of
steam and think I might need one of 'their recovery cds' to make disk
boot.
Am I on track with any of this? Guess there's probably a far better way.
Thanks for your help (also info for my kernel experiments)
Daniel.
More information about the linux
mailing list