• Re: HD partition oddity, vanilla Slack 15 64bit install

    From Henrik Carlqvist@Henrik.Carlqvist@deadspam.com to alt.os.linux.slackware on Sun Nov 22 19:10:21 2026
    From Newsgroup: alt.os.linux.slackware

    On Thu, 19 Nov 2026 01:09:49 -0400, Mike Spencer wrote:
    I'm about to re-do the installation because it appears easier than
    undoing numerous things piecemeal.

    I am not so sure that it will be easier to reinstall from scratch than
    trying to fix whatever it is you have found troublesome. What is it that
    you want to fix?

    If you are looking for a learning experience, installing from scratch is
    the way to go. Many people have suggested booting with UEFI instead of
    legacy, that in itself can be an interesting learning experience
    depending on your hardware as the default bootloader for UEFI in stable Slackware 15.0 is elilo which is unmaintained software which does not
    support all modern hardware.

    One thing that I would like to fix would be to split up the root
    partition in some separate partitions like /home, /var and /tmp.
    However, such a thing can be acomplished by resizing partitions with file systems with a tool like gparted from a live CD. If you only want to
    change some configurations, add or remove software there is no reason to reinstall.

    regards Henrik
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Jim Diamond@zsd@jdvb.ca to alt.os.linux.slackware on Sun Nov 22 20:37:40 2026
    From Newsgroup: alt.os.linux.slackware

    On 2026-11-20 at 12:39 AST, jayjwa <jayjwa@atr2.ath.cx.invalid> wrote:
    Mike Spencer <mds@bogus.nodomain.nowhere> writes:

    Then you need to figure out if the machine supports UEFI. In that case I >>> recommend to do an UEFI install.

    <snip>

    grep efi /etc/fstab
    /dev/nvme0n1p1 /boot/efi vfat defaults 1 0 efivarfs /sys/firmware/efi/efivars efivarfs noauto 0 0

    The EFI filesystem is just a FAT32 fs on top of the partition, type
    "EF".

    If you're setting up a new system, use modern methods. There's no reason
    to hold on to baggage from the past when a better method exists.

    Mike: I agree with the above. Assuming your machine is "recent" and
    supports GPT-partitioned disks, improve your life and remove all
    recollections of MBR from your head. ;-)

    Here's how I setup my systems. You might leave off /srv if you're not
    serving files.

    lsblk -o NAME,FSTYPE,PARTTYPENAME,LABEL,FSAVAIL,FSUSE%,MOUNTPOINTS
    NAME FSTYPE PARTTYPENAME LABEL FSAVAIL FSUSE% MOUNTPOINTS zram0 swap [SWAP]
    nvme0n1
    ├─nvme0n1p1 vfat EFI System 932.6M 4% /boot/efi ├─nvme0n1p2 swap Linux swap lxswap [SWAP] ├─nvme0n1p3 ext4 Linux root (x86-64) 177.2G 59% / ├─nvme0n1p4 xfs Linux server data 40G 20% /srv └─nvme0n1p5 xfs Linux home 285.6G 18% /home

    New Slackware Current installs should handle the explicit PARTTYPENAME partition types. Older installs only took type 83. I mentioned this on
    LQ during my last install. You can still use the older type name if you
    want. 'fdisk' is my favorite tool for partitions because it seems to "do
    the right thing" most of the time and has a helpful menu if you forget
    the commands. It automatically figures how where the next partition goes
    when you're adding them; you don't have to do math with the sectors.

    Lastly, my EFI partition is a little big but that's what the machine
    came with so I left it.

    (Mainly for Mike, but just in case others in his situation read this...)

    FWIW, I have 256 MB for my EFI partition, and even with 10 different OS
    boot choices (and 3 versions of memtest) I am only using 90 MB of that.
    While it is best not to make your EFI partition so small that you will
    regret it later, you don't need to go wild either.

    Of that 90MB, roughly 50MB is the diagnostics tools that came on my laptop, 20MB is the Windoze that came on the machine, 2.5 MB is refind, and a few
    other odds and sods occupy the rest.

    (As mentioned) I use refind as my boot manager. I boot the OS "directly"
    from the disk partition, and the only thing I ever update in the EFI
    partition is refind's conf file.

    I poked around with elilo, but I didn't get it working to my satisfaction.
    That may well have been a "me" issue, but since refind does what I want, I stopped futzing around and took the path of least resistance.

    Jim
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Mike Spencer@mds@bogus.nodomain.nowhere to alt.os.linux.slackware on Mon Nov 23 01:41:44 2026
    From Newsgroup: alt.os.linux.slackware


    Mike Spencer <mds@bogus.nodomain.nowhere> writes:

    And I will probably be back as the upgrade progresses (or fails to
    do so satisfactorily :-).

    Here I am, back again!


    Slack 15-64 appeared to complete as usual. Now I can't boot from the
    HD. Trying to boot results in:

    PXE-E61 Media test failure, check cable

    PXE-M0F: Exiting PXE ROM

    Error: No boot disk has been detected or the disk has failed

    I never asked for network boot. HD is known to be OK as it booted
    fine with the Slack 15 install done by my son with slightly odd MBR
    partitons I originally complained of.

    It all seems all in order when I boot from the USB stick I made during
    the install process.

    Some data on what I did to get where I am is below.

    Can anyone help? Even more stumped than before because everything
    appears to be as it ought.

    - Mike

    --- Useful info --


    Manually deleted existing MBR-based partitions with cfdisk.

    Manually created new GPT partition table with fdisk.

    Manually created EFI partition and other partitions with cfdisk.

    1 500 KiB EFI
    524 KiB Free space
    2 80 GiB Linux x86-64 root
    3 80 GiB Linux filesystem
    4 30 GiB Linux swap
    5 741.5 GiB Linux filesystem


    Ran Slackware 15-64 install which:

    + recognized the EFI partition and

    + claimed to configure elilo

    + proceeded as expected

    + made a USB boot stick

    Booting from the USB stick works fine and HD / and /home are as
    expected.

    /dev/sda 2 appears to be as expected

    /boot appears to be all in order
    /boot/vmlinux -> vmlinuz-huge-5.15.19
    /boot/vmlinuz-huge-5.15.19
    /boot/grub exists but is empty dir
    /boot/elilo-x86_64.efi
    /boot/efi/EFI/Slackware/
    160 elilo.conf
    238531 elilo.efi
    0 initrd.gz
    217088 vmlinuz

    Bonus clue for anyone, especially old guys such as I, who are trying
    to hack at the console command line with the horrible teeny-tiny
    default font:

    setfont -v ter-232b
    --
    Mike Spencer Nova Scotia, Canada

    When you're in your 80s, just being old is a half-time job. -- Stewart Brand --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Mike Spencer@mds@bogus.nodomain.nowhere to alt.os.linux.slackware on Mon Nov 23 02:45:37 2026
    From Newsgroup: alt.os.linux.slackware


    Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> writes:

    On Thu, 19 Nov 2026 01:09:49 -0400, Mike Spencer wrote:

    I'm about to re-do the installation because it appears easier than
    undoing numerous things piecemeal.

    I am not so sure that it will be easier to reinstall from scratch than trying to fix whatever it is you have found troublesome. What is it that
    you want to fix?

    Want ext4 fs, not Reiserfs. Want at least two ext4 partitions.
    Partition table that isn't weird (one data partion and one extended
    partition where plain MBR partitions would be enough).

    See details in my follow-up post where I report that all went well but
    can't boot from HD, hang w/ PXE error mssg.

    Many people have suggested booting with UEFI instead of
    legacy, that in itself can be an interesting learning experience
    depending on your hardware as the default bootloader for UEFI in stable Slackware 15.0 is elilo which is unmaintained software which does not support all modern hardware.

    Machine isn't *very* old but it does have an internal DVD drive so not
    very new. Went with it on purpose to avoid very new hardware.

    Tnx for comment. Plz see my last post where I'm wedged again.
    --
    Mike Spencer Nova Scotia, Canada
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From kaukasoina3dore73js4@kaukasoina3dore73js4@sci.fi (Petri Kaukasoina) to alt.os.linux.slackware on Mon Nov 23 08:30:57 2026
    From Newsgroup: alt.os.linux.slackware

    Mike Spencer <mds@bogus.nodomain.nowhere> wrote:
    1 500 KiB EFI
    524 KiB Free space
    2 80 GiB Linux x86-64 root
    3 80 GiB Linux filesystem
    4 30 GiB Linux swap
    5 741.5 GiB Linux filesystem

    /boot/efi/EFI/Slackware/
    160 elilo.conf
    238531 elilo.efi
    0 initrd.gz
    217088 vmlinuz

    You need more than 500 kilobytes for the EFI partition. vmlinuz is already
    11 MEGAbytes, so copying stopped when the partition was full. And initrd
    could not be copied at all.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Mike Spencer@mds@bogus.nodomain.nowhere to alt.os.linux.slackware on Mon Nov 23 05:09:23 2026
    From Newsgroup: alt.os.linux.slackware


    kaukasoina3dore73js4@sci.fi (Petri Kaukasoina) writes:

    Mike Spencer <mds@bogus.nodomain.nowhere> wrote:
    1 500 KiB EFI
    524 KiB Free space
    2 80 GiB Linux x86-64 root
    3 80 GiB Linux filesystem
    4 30 GiB Linux swap
    5 741.5 GiB Linux filesystem

    /boot/efi/EFI/Slackware/
    160 elilo.conf
    238531 elilo.efi
    0 initrd.gz
    217088 vmlinuz

    You need more than 500 kilobytes for the EFI partition. vmlinuz is
    already 11 MEGAbytes, so copying stopped when the partition was
    full. And initrd could not be copied at all.

    OK, that makes sense. I can see that vmlinuz in /boot/efi/EFI/Slackware/
    is smaller than /boot/vmlinuz.

    No warning messages appeared during install. AFAIR nothing I read
    here or elsewhere said what would reside in that partition. And I
    thought I saw somewhere a small value given for its size,
    apparently an erroneous recollection. My bedtime so too late to grovel
    around looking for the source of my mistake.

    Is 500 M (instead of 500 K) big enough? At a quick glance,
    vmlinuz and initrd on my working 32 bit system are ca. 6M to 10M
    each. Are there other bulky files that need to be on that partition?

    TYVM!
    --
    Mike Spencer Nova Scotia, Canada
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From jayjwa@jayjwa@atr2.ath.cx.invalid to alt.os.linux.slackware on Mon Nov 23 15:38:46 2026
    From Newsgroup: alt.os.linux.slackware

    Mike Spencer <mds@bogus.nodomain.nowhere> writes:

    No warning messages appeared during install. AFAIR nothing I read
    here or elsewhere said what would reside in that partition. And I
    thought I saw somewhere a small value given for its size,
    apparently an erroneous recollection.

    If you are going to use elilo, then it, its conf file, the kernel, and
    the initrd all need to reside on the EFI partition. If you're using
    grub, it can "see" into the root file system so only its grubx64.efi
    binary need reside on the EFI partition.

    You should show the output of efibootmgr afterwards, to verify that
    those values are correct. A machine will try netboot if it can't boot otherwise.

    Is 500 M (instead of 500 K) big enough? At a quick glance,
    vmlinuz and initrd on my working 32 bit system are ca. 6M to 10M
    each. Are there other bulky files that need to be on that partition?

    512 megabytes or thereabouts is fine.
    --
    PGP Key ID: 781C A3E2 C6ED 70A6 B356 7AF5 B510 542E D460 5CAE
    "The Internet should always be the Wild West!"
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Mike Spencer@mds@bogus.nodomain.nowhere to alt.os.linux.slackware on Tue Nov 24 03:42:37 2026
    From Newsgroup: alt.os.linux.slackware

    kaukasoina3dore73js4@sci.fi (Petri Kaukasoina) writes:

    Mike Spencer <mds@bogus.nodomain.nowhere> wrote:

    1 500 KiB EFI
    524 KiB Free space
    2 80 GiB Linux x86-64 root
    3 80 GiB Linux filesystem
    4 30 GiB Linux swap
    5 741.5 GiB Linux filesystem

    /boot/efi/EFI/Slackware/
    160 elilo.conf
    238531 elilo.efi
    0 initrd.gz
    217088 vmlinuz

    You need more than 500 kilobytes for the EFI partition. vmlinuz is
    already 11 MEGAbytes, so copying stopped when the partition was
    full. And initrd could not be copied at all.

    Acknowledged in my previous post.

    I've deleted all the partitions, asked fdisk for a new GPT table,
    recreated all the partitions with 512M for the EFI partition. Then
    repeated the entire Slack 15 install from the beginning.

    I've done this three times with slight variations.

    cfdisk and all the other usual disk partition tools thing /dev/sda
    has 512 MiB. /proc/partitions says 524288 blocks or 0.5G.

    But df says it has 452 1K blocks and I can't write anything to it
    because it's "full". If I delete the incomplete initrd.gz and
    vmlinuz, I can write ca. 5K to it but not more.

    Apparently something is left over from previous (or nth-previous)
    attempts. Tools that are supposed to tell the kernel about the
    partitions (partprobe, partx, resizepart) either return an error or
    change nothing.

    Pretty clear I need to wipe something, either explicitly or as a side
    effect of something else. But I don't know what I'm doing. Is wipefs
    the right thing? fdisk -w or -W? How do I wipe everything -- file
    systems, file data, partition table -- from the HD
    without wrecking some magic numbers or structures I don't know about?

    I'm tempted to dd /dev/zero to /dev/sda with bignum count but that's
    probably wrong if not calamitous.

    Still stuck. Omitting reams of data here 'cause the answer probably
    doesn't need it but I can post anything requested.
    --
    Mike Spencer Nova Scotia, Canada
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Henrik Carlqvist@Henrik.Carlqvist@deadspam.com to alt.os.linux.slackware on Tue Nov 24 18:35:46 2026
    From Newsgroup: alt.os.linux.slackware

    On Tue, 24 Nov 2026 03:42:37 -0400, Mike Spencer wrote:

    I've deleted all the partitions, asked fdisk for a new GPT table,
    recreated all the partitions with 512M for the EFI partition. Then
    repeated the entire Slack 15 install from the beginning.

    But df says it has 452 1K blocks

    Did you also reformat the EFI partition? My guess is that your new
    partition is bigger and placed in the same place as your previous 500k partition, but you are still seeing the old file system because you did
    not reformat your partition.

    I'm tempted to dd /dev/zero to /dev/sda with bignum count but that's
    probably wrong if not calamitous.

    That will overwrite your partition table as well as file systems.

    regards Henrik
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Lew Pitcher@lew.pitcher@digitalfreehold.ca to alt.os.linux.slackware on Tue Nov 24 19:19:44 2026
    From Newsgroup: alt.os.linux.slackware

    Hi, Mike

    On Tue, 24 Nov 2026 03:42:37 -0400, Mike Spencer wrote:

    [snip]
    Still stuck. Omitting reams of data here 'cause the answer probably
    doesn't need it but I can post anything requested.

    I'm going to say this one thing, then I'll butt out....

    You (apparently) had a usable "MBR" partition layout with a legacy
    BIOS boot. You are now struggling with UEFI partition layout and
    format issues in order to get a modern UEFI boot to work so that
    you can re-install Slackware.

    It seems to me that your new UEFI work has complicated a process
    that had been fairly simple under "MBR" boot.

    I'm /not/ telling you to abandon UEFI; MBR is "old and busted" while
    UEFI is "new hotness". BUT, you had a working strategy that just
    needed a few details painted in, and now you don't even have that.

    Perhaps you should consider living with MBR, making a simple
    partition table, and getting on with the install, and leave the
    UEFI pain to another time?

    Just my 2 cents worth. I'll butt out now.

    Luck be with you.
    --
    Lew Pitcher
    "In Skills We Trust"
    Not LLM output - I'm just like this.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Mike Spencer@mds@bogus.nodomain.nowhere to alt.os.linux.slackware on Tue Nov 24 16:42:49 2026
    From Newsgroup: alt.os.linux.slackware


    Lew Pitcher <lew.pitcher@digitalfreehold.ca> writes:

    Hi, Mike

    On Tue, 24 Nov 2026 03:42:37 -0400, Mike Spencer wrote:

    [snip]
    Still stuck. Omitting reams of data here 'cause the answer probably
    doesn't need it but I can post anything requested.

    I'm going to say this one thing, then I'll butt out....

    Don't go away! :-)

    You (apparently) had a usable "MBR" partition layout with a legacy
    BIOS boot. You are now struggling with UEFI partition layout and
    format issues in order to get a modern UEFI boot to work so that
    you can re-install Slackware.

    Just so.

    For the moment, I'm going to stick with exchanges on technical details
    to avoid distraction.

    Bye 'n bye, I'll reply at discursive length, perhaps giving in to my octogenarian inclination to digress into yarns.

    Luck be with you.

    Thank you.
    --
    Mike Spencer Nova Scotia, Canada

    When you're in your 80s, just being old is a half-time job. - Stewart Brand
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Lew Pitcher@lew.pitcher@digitalfreehold.ca to alt.os.linux.slackware on Tue Nov 24 21:30:52 2026
    From Newsgroup: alt.os.linux.slackware

    On Tue, 24 Nov 2026 16:42:49 -0400, Mike Spencer wrote:

    Lew Pitcher <lew.pitcher@digitalfreehold.ca> writes:

    Hi, Mike

    On Tue, 24 Nov 2026 03:42:37 -0400, Mike Spencer wrote:

    [snip]
    Still stuck. Omitting reams of data here 'cause the answer probably
    doesn't need it but I can post anything requested.

    I'm going to say this one thing, then I'll butt out....

    Don't go away! :-)

    Not gone away, just watching from the side-lines.

    You (apparently) had a usable "MBR" partition layout with a legacy
    BIOS boot. You are now struggling with UEFI partition layout and
    format issues in order to get a modern UEFI boot to work so that
    you can re-install Slackware.

    Just so.

    For the moment, I'm going to stick with exchanges on technical details
    to avoid distraction.

    Yah, the technical details can be fun. I've had that fun myself.
    Two (mostly) identical systems; same motherboard and processor, same
    firmware revision, but different hard drives. I got one system to
    properly boot Slackware via UEFI, but the other system never would.
    I had to revert that second system to MBR (albeit, on GPT partitioned
    drives) to properly boot.

    I fought that fight for about a week, then justified my retreat as
    remembering that my goal was to drain the swamp, not fight alligators.


    Bye 'n bye, I'll reply at discursive length, perhaps giving in to my octogenarian inclination to digress into yarns.

    I guessed as much, what with an adult child and grandchild helping to
    set up your system. I'm not far behind you.

    Luck be with you.

    Thank you.

    :-) from Ontario
    --
    Lew Pitcher
    "In Skills We Trust"
    Not LLM output - I'm just like this.
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Mike Spencer@mds@bogus.nodomain.nowhere to alt.os.linux.slackware on Tue Nov 24 17:58:32 2026
    From Newsgroup: alt.os.linux.slackware


    Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> writes:

    On Tue, 24 Nov 2026 03:42:37 -0400, Mike Spencer wrote:

    I've deleted all the partitions, asked fdisk for a new GPT table,
    recreated all the partitions with 512M for the EFI partition. Then
    repeated the entire Slack 15 install from the beginning.

    [ All the partition tools say it's 512M ]
    But df says it has 452 1K blocks

    My guess is that your new partition is bigger and placed in the same
    place as your previous 500k partition, but you are still seeing the
    old file system because you did not reformat your partition.

    That appears to be exactly right.

    Did you also reformat the EFI partition?

    No. How do I do that?

    I haven't "formatted" a HD/partition since MSDOS/Win-3.1 days.

    Slackware 15 install dialog refers to "formatting" partitions, offers
    to so same for partitions of type 0x83 (Linux filesystem) with a
    choice of ext2, ext3, ext4 and other fs types. I'm guessing that
    "format" in the install dialog refers to running (in my case)
    mkfs.ext4.

    The dialog does not offer to "format" the partition of type "EFI
    System" (alleged to be 0xEF but that value doesn't appear anywhere in
    the partitioning tools). That partition is reported by cfdisk and
    mount(8) as having "Filesystem: vfat" and "type vfat" respectively.

    fsck.fat -n -v finds several things it doesn't like but doesn't report explicitly on mismatch between partition size and fs size, exits 1
    (recoverable errors).

    So what would I do to "format" sda1? mkfs.fat /dev/sda1? fsck -a
    /dev/sda1? Something else?

    Your diagnosis looks exactly correct. What do I do for a cure?




    And while we're here:

    I'm tempted to dd /dev/zero to /dev/sda with bignum count but that's
    probably wrong if not calamitous.

    That will overwrite your partition table as well as file systems.

    So I assumed, including the "protective MBR". Does it overwrite secret/magic/unknown-to-me HD bytes/numbers/data-objects that would
    interfere with or completely prevent reconstructing the partition
    table with the usual tools?
    --
    Mike Spencer Nova Scotia, Canada
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Jim Diamond@zsd@jdvb.ca to alt.os.linux.slackware on Wed Nov 25 16:32:26 2026
    From Newsgroup: alt.os.linux.slackware

    On 2026-11-24 at 17:58 AST, Mike Spencer <mds@bogus.nodomain.nowhere> wrote:

    Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> writes:

    On Tue, 24 Nov 2026 03:42:37 -0400, Mike Spencer wrote:

    I've deleted all the partitions, asked fdisk for a new GPT table,
    recreated all the partitions with 512M for the EFI partition. Then
    repeated the entire Slack 15 install from the beginning.

    [ All the partition tools say it's 512M ]
    But df says it has 452 1K blocks

    My guess is that your new partition is bigger and placed in the same
    place as your previous 500k partition, but you are still seeing the
    old file system because you did not reformat your partition.

    That appears to be exactly right.

    Did you also reformat the EFI partition?

    No. How do I do that?

    The EFI partition is (on my system) a VFAT partition.

    If you described the installation procedure, I forget it. But since you
    are using (c)fdisk, I assume you have a shell prompt at which you can type commands.

    So, after partitioning the disk the second (and third...) time, you wanted to

    mkfs.vfat /dev/sda1

    which will create a VFAT partition of the size appropriate for the amount
    of blocks you allocated (about 1/2 GB).

    After that you should be able to copy all the stuff you need to the EFI partition.

    I haven't "formatted" a HD/partition since MSDOS/Win-3.1 days.

    Formatting is really (IMHO) the wrong word, and IIRC M$ can be blamed for
    that. A long long time ago to put a file system on a spinning magnetic
    medium, you had to physically format the medium, which had nothing to do
    with creating a file system. Then after formatting you need to create a filesystem. As I recall (*cough*), M$ decided to call the two things by
    the name "format", which may have been simpler for some people, but it
    causes bad terminology.

    I haven't run a physical format on any disk in "I don't know how long". So
    it is really the wrong word, what you want is to create a file system,
    which the above command should do for you.

    The dialog does not offer to "format" the partition of type "EFI
    System" (alleged to be 0xEF but that value doesn't appear anywhere in
    the partitioning tools). That partition is reported by cfdisk and
    mount(8) as having "Filesystem: vfat" and "type vfat" respectively.

    If you run
    fdisk -l
    does it report something like
    Device Start End Sectors Size Type
    /dev/nvme0n1p1 2048 534527 532480 260M EFI System
    ...

    (Your size should be bigger, but 260 MB has been plenty big for me. But I
    use refind, not elilo.)

    fsck.fat -n -v finds several things it doesn't like but doesn't report explicitly on mismatch between partition size and fs size, exits 1 (recoverable errors).

    It might not do that mismatch check. So....

    So what would I do to "format" sda1? mkfs.fat /dev/sda1? fsck -a
    /dev/sda1? Something else?

    I used mkfs.vfat, but mkfs.fat might work too.

    Your diagnosis looks exactly correct. What do I do for a cure?

    As above.

    I'm tempted to dd /dev/zero to /dev/sda with bignum count but that's
    probably wrong if not calamitous.

    That will overwrite your partition table as well as file systems.

    So I assumed, including the "protective MBR". Does it overwrite secret/magic/unknown-to-me HD bytes/numbers/data-objects that would
    interfere with or completely prevent reconstructing the partition
    table with the usual tools?

    I believe the answer is no. But don't bet your life on my opinion.

    But you don't need to do that, since all else has not yet failed. Do the
    mkfs and then try the install again.

    Good luck.

    Jim
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From jayjwa@jayjwa@atr2.ath.cx.invalid to alt.os.linux.slackware on Wed Nov 25 15:59:19 2026
    From Newsgroup: alt.os.linux.slackware

    Mike Spencer <mds@bogus.nodomain.nowhere> writes:

    Did you also reformat the EFI partition?

    No. How do I do that?

    mkfs.vfat -F 32 on a partition of type EF. *Assuming* it's /dev/sda1,
    then mkfs.vfat -F 32 /dev/sda1.

    In your situation, I'd:
    boot the install media (I'd use the Current snapshot ISO. There's a new
    version of Slackware coming soon because people are talking about "16
    Alpha" and it would be pointless to install something nearing end-of-life)
    run fdisk /dev/sda (assuming it really is /dev/sda)
    using fdisk, create a new GPT for /dev/sda (look at its help menu)
    create /dev/sda1 as EF type partition
    create /dev/sda2 as whatever Linux type for /
    create /dev/sda3 as whatever Linux type for /home
    create /dev/sda4 as Linux swap
    write those changes and exit fdisk
    run mkfs.vfat -F 32 /dev/sda1
    run mkfs.ext4 /dev/sda2
    run mkfs.ext4 /dev/sda3
    run setup and install to /dev/sda2. It might ask were to put this,
    it's "/". Same with /dev/sda3, it's "/home'.
    finish full install
    exit setup before installing any bootloader
    run 'mkbindmounts' or whatever it's called (it's in /sbin)
    chroot /mnt
    grub-install /dev/sda
    check /etc/default/grub
    edit variable GRUB_CMDLINE_LINUX if needed
    grub-mkconfig -o /boot/grub/grub.cfg
    reboot & remove install media
    hope for the best

    I'm writing the above from memory, but you get the idea.

    Slackware 15 install dialog refers to "formatting" partitions, offers
    to so same for partitions of type 0x83 (Linux filesystem) with a
    choice of ext2, ext3, ext4 and other fs types. I'm guessing that
    "format" in the install dialog refers to running (in my case)
    mkfs.ext4.

    Let's stick with ext4. There's no reason to consider others in your
    case.

    The dialog does not offer to "format" the partition of type "EFI
    System" (alleged to be 0xEF but that value doesn't appear anywhere in
    the partitioning tools). That partition is reported by cfdisk and
    mount(8) as having "Filesystem: vfat" and "type vfat" respectively.

    Don't confuse "partition type" with "filesystem type". The filesystem
    lays on the partition. So, for the first partition, which will likely be
    the EFI partition, that would be partition type EF and filesystem type
    FAT32.

    fsck.fat -n -v finds several things it doesn't like but doesn't report explicitly on mismatch between partition size and fs size, exits 1 (recoverable errors).

    There's no reason to run fsck now. It's not needed during install unless
    you suspect a broken filesystem - but there wouldn't be any filesystems
    because you're making them now anew.

    I'm tempted to dd /dev/zero to /dev/sda with bignum count but that's
    probably wrong if not calamitous.

    That will overwrite your partition table as well as file systems.

    There's no reason to do this and it helps nothing.

    So I assumed, including the "protective MBR". Does it overwrite secret/magic/unknown-to-me HD bytes/numbers/data-objects that would
    interfere with or completely prevent reconstructing the partition
    table with the usual tools?

    The MBR does have magic bytes to indicate that it's bootable:
    0x55AA. But this doesn't matter to us because we are using GPT. Avail
    yourself of 21st century progress and forget MBR unless you're working
    on hobbyist/legacy systems.
    --
    PGP Key ID: 781C A3E2 C6ED 70A6 B356 7AF5 B510 542E D460 5CAE
    "The Internet should always be the Wild West!"
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Mike Spencer@mds@bogus.nodomain.nowhere to alt.os.linux.slackware on Thu Nov 26 02:40:30 2026
    From Newsgroup: alt.os.linux.slackware


    Executive summary: Success, TYVM. Here's fuller discussion:



    Jim Diamond <zsd@jdvb.ca> writes:

    On 2026-11-24 at 17:58 AST, Mike Spencer <mds@bogus.nodomain.nowhere> wrote:

    Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> writes:

    On Tue, 24 Nov 2026 03:42:37 -0400, Mike Spencer wrote:

    I've deleted all the partitions, asked fdisk for a new GPT table,
    recreated all the partitions with 512M for the EFI partition. Then
    repeated the entire Slack 15 install from the beginning.

    [ All the partition tools say it's 512M ]
    But df says it has 452 1K blocks

    My guess is that your new partition is bigger and placed in the same
    place as your previous 500k partition, but you are still seeing the
    old file system because you did not reformat your partition.

    That appears to be exactly right.

    Did you also reformat the EFI partition?

    No. How do I do that?

    The EFI partition is (on my system) a VFAT partition.

    So, after partitioning the disk the second (and third...) time, you
    wanted to

    mkfs.vfat /dev/sda1

    which will create a VFAT partition of the size appropriate for the amount
    of blocks you allocated (about 1/2 GB).

    Did that. Now df sees the full 512M space on the efi partition!

    After that you should be able to copy all the stuff you need to the EFI partition.

    Uncertain what to copy there. There are two kernels in /boot: "huge"
    and "generic" with long, fully qualified names. "vmlinuz" is a link to
    "huge".

    I ran the whole install script again.

    The "generic" version ended up in /boot/emi/EMI/Slackware with short
    name "vmlinuz" (conforming to vfat filename constraints?).

    I don't know how or why generic was chosen over huge. Don't know what difference it makes. Further info on this welcome.

    In any case, my new(ish :-) machine now boots into vanilla Slackware
    15. I have X and twm up, files from ~/ imported. That gives me
    .xinitrc, .Xmodmap, .cshrc, .emacs, ~/bin, ~/bin/perl that allow
    enough of the familiar landscape that that I'm not constantly
    frustrated.

    Next up, getting the basic stuff going to suit me.

    + Compiling GNU emacs 20.7 for 64 bits. I've been copying the
    executable I compiled in 1999 at each upgrade. I know, I know:
    why? Later, in another post.

    + Determining if I can live with Networkmanager. It has
    automatically connected my LAN but the X applet demands a "system
    tray" and twm doesn't do system tray. Wicd has a nice curses
    display that runs in an xterm.

    + Other less important packages that I like or want that I have to
    run down source for: XLisp, phoon, xearth

    And of course all the little potholes that appear on a new
    machine. Trivial example: my script to run xrandr needs a tweak
    because a newer monitor has an HDMI port so a different regex is
    needed to parse xrandr -q output.

    I haven't "formatted" a HD/partition since MSDOS/Win-3.1 days.

    Formatting is really (IMHO) the wrong word, and IIRC M$ can be blamed for that.

    Yeah. A source of my confusion.

    A long long time ago to put a file system on a spinning magnetic
    medium, you had to physically format the medium, which had nothing to do
    with creating a file system. Then after formatting you need to create a filesystem. As I recall (*cough*), M$ decided to call the two things by
    the name "format", which may have been simpler for some people, but it
    causes bad terminology.

    Read up on all that in the 90s. Don't remember a lot of it but still a
    source of confusion.

    I haven't run a physical format on any disk in "I don't know how long". So it is really the wrong word, what you want is to create a file system,
    which the above command should do for you.

    Right. Got it.

    Why elilo? Because that's what Patrick put in the install script.
    One or two mentions of grub flicked by but no more. man and apropos
    turn up noting about elilo which is annoying. But it's working so
    okay.

    Do the mkfs and then try the install again.

    Done. All appears well. Thank you Jim and others for help.

    When I've made a little more progress, I post a reply to Lew's
    observation that I really didn't need to do all this when I had a
    working MBR HD. More in the line of nattering than desperately
    seeking help.


    Good luck.

    TYVM.
    --
    Mike Spencer Nova Scotia, Canada
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From Jim Diamond@zsd@jdvb.ca to alt.os.linux.slackware on Thu Nov 26 16:37:08 2026
    From Newsgroup: alt.os.linux.slackware

    On 2026-11-26 at 02:40 AST, Mike Spencer <mds@bogus.nodomain.nowhere> wrote:

    Executive summary: Success, TYVM.

    Glad to hear that things are going in the right direction now.

    Here's fuller discussion:

    Jim Diamond <zsd@jdvb.ca> writes:

    On 2026-11-24 at 17:58 AST, Mike Spencer <mds@bogus.nodomain.nowhere> wrote: >>>
    Henrik Carlqvist <Henrik.Carlqvist@deadspam.com> writes:

    On Tue, 24 Nov 2026 03:42:37 -0400, Mike Spencer wrote:

    I've deleted all the partitions, asked fdisk for a new GPT table,
    recreated all the partitions with 512M for the EFI partition. Then
    repeated the entire Slack 15 install from the beginning.

    [ All the partition tools say it's 512M ]
    But df says it has 452 1K blocks

    My guess is that your new partition is bigger and placed in the same
    place as your previous 500k partition, but you are still seeing the
    old file system because you did not reformat your partition.

    That appears to be exactly right.

    Did you also reformat the EFI partition?

    No. How do I do that?

    The EFI partition is (on my system) a VFAT partition.

    So, after partitioning the disk the second (and third...) time, you
    wanted to

    mkfs.vfat /dev/sda1

    which will create a VFAT partition of the size appropriate for the amount
    of blocks you allocated (about 1/2 GB).

    Did that. Now df sees the full 512M space on the efi partition!

    Perfect!

    After that you should be able to copy all the stuff you need to the EFI
    partition.

    Uncertain what to copy there. There are two kernels in /boot: "huge"
    and "generic" with long, fully qualified names. "vmlinuz" is a link to "huge".

    I ran the whole install script again.

    The "generic" version ended up in /boot/emi/EMI/Slackware with short
    name "vmlinuz" (conforming to vfat filename constraints?).

    I'm betting you mean /boot/efi/EFI/Slackware/ (with f and F).

    I don't know how or why generic was chosen over huge. Don't know what difference it makes. Further info on this welcome.

    I think if it runs (which you say it does), generic is preferable, since
    the generic kernel doesn't load code for a whole bunch of drivers you don't need, whereas the huge one has many drivers (and their dogs) built-in,
    wasting your precious RAM.

    In any case, my new(ish :-) machine now boots into vanilla Slackware
    15. I have X and twm up, files from ~/ imported. That gives me
    .xinitrc, .Xmodmap, .cshrc, .emacs, ~/bin, ~/bin/perl that allow
    enough of the familiar landscape that that I'm not constantly
    frustrated.

    Next up, getting the basic stuff going to suit me.

    + Compiling GNU emacs 20.7 for 64 bits. I've been copying the
    executable I compiled in 1999 at each upgrade. I know, I know:
    why? Later, in another post.

    I am using 30.2. If I recall, there were some gotchas along the way from
    20.7 (that was a while ago now), but not that many. If you don't have a
    lot of non-GNU elisp, you might find the transition easy enough.

    + Determining if I can live with Networkmanager. It has
    automatically connected my LAN but the X applet demands a "system
    tray" and twm doesn't do system tray. Wicd has a nice curses
    display that runs in an xterm.

    I use fvwm3, which doesn't have a system tray, but it does allow me to use stalonetray (available on an SBo near you) as a system tray, and with that Networkmanager behaves very nicely for me. I've never used twm, so YMMV.

    + Other less important packages that I like or want that I have to
    run down source for: XLisp, phoon, xearth

    Have you considered one of the Lisp choices at slackbuilds.org?
    xearth is available at slackbuilds.org.
    I don't know about phoon or anything equivalent.

    And of course all the little potholes that appear on a new
    machine. Trivial example: my script to run xrandr needs a tweak
    because a newer monitor has an HDMI port so a different regex is
    needed to parse xrandr -q output.

    The long winter nights are already upon us here in NS, so there is
    something to keep you busy. ;-)

    I haven't "formatted" a HD/partition since MSDOS/Win-3.1 days.

    Formatting is really (IMHO) the wrong word, and IIRC M$ can be blamed for
    that.

    Yeah. A source of my confusion.

    M$ is a source of lots of confusion. Perhaps a primary source.

    A long long time ago to put a file system on a spinning magnetic
    medium, you had to physically format the medium, which had nothing to do
    with creating a file system. Then after formatting you need to create a
    filesystem. As I recall (*cough*), M$ decided to call the two things by
    the name "format", which may have been simpler for some people, but it
    causes bad terminology.

    Read up on all that in the 90s. Don't remember a lot of it but still a
    source of confusion.

    The first SGI workstation I used had (IIRC) an ESDI disk. SGI wanted exorbitant amounts for a second disk, so we bought one from some company
    down the road. It had to be physically formatted before it could have a
    file system put on it. SGI had included a password-protected formatting program with the standard software package, and after a little light
    hacking, it was easy to find the required passwords. (It was a bizarrely low-effort protection on their part, considering how solid the rest of
    their software was.)


    I haven't run a physical format on any disk in "I don't know how long". So >> it is really the wrong word, what you want is to create a file system,
    which the above command should do for you.

    Right. Got it.

    Great.

    Why elilo? Because that's what Patrick put in the install script.
    One or two mentions of grub flicked by but no more. man and apropos
    turn up noting about elilo which is annoying. But it's working so
    okay.

    Look in /usr/doc/elilo-3.16 and see if there is anything of use in there.

    Do the mkfs and then try the install again.

    Done. All appears well. Thank you Jim and others for help.

    Glad you are back up and running.

    When I've made a little more progress, I post a reply to Lew's
    observation that I really didn't need to do all this when I had a
    working MBR HD. More in the line of nattering than desperately
    seeking help.

    Lew is correct in that there is more learning to be done when you switch
    from MBR to GPT partitioning. However, having survived the transition you
    will probably never feel the need to go back. And who knows, the next
    computer your kids drop off may not work with MBR anymore.

    Jim
    --- Synchronet 3.21e-Linux NewsLink 1.2