The Unix Heritage Society mailing list
 help / color / mirror / Atom feed
From: Grant Taylor via TUHS <tuhs@tuhs.org>
To: tuhs@tuhs.org
Subject: [TUHS] Re: Question about BSD disklabel history
Date: Sun, 31 Dec 2023 18:26:12 -0600	[thread overview]
Message-ID: <b1013721-d879-4464-8b06-e328eb39ddb5@tnetconsulting.net> (raw)
In-Reply-To: <202312311738.3BVHctA1018336@freefriends.org>

[-- Attachment #1: Type: text/plain, Size: 3545 bytes --]

On 12/31/23 11:38, arnold@skeeve.com wrote:
> The different overlapping partitions predates disk labels.

Okay.  That in and of itself doesn't surprise me much that a convention 
of overlapping partitions was carried forward from the driver based 
partitioning into label based partitioning.

> Up to and including 4.3 BSD, to change the size of partitions on a 
> particular disk, you had to recompile the kernel.

So I've learned over the last couple of years as I read more about Unix 
history.

> They were that way so that if you had multiple disks, you could use 
> one for root + swap + some thing small and use another whole disk 
> for a single filesystem.

I'm not understanding how /overlapping/ partitions helps make use of 
portions of disks.

Maybe I should back up and ask for clarification.  What /overlapping/ 
partitions means in this context?

My naive assumption was that partition -- I use that term loosely -- "c" 
overlaps / contains / all other partitions on the disk; "a", "b", and 
maybe "d".

I'm eliding the "c" MBR partition vs "d" entire drive" distinction for 
the moment.

I see some value in the "c" partition being the entire disk as used by 
BSD so that it's possible to point backup / restore / copy utilities at 
the entire disk.

But I don't understand value in having partitions overlap / contain each 
other's blocks, save for backup via "c".

I do see some value in extending the "c" is the entire MBR partition 
methodology to "d" is the entire disk containing multiple MBR 
partitions.  Again, the value seems to be in backup and recovery.

But I still simply do not understand why I would ever want partition "e" 
to be blocks 100-199, partition "f" to be blocks 195-299, and partition 
"g" to be blocks 295-399.  What value is there in having partitions e, 
f, and g overlap each other?

I get dd if=/dev/<something>0c of=/dev/rmt.  Or even /dev/<something>0d.

I fail to understand why I'd ever want other partitions to overlap.

> It was also helpful, if you had the drives, to nightly dd your real 
> root to the "a" partition on another, identical drive, so that you 
> could boot the backup root in an emergency.

Sure.  But I don't see what that has to do with overlapping partitions.

I'd naively think that I could do something like the following:

    dd if=/dev/<something>0a of=/dev/<something>1a

And get the same effect.

> I am guessing that the original conventions date back to V7 or 32V, 
> but one would have to go looking at code to be sure.

"a" for root makes some intuitive sense as the root file system is 
required to do anything else.

Then when you want swap, the next partition is "b".

Wanting another partition that is the entire disk (as seen by BSD) makes 
some logical sense to me too, so "c".

Were subsequent partitions sort of used as needed and had less 
consistency?  Especially when "d" because the entire disk containing 
multiple MBR partitions when "c" was restricted to the MBR partition the 
label was in?

Aside:

Would that mean that the following "d" partitions would be the same 
thing, as in the entire /dev/ad0 disk?

/dev/ad0s0d
/dev/ad0s1d

Wherein I'm borrowing the FreeBSD slice nomenclature -- as I understand 
it -- to identify the first (zero) and second (one) MBR partition on 
/dev/ad0

History and how we got to where we are today can be both very confusing 
and even more enlightening once you understand it.  What's more is that 
once you understand it, things start making more intuitive sense when 
you look at them.



-- 
Grant. . . .

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4033 bytes --]

  parent reply	other threads:[~2024-01-01  0:26 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-31 17:30 [TUHS] " Grant Taylor via TUHS
2023-12-31 17:38 ` [TUHS] " arnold
2023-12-31 20:07   ` Warner Losh
2024-01-01  0:13     ` Bakul Shah
2023-12-31 20:27   ` Phil Budne
2023-12-31 21:02     ` Warner Losh
2024-01-01  0:26   ` Grant Taylor via TUHS [this message]
2024-01-01  2:22     ` Warner Losh
2024-01-01  3:24       ` Grant Taylor via TUHS
2023-12-31 21:31 ` Clem Cole
2023-12-31 22:07   ` Warner Losh
2024-01-01 16:00     ` Clem Cole
2024-01-02 18:49       ` Warner Losh
2024-01-02 19:30         ` Chet Ramey
2024-01-02 20:07           ` Clem Cole
2024-01-02 19:50         ` Dan Cross
2024-01-02 19:55           ` Jim Capp
2024-01-02 20:11             ` Dan Cross
2024-01-02 20:30           ` Dan Cross
2024-01-02 20:50             ` Clem Cole
2024-01-02 21:04               ` Dan Cross
2023-12-31 22:46   ` G. Branden Robinson
2023-12-31 23:06     ` Larry McVoy
2023-12-31 23:37       ` Al Kossow
2023-12-31 23:41       ` Alec Muffett
2024-01-02 20:48       ` Dan Cross
2024-01-02 21:17         ` John Cowan
2024-01-03  3:33         ` Theodore Ts'o
2024-01-03  3:57           ` Warner Losh
2024-01-03  4:03             ` Warner Losh
2024-01-03  4:30             ` Theodore Ts'o
2024-01-03  5:10               ` Warner Losh
2024-01-03 15:56                 ` Dan Cross
2024-01-03 16:37                   ` Theodore Ts'o
2024-01-03 16:41                     ` Dan Cross
2024-01-04  8:42                     ` arnold
2024-01-04 18:26                       ` Kevin Bowling
2024-01-03 14:39           ` Dan Cross
2023-12-31 23:08     ` Phil Budne
2023-12-31 23:37       ` G. Branden Robinson
2023-12-31 23:59         ` Warner Losh
2023-12-31 23:50     ` G. Branden Robinson
2024-01-01  0:09       ` Al Kossow
2023-12-31 21:55 Norman Wilson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b1013721-d879-4464-8b06-e328eb39ddb5@tnetconsulting.net \
    --to=tuhs@tuhs.org \
    --cc=gtaylor@tnetconsulting.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).