[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sheflug] hdd cloning



On 04-Jul-06 Gary Stimson wrote:
> Alex Hudson wrote:
>>>   dd if=/dev/hda of=/dev/hdb
> 
> I notice you've put /dev/hda rather than /dev/hda1 etc. Does this mean
> the dd command above will copy the entire disk sector for sector,
> including bootable flags on partitions and even the Master Boot Record?
> I.e. so it can be used to make one bootable hard disk as a copy of
> another?

That's precisely what I meant! E.g., one way of getting the
MBR off a hard drive is

  dd if=/dev/hda of=~/myMBR bs=512 count=1

which will read the first 512 bytes off the hard drive itself,
into the file myMBR in you home directory.

Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding [at] nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 04-Jul-06                                       Time: 12:53:23
------------------------------ XFMail ------------------------------

___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.