]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fdisk: Add support for fixing MBR partitions CHS values
authorPali Rohár <pali.rohar@gmail.com>
Fri, 30 Jul 2021 09:19:20 +0000 (11:19 +0200)
committerPali Rohár <pali.rohar@gmail.com>
Fri, 30 Jul 2021 09:58:27 +0000 (11:58 +0200)
commit973c3fc7531ded5469de58aa7ff56fe31ea439b1
treed776985e4666e257392df41f2c49eeba7ddb51c4
parentdac364addbfb32b099658c89fcc5e40c834ccf79
fdisk: Add support for fixing MBR partitions CHS values

Add a new extended option 'F' to fdisk which recalculates and fixes CHS
values for each partition in MBR table according to current fdisk settings
for number of heads and sectors per track.

This allows in interactive mode to repair existing partitions to be
compatible with CHS addressing after changing extended option 'h' (number
of heads) or 's' (sectors per track) as these options do not modify content
of existing partitions.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
disk-utils/fdisk-menu.c