On Tue, Mar 21, 2000 at 11:48:10PM +0200, Richard Fiedler wrote:
> I got a "BookPC" with an 810 motherboard now working. Before I screw it up I
> thought I would back it up on a second 20G drive. The second drive is brand
> new and has not be partitioned.
>
> Will
>
> dd if=/dev/hda bs=1024 of=/dev/hdb
>
> do the job?
Yes, but not well, as this copies (apart from the data) the partition
table of /dev/hda onto /dev/hdb's. Assuming they are not quite the same
model, you will waste space. If this is okay, fine; you don't have to
read any further.
Better partition hdb to suit your needs first (hint: fdisk -l /dev/hda),
then copy particular partitions. You shouldn't use dd for that, though
(for the same reason as above). You can use cp -a on each mounted
filesystem (I used to advocate tar|tar, but on new linux systems cp
is even better[1]), and manually make the swap partition.
[All this should be easily sciptable, and sounds like a good tool to
have around. Hmm, I'll see if I get around to moosing it up.]
And BTW, that bs=1024 is superfluous. Let the disks buffer for you.
Good luck <g>
[1] on more traditional systems, it still pays to use tar|tar though!
--
believing is seeing
[EMAIL PROTECTED]
http://www.forum2.org/gaal/
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]