# Re: Draft Mirrored Linux Mini How-to - sfdisk suggestion

- From: Goswin von Brederlow \<hidden\>
- Date: 2009-08-08 01:13:23 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2009/08/6606969
- Thread: https://ratatoskr.run/linux-raid/2009/08/6606969/t.md

```text
Maurice Hilarius [ref] writes:

> Harold Pritchett wrote:
>> Following this note is a draft of a "Mirrored Linux Mini How-to"
>> document.
>> ..
>> To ensure that the partitions are correct, and in the correct order,
>> boot from
>> the install CD/DVD and run the rescue system.  Use fdisk from this system
>> to partition the two drives.
>> ..
>> In the event of a disk failure, follow the below procedure.
>> ..
>> 10. Bring up the system and use fdisk to partition the new drive EXACTLY
>>     the same as the existing drive.
>
> I suggest that the steps involving partitioning multiple drives are
> prone to error.
>
> I offer that the use sfdisk is more accurate, and user friendly.
>
> By using sfdisk with the -d option we can get a dump of the current
> partition table in a regular file,
> and if needed we can restore it from that file.
>
> Example:
>
> |	sfdisk -d /dev/sda | sfdisk /dev/sdb
>
> This is a very simple way to duplicate the partition table from one disk to another.
>
> |

ACK. I do that too.

Now we only need the same thing directly in the installer.

MfG
        Goswin
```
