]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
sfdisk: add hint about duplicate UUIDs when use dump
authorKarel Zak <kzak@redhat.com>
Wed, 21 Jun 2023 08:57:37 +0000 (10:57 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 21 Jun 2023 08:57:37 +0000 (10:57 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/sfdisk.8.adoc

index 2b220acc05207c1c3bff596fff040befde18c245..f586d618b092cc20fa2f5af8b7b5794a2fa47699 100644 (file)
@@ -366,6 +366,8 @@ ____
 *sfdisk /dev/sda < sda.dump*
 ____
 
+Note that sfdisk completely restores partition types and partition UUIDs. This could potentially become problematic if you duplicate the same layout to different disks, as it may result in duplicate UUIDs within your system.
+
 === Full binary backup
 
 If you want to do a full binary backup of all sectors where the partition table is stored, then use the *--backup-pt-sectors* command. It writes the sectors to _~/sfdisk-<device>-<offset>.bak_ files. The default name of the backup file can be changed with the *--backup-file* option. The backup files contain only raw data from the _device_. For example: