1 |
On Freitag, 12. September 2014, 15:53:19 Joseph wrote: |
2 |
> I have two identical HD in a box and want to duplicate sda to sdb |
3 |
|
4 |
OK, do you want to copy just the boot sector or clone the whole disk with all |
5 |
data on it? |
6 |
|
7 |
> I want sdb to be bootable just in case something happens to sda so I can |
8 |
> swap the drives and boot. |
9 |
> |
10 |
> Do I boot from USB and run: |
11 |
> dd if=/dev/sda of=/dev/sdb bs=512 count=1 |
12 |
> |
13 |
If you want to copy *all* data, why stop after one block? Omit the "count=1" |
14 |
and clone the whole disk. BTW: It might go a little faster of you increase the |
15 |
block size, lets say bs=4096. |
16 |
|
17 |
> fdisk -l /dev/sda |
18 |
> |
19 |
> Disk /dev/sda: 596.2 GiB, 640135028736 bytes, 1250263728 sectors |
20 |
> Units: sectors of 1 * 512 = 512 bytes |
21 |
> Sector size (logical/physical): 512 bytes / 512 bytes |
22 |
> I/O size (minimum/optimal): 512 bytes / 512 bytes |
23 |
> Disklabel type: dos |
24 |
> Disk identifier: 0x000f2548 |
25 |
> |
26 |
> Device Boot Start End Blocks Id System |
27 |
> /dev/sda1 * 63 80324 40131 83 Linux |
28 |
> /dev/sda2 80325 16868249 8393962+ 82 Linux swap / Solaris |
29 |
> /dev/sda3 16868250 121740569 52436160 83 Linux |
30 |
> /dev/sda4 121740570 1250258624 564259027+ 83 Linux |
31 |
> |
32 |
> fdisk -l /dev/sdb |
33 |
> |
34 |
> Disk /dev/sdb: 596.2 GiB, 640133946880 bytes, 1250261615 sectors |
35 |
> Units: sectors of 1 * 512 = 512 bytes |
36 |
> Sector size (logical/physical): 512 bytes / 512 bytes |
37 |
> I/O size (minimum/optimal): 512 bytes / 512 bytes |