Hacker News new | ask | show | jobs
by foxfluff 1591 days ago
What distinction are you trying to make?

     The disklabel utility can be used to install, examine, or modify the
     label on a disk drive or pack.  The disk label contains information about
     disk characteristics (size, type, etc.) and the partition layout, stored
     on the disk itself.

     disklabel supports 15 configurable partitions, `a' through `p', excluding
     `c'.  The `c' partition describes the entire physical disk, is
     automatically created by the kernel, and cannot be modified or deleted by
     disklabel.  By convention, the `a' partition of the boot disk is the root
     partition, and the `b' partition of the boot disk is the swap partition,
     but all other letters can be used in any order for any other partitions
     as desired.
The word "slice" does not come up in disklabel's man page at all.

http://man.openbsd.org/disklabel

2 comments

How about "The other BSDs use slices".

FreeBSD [1] and NetBSD[2] can use GUID partition tables as well as traditional BSD disk labels.

[1] https://www.freebsd.org/cgi/man.cgi?query=gdisk&apropos=0&se... [2] https://man.netbsd.org/gpt.8

At least in case of FreeBSD, it’s more “uses GPT by default” than “can use”.
Your openbsd sd0e partition wont show up under fdisk. sd0c will as it can be maped to either the openbsd A6 partition under MBR/GPT or a disklabel using the whole disk.
As far as I know the c partition is always the whole disk, regardless of what you have (or don't have) in MBR or GPT. If you want to image the whole disk with dd, you'll reach for rsd0c, always.

But I still don't understand what distinction you're trying to make. Yes, disklabel partitions don't show up in MRB, just as GPT partitions won't. No surprise that the three different partitioning methods aren't exactly aware of each other.