Gentoo Archives: gentoo-user

From: Andrea Conti <alyf@××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Recovering RAID1 after disk failure
Date: Fri, 17 Jun 2011 07:06:40
Message-Id: 4DFAF3C3.4060505@alyf.net
In Reply to: [gentoo-user] Recovering RAID1 after disk failure by Mike Diehl
1 Hello,
2
3 > However, the good drive started on sector 63 and the new drive want's to start
4 > on sector 2048. Fdisk won't let me create the partition table on the new
5 > drive as it is on the old drive.
6
7 Recent versions of fdisk require partitions to begin on a 1MB boundary;
8 this among other things guarantees that there are no alignment issues
9 with 4k-sector drives.
10
11 If you really need to use fdisk for this task you can start it in
12 compatibility mode (i.e. "fdisk -c=dos").
13
14 The recommended way of preparing the new drive, though, is to simply use
15 sfdisk to copy the partition table from the existing one:
16
17 sfdisk -d <old drive> | sfdisk -L <new drive>
18
19 andrea

Replies

Subject Author
Re: [gentoo-user] Recovering RAID1 after disk failure Mike Diehl <mdiehl@××××××××.com>