kern/157819: [geom] gpart(8): drop serial from MBR
Andrey V. Elsukov
ae at FreeBSD.org
Wed Jun 15 09:30:11 UTC 2011
The following reply was made to PR kern/157819; it has been noted by GNATS.
From: "Andrey V. Elsukov" <ae at FreeBSD.org>
To: bug-followup at FreeBSD.org, eirnym at gmail.com,
Marcel Moolenaar <marcel at FreeBSD.org>
Cc:
Subject: Re: kern/157819: [geom] gpart(8): drop serial from MBR
Date: Wed, 15 Jun 2011 13:21:59 +0400
Hi,
Yes, you are right. `gpart bootcode` does not keep disk signature.
It just overwrites the whole sector and fills partition table area.
I see three ways how this can be fixed:
1. Do not change anything :)
2. Always keep disk signature for each boot code.
3. Introduce new option for `gpart bootcode` command, i.e:
# gpart bootcode -b /boot/boot0 -o some,boot,options ada0
where 'some,boot,options' string, that contains separated by comma
options which are handled with a scheme specific code.
--
WBR, Andrey V. Elsukov
More information about the freebsd-geom
mailing list