Re: Keeping NetBSD disklabel up to date

2023-01-30 Thread Wolfgang Solfrank
Or you can run mbrlabel (without -w) and replace the previous entries accordingly. No, without -w, mbrlabel will just print out the modified disklabel, but will neither change the in-core label nor the one on disk. Indeed. you print the modified label and you then modify the entries (with

Re: Keeping NetBSD disklabel up to date

2023-01-30 Thread Michael van Elst
wolfg...@solfrank.net (Wolfgang Solfrank) writes: >> Or you can run mbrlabel (without -w) and replace the previous entries >> accordingly. >No, without -w, mbrlabel will just print out the modified disklabel, >but will neither change the in-core label nor the one on disk. Indeed. you print the

Re: Keeping NetBSD disklabel up to date

2023-01-30 Thread Wolfgang Solfrank
Hi, Michael van Elst schrieb: bea...@sdf.org writes: So it sounds like mbrlabel by itself would not have been sufficient for avoiding this scenario; it's output still needs to be applied via the disklabel tool; is that correct? Yes. No, this is not fully correct. See below. I'm sort of

Re: Keeping NetBSD disklabel up to date

2023-01-27 Thread Michael van Elst
bea...@sdf.org writes: >So it sounds like mbrlabel by itself would not have been sufficient for >avoiding this scenario; it's output still needs to be applied via the >disklabel tool; is that correct? Yes. > I'm sort of surprised as the mbrlabel(8) >manpage says > "mbrlabel is used to update

Re: Keeping NetBSD disklabel up to date

2023-01-27 Thread beaker
mlel...@serpens.de (Michael van Elst) wrote: > bea...@sdf.org (beaker) writes: > > >Is it safe and sufficient to run 'mbrlabel -fw ' on NetBSD > >whenever there has been partition resizing (usually via Gpartd) > >such that the disklabel no longer reflects the current partitioning > >state? > >

Re: Keeping NetBSD disklabel up to date

2023-01-27 Thread Robert Elz
Date:Thu, 26 Jan 2023 15:32:59 -0700 From:beaker Message-ID: <14c843c8-9069-d45c-e103-fd1502c67...@lavabit.com> | I don't believe GPT is supported on the system in question. If you're referring to old OS installations, you might be right, without knowing the

Keeping NetBSD disklabel up to date

2023-01-26 Thread beaker
Is it safe and sufficient to run 'mbrlabel -fw ' on NetBSD whenever there has been partition resizing (usually via Gpartd) such that the disklabel no loner relects the current partitioning state? System in question is an old 32bit i386 with MBR partition scheme on sata disc hosting several

Re: Keeping NetBSD disklabel up to date

2023-01-26 Thread Michael van Elst
bea...@sdf.org (beaker) writes: >Is it safe and sufficient to run 'mbrlabel -fw ' on NetBSD >whenever there has been partition resizing (usually via Gpartd) >such that the disklabel no longer reflects the current partitioning >state? mbrlabel creates disklabel entries for MBR partition entries,

Keeping NetBSD disklabel up to date

2023-01-26 Thread beaker
Is it safe and sufficient to run 'mbrlabel -fw ' on NetBSD whenever there has been partition resizing (usually via Gpartd) such that the disklabel no longer reflects the current partitioning state? System in question is an old 32bit i386 with an MBR partition scheme on a SATA disc hosting several