sfdisk
Verified for current stable LTS
Sfdisk Command: Backup Partition Layout To File
Use for backup partition layout to file with Sfdisk. Exact CLI syntax to backup partition layout to file using Sfdisk.
When to use this: Use for backup partition layout to file with Sfdisk.
Command Syntax
sudo sfdisk -d </dev/sdX> > <path/to/file.dump> sudo sfdisk -d </dev/sdX> > <path/to/file.dump> Live Command Builder
Final Command
sudo sfdisk -d </dev/sdX> > <path/to/file.dump> Command Breakdown
-d- Command Option
- Tool-specific option used by this command invocation.
FAQ
Purpose: Exact syntax to backup partition layout to file using Sfdisk.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Sfdisk Command: Delete Partition
sudo sfdisk --delete </dev/sdX> <partition_number> Sfdisk Command: Display Help sfdisk -h Sfdisk Command: Restore Partition Layout From File sudo sfdisk < <path/to/file.dump> </dev/sdX> Sfdisk Command: Set Partition Type sudo sfdisk --part-type </dev/sdX> <partition_number> <swap> Tar Command: Create A Gzipped Archive From A Directory Using Relative Paths tar czf <path/to/target.tar.gz> -C <path/to/directory> .