[H-GEN] Creating disk image
John Boggon
John.B at uq.net.au
Mon Aug 9 23:20:55 EDT 1999
( Humbug *General* list - semi-serious discussions about Humbug and
Unix related topics. Consider also the 'Chat' list (reply-to) if
your posting is not on-topic for 'General'. Including this text in
your reply shows that you have not read it. )
Ben Carlyle wrote:
> dd if=/dev/hda1 of=/dev/hda2
So, in this case you are using dd to copy from one partition to another
and, as already stated, can be used to go from one device to another.
If linux sees the devices in /dev as files then,
dd if=/cdrom/image.bin of=/dev/hda
should work, right ?
Or would it be better to bypass ISO-9660 altogether like this
dd if=/dev/hda of=/home/john/tmp/image.bin (hda = drive to be imaged)
cdrecord -v -o /home/john/tmp/image.bin speed=4 dev=6,0
to create the image, then
dd if=/dev/cdrom of=/dev/hda
to lay the image back down again ?
I've noticed that Debian uses this method to create it's installation
disks but passes a block size to dd.
Do I need to specify a blocksize ?
John.
--
This is list (humbug) general handled by majordomo at lists.humbug.org.au .
Postings only from subscribed addresses of lists general or general-post.
More information about the General
mailing list