Gentoo Archives: gentoo-user

From: Joseph <syscon780@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] duplicate HD drives
Date: Fri, 12 Sep 2014 21:53:16
Message-Id: 20140912215319.GA13628@syscon7
1 I have two identical HD in a box and want to duplicate sda to sdb
2 I want sdb to be bootable just in case something happens to sda so I can swap the drives and boot.
3
4 Do I boot from USB and run:
5 dd if=/dev/sda of=/dev/sdb bs=512 count=1
6
7 fdisk -l /dev/sda
8
9 Disk /dev/sda: 596.2 GiB, 640135028736 bytes, 1250263728 sectors
10 Units: sectors of 1 * 512 = 512 bytes
11 Sector size (logical/physical): 512 bytes / 512 bytes
12 I/O size (minimum/optimal): 512 bytes / 512 bytes
13 Disklabel type: dos
14 Disk identifier: 0x000f2548
15
16 Device Boot Start End Blocks Id System
17 /dev/sda1 * 63 80324 40131 83 Linux
18 /dev/sda2 80325 16868249 8393962+ 82 Linux swap / Solaris
19 /dev/sda3 16868250 121740569 52436160 83 Linux
20 /dev/sda4 121740570 1250258624 564259027+ 83 Linux
21
22 fdisk -l /dev/sdb
23
24 Disk /dev/sdb: 596.2 GiB, 640133946880 bytes, 1250261615 sectors
25 Units: sectors of 1 * 512 = 512 bytes
26 Sector size (logical/physical): 512 bytes / 512 bytes
27 I/O size (minimum/optimal): 512 bytes / 512 bytes
28
29
30 --
31 Joseph

Replies

Subject Author
Re: [gentoo-user] duplicate HD drives Ivan Viso Altamirano <ivanviso123@×××××.com>
Re: [gentoo-user] duplicate HD drives Neil Bothwick <neil@××××××××××.uk>
Re: [gentoo-user] duplicate HD drives Alexander Puchmayr <alexander.puchmayr@×××××××.at>