Clone partition table

From Wiki
Revision as of 19:55, 26 August 2020 by Admin (Talk | contribs) (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...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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