Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: disklabel change?



In fact, the difference is between "-t" and "-rt":

$ disklabel -t sd0
perc|Automatically generated label:\
        :dt=SCSI:se#512:ns#32:nt#64:sc#2048:nc#2143360:\
        :su#4294967295:\
        :pa#20971520:oa#264192:ta=4.2BSD:ba#0:fa#0:\
        :pb#33554432:ob#21235712:tb=swap:\
        :pc#4294703103:oc#264192:\
        :pd#4294703103:od#0:\
        :pe#4240177151:oe#54790144:te=4.2BSD:be#0:fe#0:
$ disklabel -rt sd0
perc|Automatically generated label:\
        :dt=SCSI:se#512:ns#32:nt#64:sc#2048:nc#2143360:\
        :su#4294967295:\
        :pa#20971520:oa#264192:ta=4.2BSD:ba#0:fa#0:\
        :pb#33554432:ob#21235712:tb=swap:\
        :pc#4294703103:oc#0:\
        :pd#4294967295:od#264192:\
        :pe#4240177151:oe#54790144:te=4.2BSD:be#0:fe#0:

Given

$ sysctl kern.rawpartition
kern.rawpartition = 3

I deem "-t" output to be correct (and matches what I had in /etc/diskpart)


Cheers,

Patrick


On Sun, Apr 21, 2024 at 07:02:46PM +0100, Patrick Welche wrote:
> With a kernel & userland of 14 April 2024, on amd64, I just did:
> 
> # disklabel -rt sd0
> perc|Automatically generated label:\
>         :dt=SCSI:se#512:ns#32:nt#64:sc#2048:nc#2143360:\
>         :su#4294967295:\
>         :pa#20971520:oa#264192:ta=4.2BSD:ba#0:fa#0:\
>         :pb#33554432:ob#21235712:tb=swap:\
>         :pc#4294703103:oc#0:\
>         :pd#4294967295:od#264192:\
>         :pe#4240177151:oe#54790144:te=4.2BSD:be#0:fe#0:
> 
> and was surprised to see that d no longer was the whole disk. My
> recollection was that peecees were odd and i386/amd64 used d, whereas
> everyone else used c. Has this changed for consistency?
> 
> That computer's /etc/disktab contains
> 
> perc|PERC H700:\
>         :dt=SCSI:se#512:ns#32:nt#64:sc#2048:nc#2143360:\
>         :su#4294967295:\
>         :pa#20971520:oa#264192:ta=4.2BSD:ba#0:fa#0:\
>         :pb#33554432:ob#21235712:tb=swap:\
>         :pc#4294703103:od#264192:\
>         :pd#4294967295:od#0:\
>         :pe#4240177151:oe#54790144:te=4.2BSD:be#0:fe#0:
> 
> which shows it was the other way around on 29 April 2021 when the
> disklabel was written.
> 
> 
> Cheers,
> 
> Patrick


Home | Main Index | Thread Index | Old Index