Skip to content

Latest commit

 

History

History
6 lines (4 loc) · 235 Bytes

Cloning Partition Maps with sfdisk.md

File metadata and controls

6 lines (4 loc) · 235 Bytes

This is so elegant, it makes me want to hug a penguin.

sfdisk -d /dev/hda | sfdisk /dev/hdb

This will clone the partition map from /dev/hda to /dev/hdb. I usually use fdisk (or parted) to clear all partitions first.