Difference between revisions of "Clone partition table"

From Wiki
Jump to: navigation, search
(Created page with "sfdisk can be used to dump and restore partition tables. Save partition table to a text file: sfdisk -d /dev/sda > partitions.txt Create partitions based on text file: s...")
 
(No difference)

Latest revision as of 19:55, 26 August 2020

sfdisk can be used to dump and restore partition tables.

Save partition table to a text file:

sfdisk -d /dev/sda > partitions.txt

Create partitions based on text file:

sfdisk /dev/sdb < partitions.txt