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

Replies

Subject Author
Re: [gentoo-user] duplicate HD drives Ivan Viso Altamirano <ivanviso123@×××××.com>