The option --backup force sfdisk to store *all* fragments of the partition table (including MBR partition tables store in the extended partitions) to $HOME/sfdisk-<devname>-<offset>.bak The options -O, -backup-file <path> allows to override the default path, but sfdisk still appends <devname>-<offset>.bak to the <path>. The backup files always contain only raw data from the device, so it's possible to use dd(1) to restore original data on the device. The original sfdisk also supported -O <file>, but semantic was little bit different: - all was based on 512-byte sectors - all sectors was stored to the one file in format <offset>|<sector>|<offset>|... this original concept makes the backup files specific to sfdisk and with dependence on sector size. The new concept is the same we already use for wipefs(8) backup files. Example (disk with GPT): # sfdisk /dev/sda --backup Welcome to sfdisk (util-linux 2.25.202-f4deb-dirty). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Backup files: PMBR (offset 0, size 512): /root/sfdisk-sda-0x00000000.bak GPT Header (offset 512, size 512): /root/sfdisk-sda-0x00000200.bak GPT Entries (offset 1024, size 16384): /root/sfdisk-sda-0x00000400.bak Signed-off-by: Karel Zak <kzak@redhat.com> |
||
---|---|---|
Documentation | ||
bash-completion | ||
config | ||
disk-utils | ||
include | ||
lib | ||
libblkid | ||
libfdisk | ||
libmount | ||
libsmartcols | ||
libuuid | ||
login-utils | ||
m4 | ||
misc-utils | ||
po | ||
schedutils | ||
sys-utils | ||
term-utils | ||
tests | ||
text-utils | ||
tools | ||
.gitignore | ||
.travis-functions.sh | ||
.travis.yml | ||
AUTHORS | ||
COPYING | ||
ChangeLog | ||
Makefile.am | ||
NEWS | ||
README | ||
README.licensing | ||
autogen.sh | ||
configure.ac |
README
util-linux util-linux is a random collection of Linux utilities Note that in years 2006-2010 this project used the name "util-linux-ng". MAILING LIST: E-MAIL: util-linux@vger.kernel.org URL: http://vger.kernel.org/vger-lists.html#util-linux DOWNLOAD: ftp://ftp.kernel.org/pub/linux/utils/util-linux/ SOURCE CODE: Web interface: http://git.kernel.org/cgit/utils/util-linux/util-linux.git https://github.com/karelzak/util-linux Checkout: git clone git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git util-linux NLS (PO TRANSLATIONS): PO files are maintained by: http://translationproject.org/domain/util-linux.html VERSION SCHEMA: Standard releases: <major>.<minor>[.<maint>[.<bugfix>]] major = fatal and deep changes minor = typical release with new features maint = maintenance releases; bug fixes only bugfix = unplanned releases for critical/security bugs Development releases: <major>.<minor>-rc<N>