[parted-devel] [PATCH 0/2] Stop replacing boot code in MBR when updating msdos table
Brian C. Lane
bcl at redhat.com
Thu Oct 23 00:29:34 BST 2025
On Wed, Oct 22, 2025 at 09:43:36PM +0100, Mike Fleetwood wrote:
> Hi,
>
> A user requested that GParted not replace MBR boot code when updating
> the msdos partition table. Since neither fdisk nor libparted GPT code
> overwrite boot code when they update the MBR then libparted msdos code
> shouldn't either. Writing boot code is the responsibility of boot
> loader installation, not a partitioning tool.
In theory I'm fine with this, and I agree that the bootloader should
handle this. Are we sure that nothing depends on this being written? And
that when a proper bootloader is run it overwrites it without checking
to see that it is used?
This will only effect new disks, so I'm not too worried about data loss
from the change.
Brian
--
Brian C. Lane (PST8PDT) - weldr.io - lorax - parted - pykickstart
More information about the parted-devel
mailing list