El 13/09/2014 00:18, "Ivan Viso Altamirano" <ivanviso...@gmail.com>
escribió:

> You are only cloning the first 512 bytes , remove the count parameter . It
> is usefull if you need to copy/restore the mbr .
> El 12/09/2014 23:53, "Joseph" <syscon...@gmail.com> escribió:
>
>> I have two identical HD in a box and want to duplicate sda to sdb
>> I want sdb to be bootable just in case something happens to sda so I can
>> swap the drives and boot.
>>
>> Do I boot from USB and run:
>> dd if=/dev/sda of=/dev/sdb bs=512 count=1
>>
>> fdisk -l /dev/sda
>>
>> Disk /dev/sda: 596.2 GiB, 640135028736 bytes, 1250263728 sectors
>> Units: sectors of 1 * 512 = 512 bytes
>> Sector size (logical/physical): 512 bytes / 512 bytes
>> I/O size (minimum/optimal): 512 bytes / 512 bytes
>> Disklabel type: dos
>> Disk identifier: 0x000f2548
>>
>> Device    Boot     Start        End    Blocks  Id System
>> /dev/sda1 *           63      80324     40131  83 Linux
>> /dev/sda2          80325   16868249   8393962+ 82 Linux swap / Solaris
>> /dev/sda3       16868250  121740569  52436160  83 Linux
>> /dev/sda4      121740570 1250258624 564259027+ 83 Linux
>>
>> fdisk -l /dev/sdb
>>
>> Disk /dev/sdb: 596.2 GiB, 640133946880 bytes, 1250261615 sectors
>> Units: sectors of 1 * 512 = 512 bytes
>> Sector size (logical/physical): 512 bytes / 512 bytes
>> I/O size (minimum/optimal): 512 bytes / 512 bytes
>>
>>
>> --
>> Joseph
>>
>>

Reply via email to