From: Joseph <syscon780@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] duplicate HD drives
Date: Fri, 12 Sep 2014 15:53:19 -0600 [thread overview]
Message-ID: <20140912215319.GA13628@syscon7> (raw)
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
next reply other threads:[~2014-09-12 21:53 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-12 21:53 Joseph [this message]
2014-09-12 22:05 ` [gentoo-user] duplicate HD drives Alexander Puchmayr
2014-09-12 22:18 ` Ivan Viso Altamirano
2014-09-12 22:19 ` Ivan Viso Altamirano
2014-09-12 22:52 ` Neil Bothwick
2014-09-13 3:17 ` Joseph
2014-09-13 6:53 ` J. Roeleveld
2014-09-13 7:07 ` Kerin Millar
2014-09-13 16:31 ` Joseph
2014-09-13 16:45 ` Alan McKinnon
2014-09-13 18:01 ` Kerin Millar
2014-09-13 17:41 ` [gentoo-user] " James
2014-09-13 17:38 ` [gentoo-user] " Neil Bothwick
2014-09-13 18:56 ` Alan McKinnon
2014-09-13 19:01 ` Neil Bothwick
2014-09-13 19:12 ` Neil Bothwick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140912215319.GA13628@syscon7 \
--to=syscon780@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox