Hi, Mike I've re-arranged your post a bit, in order to make my answer a bit more clear On Thu, 19 Nov 2026 01:09:49 -0400, Mike Spencer wrote:
> My son and grandson got me a good used computer and installed 64bit > Slackware 15, more or less cook-booking by mostly following the > default prompts of the install scripts. It boots and runs as > expected. > > I'm about to re-do the installation because it appears easier than > undoing numerous things piecemeal. But I'm stumped by the HD > partitions they created. I don't know the history of the machine -- > what was on the HD previously. > Details are appended below.
[hd details moved from end of post to here]
> --- Begin HD partition details --- > > lsblk says: > ------------ > > sda 1000204886016 931.5 G > |-sda1 991757860064 929.6 G > |-sda2 1024 1 K > |-sda5 8444182528 7.9 G > > cfdisk says: > ------------ > > /dev/sda 1000204886016 931 GiB 1953525168 sect [512 b/sect] > > Start End Sectors Size ID Type > ----- --- ------- ---- -- ---- > > /dev/sda1 2048 1937029119 1937027072 923.6 G 83 Linux > /dev/sda2 1937031166 1953523711 16492546 7.9 G 5 Extended > `-/dev/sda5 1937031168 1953523711 16492544 7.9 G 82 Linux Swap > > ^^---- is 0x2514 0x2500 suggesting a tree-like relation to the above line. > > --- End HD partition details ---
> > Mainly, > > + I don't know what a partition of ID=5, Type=extended is, and
The "Extended" partition is, in effect, a directory of additional partitions. It appears that your HD is partitioned in the "DOS MBR" format. This format originally supported only 4 partitions, as the MBR partition table was restricted to that size. However, bright people found a way to add more partitions by a) marking one of those 4 base partitions as an "extended" partition (partition type 0x05), and then b) storing /another/ partition table at the start of that "extended" partition. This second partition table breaks up the space reserved in this "extended" partition into a table of contents (the 2nd partition table), and a number of additional partitions. Graphically, your partition layout might look like |-----------------------------------------|------------| |partition 1: /dev/sda | partition 2| | |---+--------| | |toc|p5 swap | |-----------------------------------------|---+--------| Often, the layout is a bit more complex: |--------------|--------------|--------------|---------------| | filesystem 1 | filesystem 2 | filesystem 3 | --extended-- | | | | |---+---+---+---+ | | | |toc|fs4|fs5|...| |--------------|--------------|--------------|---+---+---+---+ AFAIK, You can have only one of these "extended" partitions in the MBR primary partition table. FWIW, Wikipedia has an article that discusses the layout https://en.wikipedia.org/wiki/Extended_boot_record
> + Why does lsblk(8) say it's 1K while cfdisk says it's 7.9G and > suggests (using graphic chars) that it's related to the swap > partition.
It appears that lsblk(8) is reporting only the size of the secondary partition table embedded in /dev/sda2, while cfdisk(8) is reporting the entire size of the partition.
> I can see (from the cfdisk "start" and "end" data) that sda5 overlaps > sda2 by two 512-byte sectors representing a difference of 1K but it > doesn't make any sense to me.
Yup, that would be the size of the "extended" partition
> Can anyone explain what is happening here? > > My current plan is to delete all partitions and start over but not > understanding this weirdness makes me worry that there is something > about that ID=5 partition that I don't understand.
You can do that, if you intend to perform a complete, fresh install. There are strategies you can use to figure out your partitions, but for a casual-use device, You may only need two or three. My suggestion for a "base" partition layout would be: - a partition for swap, - a partition for /home, and - a partition for / (the root fs). This would permit you to replace the root fs without disturbing any personal files, residing in /home, that you might have. In all. this would fit in the MBR primary partition table, and not need an "extended" partition at all
> > Regards, > -Mike >
Luck be with you
-- Lew Pitcher "In Skills We Trust" Not LLM output - I'm just like this.