Re: Fun with SSD and GPT wedges

2019-02-13 Thread Greg Troxel
John Nemeth writes: > } With disklabels, when the label is scanned then the various abcdefgh > } partitions can be used. Ideally, when writing the block with the > } disklabel it would be rescanned. > > What do you mean by "rescanned"? Normally with disklabels > there are no wedges,

Re: Fun with SSD and GPT wedges

2019-02-13 Thread Greg Troxel
John Nemeth writes: > As stated before, gpt(8) is a tool for manipulating on-disk > data structures. This is outside the scope of it. Also, disklabel(8) > lets you do anything you want to a disklabel regardless of whether > the partitons are mounted. Why would you expect gpt(8) to behave

Re: Install kernel and userland without source?

2019-02-13 Thread Greg Troxel
"J. Lewis Muir" writes: >> I have used etcmanage in the past, and indeed it does do everything I >> want! However, I went looking for the website for it and couldn't find >> it. The Makefile HOMEPAGE variable is set to >> >> http://www.ir.bbn.com/~gdt/etcmanage/ >> >> but it's commented

Re: Fun with SSD and GPT wedges

2019-02-13 Thread Michael van Elst
On Wed, Feb 13, 2019 at 08:42:49AM -0800, John Nemeth wrote: > > I recently changed gpt(8) to not run dkctl when it isn't > needed. Ideally one would not be destroying a GPT that contains > active wedges. Active (== in use) wedges cannot be destroy. So destroying the GPT should updated the

Re: Fun with SSD and GPT wedges

2019-02-13 Thread John Nemeth
On Feb 13, 11:56am, Michael van Elst wrote: } g...@lexort.com (Greg Troxel) writes: } } > And when destroying a GPT label, it should } >first remove each partition, and thus remove each wedge. } } Looks like gpt isn't running dkctl after destroying the GPT, } probably neither after creation or

Re: Fun with SSD and GPT wedges

2019-02-13 Thread Robert Nestor
the man page for gpt on NetBSD 8.0_STABLE in the example section shows: Booting from GPT on an BIOS system. This creates a bootable partition that can be manually installed to. Note that sysinst(8) does not yet properly support this setup. xotica# gpt create wd1

Re: Fun with SSD and GPT wedges

2019-02-13 Thread Rhialto
On Tue 12 Feb 2019 at 22:25:34 -0800, John Nemeth wrote: > On Feb 12, 7:03pm, Robert Nestor wrote: > } > } Somewhat related, but the man page on GPT in the example on how > } to set up a BIOS boot indicates that one should newfs dk?, not > } rdk?. A number of people have pointed out to me that I

Re: Fun with SSD and GPT wedges

2019-02-13 Thread Michael van Elst
rnes...@mac.com (Robert Nestor) writes: >Somewhat related, but the man page on GPT in the example on how to set up a >BIOS boot indicates that one should newfs dk?, not rdk?. A number of people >have pointed out to me that I should be running newfs on rdk?, NOT dk?. This >was probably the

Re: Fun with SSD and GPT wedges

2019-02-13 Thread Michael van Elst
g...@lexort.com (Greg Troxel) writes: >I can see how we got here, but the situation seems wrong from a logical >consistency point of view. If gpt(8) is going to create wedges on >adding a new partition, it should delete the wedge corresponding to a >partition that it removes. That's what is