Gentoo Archives: gentoo-user

From: Ivan Viso Altamirano <ivanviso123@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] duplicate HD drives
Date: Fri, 12 Sep 2014 22:19:50
Message-Id: CAJoFwWv-w5DKB9v_qggvcdG76GFxbaj=ZNUUw5f=nkAcjmbyAw@mail.gmail.com
In Reply to: Re: [gentoo-user] duplicate HD drives by Ivan Viso Altamirano
1 El 13/09/2014 00:18, "Ivan Viso Altamirano" <ivanviso123@×××××.com>
2 escribió:
3
4 > You are only cloning the first 512 bytes , remove the count parameter . It
5 > is usefull if you need to copy/restore the mbr .
6 > El 12/09/2014 23:53, "Joseph" <syscon780@×××××.com> escribió:
7 >
8 >> I have two identical HD in a box and want to duplicate sda to sdb
9 >> I want sdb to be bootable just in case something happens to sda so I can
10 >> swap the drives and boot.
11 >>
12 >> Do I boot from USB and run:
13 >> dd if=/dev/sda of=/dev/sdb bs=512 count=1
14 >>
15 >> fdisk -l /dev/sda
16 >>
17 >> Disk /dev/sda: 596.2 GiB, 640135028736 bytes, 1250263728 sectors
18 >> Units: sectors of 1 * 512 = 512 bytes
19 >> Sector size (logical/physical): 512 bytes / 512 bytes
20 >> I/O size (minimum/optimal): 512 bytes / 512 bytes
21 >> Disklabel type: dos
22 >> Disk identifier: 0x000f2548
23 >>
24 >> Device Boot Start End Blocks Id System
25 >> /dev/sda1 * 63 80324 40131 83 Linux
26 >> /dev/sda2 80325 16868249 8393962+ 82 Linux swap / Solaris
27 >> /dev/sda3 16868250 121740569 52436160 83 Linux
28 >> /dev/sda4 121740570 1250258624 564259027+ 83 Linux
29 >>
30 >> fdisk -l /dev/sdb
31 >>
32 >> Disk /dev/sdb: 596.2 GiB, 640133946880 bytes, 1250261615 sectors
33 >> Units: sectors of 1 * 512 = 512 bytes
34 >> Sector size (logical/physical): 512 bytes / 512 bytes
35 >> I/O size (minimum/optimal): 512 bytes / 512 bytes
36 >>
37 >>
38 >> --
39 >> Joseph
40 >>
41 >>