• Grub menu entry for a system on a second drive.

    From peter@easthope.ca@21:1/5 to All on Thu Oct 24 22:50:01 2024
    Hi,

    root@imager:~# grep PROBER /etc/default/grub
    GRUB_DISABLE_OS_PROBER=true

    Also,

    root@imager:~# cat /etc/grub.d/40*
    #!/bin/sh
    exec tail -n +3 $0
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    #
    menuentry "Void linux"{
    insmod part_gpt
    insmod ext2
    set root=(hd1,gpt6) reboot=bios
    linux /boot/vmlinuz-6.6.56_2 root=UUID=e5c7eb47-8d4c-49da-9038-09c27e8e8
    990 ro single
    echo 'Loading ramdisk.'
    initrd /boot/initramfs-6.6.56_2.img
    }

    Then,

    root@imager:~# update-grub
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-5.10.0-24-amd64
    Found initrd image: /boot/initrd.img-5.10.0-24-amd64
    Warning: os-prober will not be executed to detect other bootable partitions. Systems on them will not be added to the GRUB boot configuration.
    Check GRUB_DISABLE_OS_PROBER documentation entry.
    done

    /boot/grub/grub.cfg has the menu entry.

    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    #
    menuentry "Void linux"{
    insmod part_gpt
    insmod ext2
    set root=(hd1,gpt6) reboot=bios
    linux /boot/vmlinuz-6.6.56_2 root=UUID=e5c7eb47-8d4c-49da-9038-09c27e8e8
    990 ro single
    echo 'Loading ramdisk.'
    initrd /boot/initramfs-6.6.56_2.img
    }
    ### END /etc/grub.d/40_custom ###

    So far, good, but when booting the Void entry is absent. https://easthope.ca/GrubMenu.jpg

    Ideas?

    Thanks, ... P.

    --
    VoIP: +1 604 670 0140
    work: https://en.wikibooks.org/wiki/User:PeterEasthope

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Felix Miata@21:1/5 to All on Thu Oct 24 23:00:01 2024
    peter@easthope.ca composed on 2024-10-24 12:52 (UTC-0700):

    So far, good, but when booting the Void entry is absent. https://easthope.ca/GrubMenu.jpg

    Ideas?

    Why I don't know, but:

    Instead of 40_custom, I use 41_custom, but copied to 07_custom. Grub.cfg then reads custom entries from /boot/grub/custom.cfg at runtime, placing them ahead of
    its own entries. Any changes you make to /boot/grub/custom.cfg are read without any additional fuss next boot and beyond, until you change it again.
    --
    Evolution as taught in public schools is, like religion,
    based on faith, not based on science.

    Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

    Felix Miata

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to peter@easthope.ca on Fri Oct 25 05:30:01 2024
    On Thu 24 Oct 2024 at 12:52:59 (-0700), peter@easthope.ca wrote:
    root@imager:~# grep PROBER /etc/default/grub
    GRUB_DISABLE_OS_PROBER=true

    Also,

    root@imager:~# cat /etc/grub.d/40*
    #!/bin/sh
    exec tail -n +3 $0
    # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above.
    #
    menuentry "Void linux"{
    insmod part_gpt
    insmod ext2
    set root=(hd1,gpt6) reboot=bios
    linux /boot/vmlinuz-6.6.56_2 root=UUID=e5c7eb47-8d4c-49da-9038-09c27e8e8
    990 ro single
    echo 'Loading ramdisk.'
    initrd /boot/initramfs-6.6.56_2.img
    }

    So you've got a stable/testing/unstable system on hd1?

    Then,

    root@imager:~# update-grub
    Generating grub configuration file ...
    Found linux image: /boot/vmlinuz-5.10.0-24-amd64
    Found initrd image: /boot/initrd.img-5.10.0-24-amd64

    And a 14-month old bullseye system on hd0, which is currently running?

    Warning: os-prober will not be executed to detect other bootable partitions. Systems on them will not be added to the GRUB boot configuration.
    Check GRUB_DISABLE_OS_PROBER documentation entry.
    done

    /boot/grub/grub.cfg has the menu entry.

    ### BEGIN /etc/grub.d/40_custom ###
    # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above.
    #
    menuentry "Void linux"{
    insmod part_gpt
    insmod ext2
    set root=(hd1,gpt6) reboot=bios
    linux /boot/vmlinuz-6.6.56_2 root=UUID=e5c7eb47-8d4c-49da-9038-09c27e8e8
    990 ro single
    echo 'Loading ramdisk.'
    initrd /boot/initramfs-6.6.56_2.img
    }
    ### END /etc/grub.d/40_custom ###

    So far, good, but when booting the Void entry is absent. https://easthope.ca/GrubMenu.jpg

    Ideas?

    The system has booted into a bookworm Grub (deb12u1). It would appear
    that your MBR/UEFI has booted into a grub.cfg that isn't the one
    created above, ie on the other disk. After all, that Grub menu looks
    as if it was created on a system that (a) isn't bullseye, and (b) ran
    os-prober to produce its bullseye lines 3 and 4.

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From peter@easthope.ca@21:1/5 to All on Fri Oct 25 17:50:02 2024
    From: David Wright <deblis@lionunicorn.co.uk>
    Date: Thu, 24 Oct 2024 22:22:19 -0500
    So you've got a stable/testing/unstable system on hd1?

    hd1 has Void Linux. They don't use the stable/testing/unstable terminology.

    And a 14-month old bullseye system on hd0, which is currently running?

    Yes.
    root@imager:~# cat /etc/debian*
    11.11

    The system has booted into a bookworm Grub (deb12u1).

    I don't understand. To my understanding, booted into Debian 11 on hd0.

    A new-to-me detail is hd0 having FAT and hd1 having GPT.
    According to this, OK for Grub2. https://www.gnu.org/software/grub/manual/grub/grub.html#BIOS-installation

    Thanks, ... P.

    --
    VoIP: +1 604 670 0140
    work: https://en.wikibooks.org/wiki/User:PeterEasthope

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Joe@21:1/5 to peter@easthope.ca on Fri Oct 25 18:10:01 2024
    On 25 Oct 2024 08:26:21 -0700
    peter@easthope.ca wrote:

    From: David Wright <deblis@lionunicorn.co.uk>
    Date: Thu, 24 Oct 2024 22:22:19 -0500
    So you've got a stable/testing/unstable system on hd1?

    hd1 has Void Linux. They don't use the stable/testing/unstable
    terminology.

    And a 14-month old bullseye system on hd0, which is currently
    running?

    Yes.
    root@imager:~# cat /etc/debian*
    11.11

    The system has booted into a bookworm Grub (deb12u1).

    I don't understand. To my understanding, booted into Debian 11 on
    hd0.

    A new-to-me detail is hd0 having FAT and hd1 having GPT.
    According to this, OK for Grub2. https://www.gnu.org/software/grub/manual/grub/grub.html#BIOS-installation

    Modern drives use GPT partitioning, and modern computers generally have
    UEFI firmware rather than BIOS. The EFI partition *must* be one of the
    FAT family, for any OS using UEFI.

    --
    Joe

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From peter@easthope.ca@21:1/5 to All on Fri Oct 25 18:40:01 2024
    From: Felix Miata <mrmazda@earthlink.net>
    Date: Thu, 24 Oct 2024 16:55:37 -0400
    Instead of 40_custom, I use 41_custom, but copied to 07_custom.

    You have two copies of the custom configuration. One in
    /etc/grub.d/07_custom and one in /etc/grub.d/41_custom. Correct?

    Are both entries in the menu? Only the one from 07_custom?

    The immediate puzzle here is the custom menu entry in
    /etc/boot/grub.cfg and not displayed in the boot menu. As if menu
    display stops before the custom section.

    Don't want to be stuck with a broken system. Need to be a careful
    monkeying.

    Thanks, ... P.



    --
    VoIP: +1 604 670 0140
    work: https://en.wikibooks.org/wiki/User:PeterEasthope

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to peter@easthope.ca on Fri Oct 25 18:50:01 2024
    On Fri, Oct 25, 2024 at 08:26:21 -0700, peter@easthope.ca wrote:
    A new-to-me detail is hd0 having FAT and hd1 having GPT.
    According to this, OK for Grub2. https://www.gnu.org/software/grub/manual/grub/grub.html#BIOS-installation

    FAT is a type of file system. The disk partitioning table type that
    you're thinking of is variously called "MSDOS" or "MBR", depending
    on which tool you use.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Felix Miata@21:1/5 to All on Fri Oct 25 20:00:01 2024
    peter composed on 2024-10-25 09:23 (UTC-0700):

    You have two copies of the custom configuration. One in /etc/grub.d/07_custom and one in /etc/grub.d/41_custom. Correct?

    Are both entries in the menu? Only the one from 07_custom?

    The immediate puzzle here is the custom menu entry in
    /etc/boot/grub.cfg and not displayed in the boot menu. As if menu
    display stops before the custom section.

    Don't want to be stuck with a broken system. Need to be a careful
    monkeying.

    My actual custom stanzas are in /boot/grub2/custom.cfg, because I use only one bootloader per PC, no matter how many installations it contains, which averages in
    excess of 20, and I use whatever version of Grub2 that Tumbleweed provides, usually the latest available. That shouldn't make any difference in Debian use, other than the "2" in directory name.

    In /etc/grub.d/ I copy 41_custom to 07_custom. Then I empty 41_custom and make it
    immutable so that the entries 07_custom refers to are not duplicated by 41_custom
    after every time whatever Grub package providing it is updated.

    Manual editing of /boot/grub/grub.cfg does not persist. Every kernel addition or
    removal causes its regeneration anew based upon the content of /etc/default/grub
    and the regeneration script(s), same as running grub-mkconfig.

    Details of 40_custom use I'm completely unfamiliar with, as I've never used it, though I empty and lock it the same it as I do 41_custom.

    I have only one set of custom entries per PC, those in /boot/grub2/custom.cfg. It's such a long list that I normally don't see the automatically generated entries before I've made a selection from among my own.
    --
    Evolution as taught in public schools is, like religion,
    based on faith, not based on science.

    Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

    Felix Miata

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From peter@easthope.ca@21:1/5 to All on Fri Oct 25 21:00:02 2024
    Joe & all,

    From: Joe <joe@jretrading.com>
    Date: Fri, 25 Oct 2024 17:06:21 +0100
    Modern drives use GPT partitioning, and modern computers generally have
    UEFI firmware rather than BIOS.

    The machine here is ThinkCentre 1S3237C13MJTVBGW. Older than
    machines commonplace now.

    It has UEFI but I couldn't make it boot the machine. Noticed comments
    on the Web mentioning bugs in some early EFI implementations. So I
    kept GPT on the drive and reverted to BIOS.

    The EFI partition *must* be one of the FAT family, for any OS using
    UEFI.

    Understood. Have that. Not using it. Booting with BIOS rather
    than EFI.

    Incidentally, the Void Linux system on (hd1,gpt6) boots when directed
    from the BIOS. The problem is to boot it through Grub on (hd0)
    without switching in the BIOS.

    If my /etc/grub.d/40_custom is problematic for update-grub2 an error
    message from update-grub2 or grub-mkconfig could help. Don't see a
    way to get a progress or error report without recompiling.

    The /boot/grub/grub.cfg created by update-grub2 is at https://easthope.ca/grub.cfg . My 40_custom stanza is there but not
    in the boot menu. If someone can spot an error, good, thanks.

    Thanks, ... P.


    --
    VoIP: +1 604 670 0140
    work: https://en.wikibooks.org/wiki/User:PeterEasthope

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to peter@easthope.ca on Fri Oct 25 20:20:01 2024
    On Fri 25 Oct 2024 at 08:26:21 (-0700), peter@easthope.ca wrote:
    From: David Wright <deblis@lionunicorn.co.uk>
    Date: Thu, 24 Oct 2024 22:22:19 -0500
    So you've got a stable/testing/unstable system on hd1?

    hd1 has Void Linux. They don't use the stable/testing/unstable terminology.

    I'm looking at your system through a tiny peephole!
    All I've done is to conjure up a scenario that doesn't
    AFAICT contradict anything you've written.

    And a 14-month old bullseye system on hd0, which is currently running?

    Yes.
    root@imager:~# cat /etc/debian*
    11.11

    The system has booted into a bookworm Grub (deb12u1).

    I don't understand.

    Booting is a multistage process. By means of an MBR or EFI, you
    reached the Grub menu, which you photographed. At the top, it says:
    GNU GRUB version 2.06-13+deb12u1
    which is the bang up-to-date bookworm version of Grub.
    Having photographed this menu, and commented on its
    lack of a particular menu, all I see is evidence of bookworm.

    Now, if you press Return while in the state the photo recorded,
    then you'll end up in a bullseye system. Hence:

    To my understanding, booted into Debian 11 on hd0.

    But I have no /evidence/ that there's any connection between the
    grub.cfg you were editing and the grub.cfg that displayed that
    screen. I would need to know what else was on the machine and its
    disks to do anything more than guess from shaky assumptions.

    A new-to-me detail is hd0 having FAT and hd1 having GPT.

    I think you mean MBR on hd0. Is hd0 the legacy disk and
    hd1 a new one? Would it be correct to assume that the machine
    booted from the MBR, and still does? Can we assume that you
    haven't tried to install Grub onto hd1? There's a stack of
    unknowns at this end.

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to Felix Miata on Fri Oct 25 21:10:01 2024
    On Fri 25 Oct 2024 at 13:51:06 (-0400), Felix Miata wrote:
    My actual custom stanzas are in /boot/grub2/custom.cfg, because I use only one
    bootloader per PC, no matter how many installations it contains, which averages in
    excess of 20, and I use whatever version of Grub2 that Tumbleweed provides, usually the latest available. That shouldn't make any difference in Debian use,
    other than the "2" in directory name.

    In /etc/grub.d/ I copy 41_custom to 07_custom. Then I empty 41_custom and make it
    immutable so that the entries 07_custom refers to are not duplicated by 41_custom
    after every time whatever Grub package providing it is updated.

    Do you mean that the previously inserted copies of custom.cfg are
    preserved, and a new copy inserted, each time grub-mkconfig runs?
    If that's not the case, then does it really matter that you have
    the same menuentry contents at positions 07 and 41?

    Details of 40_custom use I'm completely unfamiliar with, as I've never used it,
    though I empty and lock it the same it as I do 41_custom.

    It's static, and just gets inserted as is, which you can see from
    any grub.cfg created in the normal manner. Mine currently contains:

    #!/bin/sh
    exec tail -n +3 $0
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    menuentry "Install Debian via HTTP" {
    search --no-floppy --label --set=root noah03
    linux /boot/vmlinuz priority=low
    initrd /boot/initrd.gz
    }

    on a machine that can't reliably boot from a USB stick,
    particularly a Debian netinst confection. (The two files come from http://http.us.debian.org/debian/dists/<codename>/main/install er-i386/current/images/hd-media/
    rather than
    https://cdimage.debian.org/cdimage/release/current/amd64/iso-cd/
    )

    I also use 07_custom on the same machine, avoiding the
    filename versioning in the system-generated entries:

    #!/bin/sh
    exec tail -n +3 $0
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    menuentry 'My bullseye' $menuentry_id_option 'custom' {
    load_video
    set gfxpayload=keep
    insmod gzio
    insmod part_gpt
    insmod ext2
    search --no-floppy --set=root --label noah03
    echo 'Load /vmlinuz …'
    linux /vmlinuz root=LABEL=noah03 ro systemd.show_status=true quiet
    echo 'Load initial ramdisk /initrd.img …'
    initrd /initrd.img
    }

    Manual editing of /boot/grub/grub.cfg does not persist. Every kernel addition or
    removal causes its regeneration anew based upon the content of /etc/default/grub
    and the regeneration script(s), same as running grub-mkconfig.

    FTR, editing the Grub menu itself is, of course, totally ephemeral.
    Type whatever you like, boot from it, and the edits are gone for good.

    But editing /boot/grub/grub.cfg does persist as long as
    that particular grub.cfg is not reconfigured with
    grub-mkconfig/update-grub, which is done by kernel upgrades,
    and, of course, the very occasional Grub upgrades.

    I postprocess my grub.cfg files as a matter of routine, mainly
    to convert UUIDs to LABELs, but also to uniquify them, if I may
    use that word. In the OP's case, I would do just that: after grub-mkconfig/update-grub runs, I would edit grub.cfg to add
    something, anything, to one or more menuentry labels; say,
    Debian 2024-10-25 A GNU/Linux so that you can correlate
    the menu you later see with the file you earlier wrote.

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to peter@easthope.ca on Fri Oct 25 21:20:02 2024
    On Fri 25 Oct 2024 at 11:33:37 (-0700), peter@easthope.ca wrote:
    The /boot/grub/grub.cfg created by update-grub2 is at https://easthope.ca/grub.cfg . My 40_custom stanza is there but not
    in the boot menu. If someone can spot an error, good, thanks.

    You took out the tail!

    It should look like:

    $ cat /etc/grub.d/40_custom
    #!/bin/sh
    exec tail -n +3 $0
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    menuentry "Install Debian via HTTP" {
    search --no-floppy --label --set=root noah03
    linux /boot/vmlinuz priority=low
    initrd /boot/initrd.gz
    }
    $

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Felix Miata@21:1/5 to All on Fri Oct 25 22:50:01 2024
    David Wright composed on 2024-10-25 14:08 (UTC-0500):

    On Fri 25 Oct 2024 at 13:51:06 (-0400), Felix Miata wrote:

    My actual custom stanzas are in /boot/grub2/custom.cfg, because I use only one
    bootloader per PC, no matter how many installations it contains, which averages in
    excess of 20, and I use whatever version of Grub2 that Tumbleweed provides, >> usually the latest available. That shouldn't make any difference in Debian use,
    other than the "2" in directory name.

    In /etc/grub.d/ I copy 41_custom to 07_custom. Then I empty 41_custom and make it
    immutable so that the entries 07_custom refers to are not duplicated by 41_custom
    after every time whatever Grub package providing it is updated.

    Do you mean that the previously inserted copies of custom.cfg are
    preserved, and a new copy inserted, each time grub-mkconfig runs?

    I don't understand this "insertion" business, thus neither "preserved". My grub.cfgs contain zilch that is contained in custom.cfgs.

    grub.cfg always contains:

    ### END /etc/grub.d/06_custom ###

    ### BEGIN /etc/grub.d/07_custom ###
    if [ -f ${config_directory}/custom.cfg ]; then
    source ${config_directory}/custom.cfg
    elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
    source $prefix/custom.cfg;
    fi
    ### END /etc/grub.d/07_custom ###

    ### BEGIN /etc/grub.d/10_linux ###

    This code means custom.cfg is read at boot, with result that custom.cfg stanzas are displayed before those contained within grub.cfg itself.

    If that's not the case, then does it really matter that you have
    the same menuentry contents at positions 07 and 41?

    07… stanzas are displayed prior to grub.cfg's own (10…) stanzas. 41… entries are
    displayed after. These numbers beginning filenames in /etc/grub.d/ are about the
    order of presentation when grub is putting up a menu at boot.
    --
    Evolution as taught in public schools is, like religion,
    based on faith, not based on science.

    Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

    Felix Miata

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From peter@easthope.ca@21:1/5 to All on Fri Oct 25 22:50:01 2024
    From: David Wright <deblis@lionunicorn.co.uk>
    Date: Fri, 25 Oct 2024 14:13:50 -0500
    You took out the tail!

    Appears we're at crossed purposes. You catted /etc/grub.d/40_custom.
    I posted /boot/grub/grub.cfg.

    My 40_custom has the "exec tail" line as you posted and produces a
    stanza in /boot/grub/grub.cfg appearing OK.

    Thx, ... P.

    --
    VoIP: +1 604 670 0140
    work: https://en.wikibooks.org/wiki/User:PeterEasthope

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Tim Woodall@21:1/5 to peter@easthope.ca on Fri Oct 25 23:40:01 2024
    On Fri, 25 Oct 2024, peter@easthope.ca wrote:

    From: Felix Miata <mrmazda@earthlink.net>
    Date: Thu, 24 Oct 2024 16:55:37 -0400
    Instead of 40_custom, I use 41_custom, but copied to 07_custom.

    You have two copies of the custom configuration. One in /etc/grub.d/07_custom and one in /etc/grub.d/41_custom. Correct?

    Are both entries in the menu? Only the one from 07_custom?

    The immediate puzzle here is the custom menu entry in
    /etc/boot/grub.cfg and not displayed in the boot menu. As if menu
    display stops before the custom section.

    Don't want to be stuck with a broken system. Need to be a careful
    monkeying.

    Thanks, ... P.





    It's possibly not reading the grub.cfg you think it is reading. I've
    hit this problem before - IIRC grub uses the grub.cfg from the *first*
    place it finds one - this can even be a partition (or in my case a LV)
    that is not used anywhere on any system.

    So the first thing to check is whether there's a grub.cfg on any other partition.

    One thing you can try is changing something innocuous in what you think
    is the live stanza, and then checking whether it's visible when you go
    to edit the commands in the grub menu - if it's not then that tells you
    it's not using that grub.cfg but another one that looks like it.

    I have no idea if grub hides things that aren't parseable - that would
    be my other guess.

    Tim.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Felix Miata@21:1/5 to and what I on Sat Oct 26 06:00:01 2024
    David Wright composed on 2024-10-25 14:08 (UTC-0500):

    On Fri 25 Oct 2024 at 13:51:06 (-0400), Felix Miata wrote:

    Manual editing of /boot/grub/grub.cfg does not persist. Every kernel addition or
    removal causes its regeneration anew based upon the content of /etc/default/grub
    and the regeneration script(s), same as running grub-mkconfig.

    FTR, editing the Grub menu itself is, of course, totally ephemeral.
    Type whatever you like, boot from it, and the edits are gone for good.

    But editing /boot/grub/grub.cfg does persist as long as

    Therein lies the difference between my word collection and yours - as long as. It
    persists, but only until some _inevitable_ event occurs, as we both described:

    that particular grub.cfg is not reconfigured with
    grub-mkconfig/update-grub, which is done by kernel upgrades,
    and, of course, the very occasional Grub upgrades.

    Just a little editing of my text produces an equivalent result. Change

    does not persist. Every kernel addition or removal…
    to
    persists only until kernel addition or removal…

    and what I wrote is equivalent to what you wrote.

    I postprocess my grub.cfg files as a matter of routine, mainly
    to convert UUIDs to LABELs, but also to uniquify them, if I may
    use that word.

    Such postprocess is pointless here. The bulk of my custom.cfg entries use LABELS.
    None use UUIDs. And, grub.cfg entries are ignored, displayed onscreen as available
    selections only after scrolling past 20-30 or more custom.cfg entries:

    grep uent customAB250-51.cfg
    menuentry "memtest86 8.3 EFI" {
    menuentry "openSUSE TW defkernel 5 nolog novid" {
    menuentry "openSUSE TW defkernel 3 on P07" {
    menuentry "memtest86 7.4 EFI" {
    menuentry "openSUSE Slowroll defkernel 3 on P19" {
    menuentry "openSUSE 15.6 defkernel 3 on P20" {
    menuentry "Debian 13 Testing (Trixie) defkernel 3 on P13" {
    menuentry "Fedora 41 defkernel 3 on P23" {
    menuentry "openSUSE 15.5 defkernel 3 on P11" {
    menuentry "Fedora 39 defkernel 3 on P15" {
    menuentry "Tubuntu 24 defkernel 3 on P24" {
    menuentry "Mageia 9 defkernel 3" {
    menuentry "Fedora 40 defkernel 3 on P18" {
    menuentry "Neon User defkernel 3 on P25" {
    menuentry "Debian 12 Bookworm defkernel 3 on P10" {
    menuentry "Tubuntu 22 defkernel 3 on P12" {
    menuentry "openSUSE 15.4 defkernel 3 on P16" {
    menuentry "Debian 11 Bullseye defkernel 3 on P14" {
    menuentry "openSUSE 15.3 defkernel 3 on P08" {
    menuentry "openSUSE 15.1 defkernel 3 on P09" {
    menuentry "Tubuntu 20 defkernel 5 on P17" {
    menuentry "Tubuntu 18 defkernel 5 on P21" {
    menuentry "Custom from ESP partition" {
    menuentry "Install Buntu via HTTP" {
    menuentry "Install Slackware via HTTP" {
    menuentry "Install openSUSE TW via HTTP" {
    menuentry "Install Mageia from mirrors.us.kernel.org"{
    menuentry "Install openSUSE 15.6 via HTTP" {
    menuentry "Install Neon via HTTP" {
    menuentry "Install Debian via HTTP" {
    grep uent customAB250-51.cfg | wc
    30 221 1339
    wc customAB250-51.cfg
    199 937 10599 customAB250-51.cfg
    ls -gGh customAB250-51.cfg
    … 11K Oct 23 17:47 customAB250-51.cfg

    So, the auto-generateds are rarely observed, much less selected.
    --
    Evolution as taught in public schools is, like religion,
    based on faith, not based on science.

    Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

    Felix Miata

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to Felix Miata on Sat Oct 26 07:10:01 2024
    On Fri 25 Oct 2024 at 23:50:05 (-0400), Felix Miata wrote:
    David Wright composed on 2024-10-25 14:08 (UTC-0500):
    On Fri 25 Oct 2024 at 13:51:06 (-0400), Felix Miata wrote:

    Manual editing of /boot/grub/grub.cfg does not persist. Every kernel addition or
    removal causes its regeneration anew based upon the content of /etc/default/grub
    and the regeneration script(s), same as running grub-mkconfig.

    FTR, editing the Grub menu itself is, of course, totally ephemeral.
    Type whatever you like, boot from it, and the edits are gone for good.

    But editing /boot/grub/grub.cfg does persist as long as

    Therein lies the difference between my word collection and yours - as long as. It
    persists, but only until some _inevitable_ event occurs, as we both described:

    that particular grub.cfg is not reconfigured with grub-mkconfig/update-grub, which is done by kernel upgrades,
    and, of course, the very occasional Grub upgrades.

    Just a little editing of my text produces an equivalent result. Change

    does not persist. Every kernel addition or removal…
    to
    persists only until kernel addition or removal…

    and what I wrote is equivalent to what you wrote.

    I felt "does not persist" was too emphatic. Although kernel upgrades
    etc. are kind of inevitable, they are (or should be) active events,
    which take place when the sysadmin decides¹, and I felt that your
    words made it sound more passively driven by "external" events.

    I postprocess my grub.cfg files as a matter of routine, mainly
    to convert UUIDs to LABELs, but also to uniquify them, if I may
    use that word.

    Such postprocess is pointless here. The bulk of my custom.cfg entries use LABELS.
    None use UUIDs. And, grub.cfg entries are ignored, displayed onscreen as available
    selections only after scrolling past 20-30 or more custom.cfg entries:

    Sure, I would expect you to write custom.cfg entries exactly as you
    want them to appear. OTOH my postprocessing operates on the entries
    generated by Grub's scripts. Many years ago, I looked at the scripts
    to see whether I could make them produce LABELs instead of UUIDs, but
    it didn't appear to be trivial, so I just generate a little lookup
    array from the E:ID_FS_UUID and E:ID_FS_LABEL values in /run/udev/data/b*.

    ¹ Obviously I'm assuming no unattended upgrades and other such horrors.

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From peter@easthope.ca@21:1/5 to All on Sun Oct 27 05:20:01 2024
    Tim & all,

    From: Tim Woodall <debianuser@woodall.me.uk>
    Date: Fri, 25 Oct 2024 22:35:50 +0100 (BST)
    It's possibly not reading the grub.cfg you think it is reading. I've
    hit this problem before - IIRC grub uses the grub.cfg from the *first*
    place it finds one - this can even be a partition (or in my case a LV)
    that is not used anywhere on any system.

    That's it! The working system is in (hd0,gpt1) and update-grub2 was
    updating (hd0,gpt1)/boot/grub/grub.cfg. Grub2 was displaying the menu
    according to (hd0,gpt2)/boot/grub/grub.cfg which hadn't changed since
    an earlier installation.

    Therefore booted into (hd0,gpt1), as usual, and execute "grub-install /dev/sda". The fresh grub refers to (hd0,gpt1)/boot/grub/grub.cfg
    which has the stanza from (hd0,gpt1)/etc/grub.d/40_custom as intended.

    After that, a further problem. The grub ls command didn't show the
    USB attached drive containing the Void Linux system. A Web search
    found mention of grub command nativedisk which I added.

    cat /etc/grub.d/40_custom
    #!/bin/sh
    exec tail -n +3 $0
    # This file provides an easy way to add custom menu entries. Simply type the
    # menu entries you want to add after this comment. Be careful not to change
    # the 'exec tail' line above.
    #
    menuentry "Void linux"{
    insmod part_gpt
    insmod ext2
    echo 'Grub is running nativedisk to allow access to a USB store.'
    nativedisk
    echo 'These disks are accessible.'
    ls
    echo 'Setting root part.'
    set root='(usb2,gpt6)'
    echo 'Booting Linux.'
    linux /boot/vmlinuz-6.6.56_2 root=UUID=e5c7eb47-8d4c-49da-9038-09c27e8e8990 ro
    echo 'Loading ramdisk.'
    initrd /boot/initramfs-6.6.56_2.img
    }

    The USB attached drive was then reported by grub2 ls. Then another
    problem. Appears the drive doesn't respond quickly enough for the
    linux command to succeed. Grub2 shows this.
    ...
    Booting Linux.
    error: error communication with USB Mass Storage device.
    Loading ramdisk.
    error: you need to load the kernel first.

    Press any key to continue...

    A bug in grub2 nativedisk? The USB 2.0 adapter is too slow? Replace
    with a USB 3 adapter?

    This setup is needed only to configure the USB connected system. When
    working, the drive will be installed in another machine. Currently
    speed isn't required. Any ideas for a software solution?

    Thanks, ... P.

    --
    VoIP: +1 604 670 0140
    work: https://en.wikibooks.org/wiki/User:PeterEasthope

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to peter@easthope.ca on Sun Oct 27 16:00:01 2024
    On Sat 26 Oct 2024 at 20:55:11 (-0700), peter@easthope.ca wrote:
    Tim & all,

    From: Tim Woodall <debianuser@woodall.me.uk>
    Date: Fri, 25 Oct 2024 22:35:50 +0100 (BST)
    It's possibly not reading the grub.cfg you think it is reading. I've
    hit this problem before - IIRC grub uses the grub.cfg from the *first* place it finds one - this can even be a partition (or in my case a LV)
    that is not used anywhere on any system.

    That's it! The working system is in (hd0,gpt1) and update-grub2 was
    updating (hd0,gpt1)/boot/grub/grub.cfg. Grub2 was displaying the menu according to (hd0,gpt2)/boot/grub/grub.cfg which hadn't changed since
    an earlier installation.

    That earlier installation is presumably the bookworm that
    wrote (hd0,gpt2)/boot/grub/grub.cfg with the Grub deb12u1,
    which I pointed out in my first post, but wasn't confirmed
    by your follow-up.

    Therefore booted into (hd0,gpt1), as usual, and execute "grub-install /dev/sda". The fresh grub refers to (hd0,gpt1)/boot/grub/grub.cfg
    which has the stanza from (hd0,gpt1)/etc/grub.d/40_custom as intended.

    After that, a further problem. The grub ls command didn't show the
    USB attached drive containing the Void Linux system. A Web search
    found mention of grub command nativedisk which I added.

    I don't know anything about nativedisk or the distinctions between
    various types of driver.

    cat /etc/grub.d/40_custom
    #!/bin/sh
    exec tail -n +3 $0
    # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above.
    #
    menuentry "Void linux"{
    insmod part_gpt
    insmod ext2
    echo 'Grub is running nativedisk to allow access to a USB store.'
    nativedisk
    echo 'These disks are accessible.'
    ls
    echo 'Setting root part.'
    set root='(usb2,gpt6)'
    echo 'Booting Linux.'
    linux /boot/vmlinuz-6.6.56_2 root=UUID=e5c7eb47-8d4c-49da-9038-09c27e8e8990 ro
    echo 'Loading ramdisk.'
    initrd /boot/initramfs-6.6.56_2.img
    }

    The USB attached drive was then reported by grub2 ls. Then another
    problem. Appears the drive doesn't respond quickly enough for the
    linux command to succeed. Grub2 shows this.
    ...
    Booting Linux.
    error: error communication with USB Mass Storage device.
    Loading ramdisk.
    error: you need to load the kernel first.

    Press any key to continue...

    A bug in grub2 nativedisk? The USB 2.0 adapter is too slow? Replace
    with a USB 3 adapter?

    This setup is needed only to configure the USB connected system. When working, the drive will be installed in another machine. Currently
    speed isn't required. Any ideas for a software solution?

    AIUI Grub needs to be small in order to fit in the nooks and cranies
    where it secretes itself (unless you give it a BIOS Boot Partition).
    I imagine that when Grub is installed, it makes sure it provides the
    modules needed to communicate with all the partitions that it will
    need to when it is asked to boot them, and perhaps no more.

    But if you install Grub without running os-prober, it might not know
    to add the appropriate modules in Void's menuentry. So I would try
    booting into Grub, selecting the Void menuentry, typing E, and adding
    insmod lines for usb… modules there are, before you exit and
    type Return. Perhaps filesystem modules too.

    OTO you could just let os-prober run when you build Grub and let it
    do the job for you. Is there any reason why you don't want to run
    os-prober? Sorry, I'm repeating myself.

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From peter@easthope.ca@21:1/5 to All on Sun Oct 27 19:50:02 2024
    From: David Wright <deblis@lionunicorn.co.uk>
    Date: Sun, 27 Oct 2024 09:56:45 -0500
    That earlier installation is presumably the bookworm that
    wrote (hd0,gpt2)/boot/grub/grub.cfg with the Grub deb12u1,
    which I pointed out in my first post, but wasn't confirmed
    by your follow-up.

    Yes, the multiple details have confused me.

    I don't know anything about nativedisk or the distinctions between
    various types of driver.

    The only documantation I've found is here. https://www.gnu.org/software/grub/manual/grub/grub.html#nativedisk

    "firmware disk drivers" means drivers in the machine BIOS?
    "native ones" means drivers in Grub?
    "native disk drives" appears to be a typo. I read it as "native disk drivers".

    Grub2 documentation needs work.

    OTO you could just let os-prober run when you build Grub and let it
    do the job for you. Is there any reason why you don't want to run
    os-prober? Sorry, I'm repeating myself.

    A search of "os-prober security" finds several pages. os-prober is
    disabled by default in Archlinux and other respected distributions.

    For interest, I enabled os-prober again in /etc/default/grub and ran grub-install /dev/sda. lsblk reports the USB connected /dev/sdc6
    where Void is installed. Nevertheless the only stanza in
    /boot/grub/grub.cfg for Void is from my entry in
    /etc/grub.d/40_custom. Os-prober tried and failed.

    A bug in os-prober? A problem with the HDD? A problem with the
    SATA-USB2 adapter? A bug in grub2?

    An interesting observation is that the USB-connected Void system boots
    with no snags when selected directly in the BIOS. To me, that
    suggests a problem in grub2 or os-prober.

    Rather than spend more time investigating, will put the HDD in the
    target machine and work there. Remove some of the complications.

    Regards, ... P.


    --
    VoIP: +1 604 670 0140
    work: https://en.wikibooks.org/wiki/User:PeterEasthope

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to David Wright on Mon Oct 28 12:10:01 2024
    On Sun, Oct 27, 2024 at 22:42:15 -0500, David Wright wrote:
    type
    set -x
    before you run os-prober and
    set +x
    afterwards, and track what it does.

    os-prober is a script, so that won't work as written. You'd either
    need to modify os-prober (change the second line from "set -e" to
    "set -ex" for example) and then run it; or do something like:

    script
    set -x
    source /usr/bin/os-prober
    exit

    (That assumes your interactive shell is bash.)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From peter@easthope.ca@21:1/5 to All on Mon Oct 28 17:30:01 2024
    From: David Wright <deblis@lionunicorn.co.uk>
    Date: Sun, 27 Oct 2024 22:42:15 -0500
    Well, it could be because Void apparently isn't a glibc OS.

    Thanks. Haven't thought about that.

    You could check /usr/lib/os-probes/mounted/90linux-distro
    to see whether the first test would succeed. Or a lazy way:
    type
    set -x
    before you run os-prober and
    set +x
    afterwards, and track what it does. You'd probably want to
    capture the output as it could be voluminous; it looks for
    linux systems just about last.

    You've lost me there. Which first test? Where is "set"?

    Well, it's presumably not Grub, as you say you can boot Void
    from your handcrafted menuentry once you've booted into the
    correct grub.cfg.

    The handcrafted Void stanza allowed booting 2 or 3 times. In at
    least a dozen other instances it failed and Grub returned to the menu.

    BTW I forgot to mention, your Grub ls command, which you reported
    on earlier, will fail to see the Void OS because there's no
    insmod part_gpt command in the grub.cfg until you press Return
    on the Void menuentry. So that's ok for booting the Void entry,
    but up until that moment, Grub can't read GPT partition tables
    without the part_gpt. So type an insmod part_gpt command first,
    if you need to type ls.

    ls is in the stanza in 40_custom.
    ...
    nativedisk
    echo 'These disks are accessible.'
    ls
    echo 'Setting root part.'
    set root='(usb2,gpt6)'
    echo 'Booting Linux.'
    linux ...
    The grub commands are executed one by one; correct? (usb2,gpt6)
    should appear in the output of ls before 'set root ...' is executed.

    Rather than spend more time investigating, will put the HDD in the
    target machine and work there.

    I hadn't realised there was one.

    Yes. I brought the disk from the "Void machine" and connected, via
    a USB 2.0 adapter, to a Debian system at home. Here, installed
    Void and worked on configuration. Soon the "Void disk" will return
    to the "Void machine".

    BTW I assume your second disk, being GPT, has a BIOS Boot partition?

    Correct.

    Or is this target machine going to boot with UEFI, in which case
    you need an EFI partition.

    The disk also has an EFI partition. I couldn't make EFI boot succeed. Therefore set the "hidden" flag on the EFI part and fell back to BIOS
    boot.

    I think moving disks between differently
    booting machines can be "fun"; it's why my own disks typically have
    both a BIOS Boot partition and an EFI partition. The former is only
    3MB and ends at sector 8191; the latter can be borrowed for swap
    in MBR machines.

    Installing and configuring Void at home is convenient. Will soon see what happens when the disk is in the machine where it belongs.

    Thx, ... P.

    --
    VoIP: +1 604 670 0140
    work: https://en.wikibooks.org/wiki/User:PeterEasthope

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Greg Wooledge@21:1/5 to David Wright on Fri Nov 1 12:10:01 2024
    On Thu, Oct 31, 2024 at 23:10:22 -0500, David Wright wrote:
    On Mon 28 Oct 2024 at 07:08:12 (-0400), Greg Wooledge wrote:
    On Sun, Oct 27, 2024 at 22:42:15 -0500, David Wright wrote:
    type
    set -x
    before you run os-prober and
    set +x
    afterwards, and track what it does.

    os-prober is a script, so that won't work as written. You'd either
    need to modify os-prober (change the second line from "set -e" to
    "set -ex" for example) and then run it; or do something like:

    script
    set -x
    source /usr/bin/os-prober
    exit

    (That assumes your interactive shell is bash.)

    I see what you mean. I guess one could make the shell explicit
    and then set x with:

    script
    bash -x /usr/bin/os-prober
    exit

    (I can't remember where I saw that construction.)

    Yeah, that would actually be better, because it doesn't assume anything
    about your interactive shell. Even better still would be
    "sh -x /usr/bin/os-prober", since it's a #!/bin/sh script, not a bash
    script.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From peter@easthope.ca@21:1/5 to All on Sat Nov 2 16:10:02 2024
    From: peter@easthope.ca
    Date: 27 Oct 2024 11:26:12 -0700
    Rather than spend more time investigating, will put the HDD in the
    target machine and work there. Remove some of the complications.

    Happened to connect a USB hub before dealing with the Void drive.
    Noticed the USB socket where the Void drive was connected had a black
    plastic contact carrier and another socket had a blue carrier. Blue is
    USB 3. Black isn't? So plugged the USB adapter with the Void drive
    into the blue socket. Voila; Grub was able to boot the Void system
    reliably. Spent the better part of a day investigating when a USB plug
    just needed moving. =8~/

    In case anyone is interested, these topics remain.

    * Why does the ThinkCentre have differing USB sockets?

    * With the adapter labeled USB 2.0, why is plugging in USB 3 necessary
    to boot the external system?

    * The Grub2 manual could explain more about USB and the nativedisk
    command. In fact, the manual needs work in many places.

    Regards, ... P.

    --
    VoIP: +1 604 670 0140
    work: https://en.wikibooks.org/wiki/User:PeterEasthope

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to peter@easthope.ca on Mon Nov 4 05:50:01 2024
    On Sat 02 Nov 2024 at 07:46:33 (-0700), peter@easthope.ca wrote:
    From: peter@easthope.ca
    Date: 27 Oct 2024 11:26:12 -0700
    Rather than spend more time investigating, will put the HDD in the
    target machine and work there. Remove some of the complications.

    Happened to connect a USB hub before dealing with the Void drive.
    Noticed the USB socket where the Void drive was connected had a black
    plastic contact carrier and another socket had a blue carrier. Blue is
    USB 3. Black isn't? So plugged the USB adapter with the Void drive
    into the blue socket. Voila; Grub was able to boot the Void system
    reliably. Spent the better part of a day investigating when a USB plug
    just needed moving. =8~/

    In case anyone is interested, these topics remain.

    * Why does the ThinkCentre have differing USB sockets?

    Well, the anecdote above suggests that one reason might be to offer
    reliable ports for plugging USB2 devices into.

    Using a USB2 device on USB3 slows the interface tenfold. I don't know
    whether neighbouring USB3 sockets' speed can influence each other,
    which would mean not mixing USB2 and USB3 devices on such sockets.

    One obvious reason might be cost: USB3 sockets are more complex,
    with 9 connections rather than 4, and there's the necessity to
    support compatibility with USB2.

    * With the adapter labeled USB 2.0, why is plugging in USB 3 necessary
    to boot the external system?

    Who knows. You've got, what, a SATA disk connected to an adapter
    connected to a hub connected to oldish computer? Or is the hub
    separate? IDK. Anyway, are all these connectors in good condition?
    Perhaps the sockets are a bit worn. Perhaps the compatibility
    switching is unreliable. Perhaps it's mobo or firmware related.

    I've got, or had, computers with USB ports that don't work with,
    or boot from, certain sticks, and computers that only boot from
    sticks in certain ports. It's par for the course.

    * The Grub2 manual could explain more about USB and the nativedisk
    command. In fact, the manual needs work in many places.

    Maintainers may need feedback about what and where needs attention.

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dan Purgert@21:1/5 to peter@easthope.ca on Mon Nov 4 13:50:01 2024
    On Nov 02, 2024, peter@easthope.ca wrote:
    From: peter@easthope.ca
    Date: 27 Oct 2024 11:26:12 -0700
    Rather than spend more time investigating, will put the HDD in the
    target machine and work there. Remove some of the complications.

    Happened to connect a USB hub before dealing with the Void drive.
    Noticed the USB socket where the Void drive was connected had a black plastic contact carrier and another socket had a blue carrier. Blue is
    USB 3. Black isn't? So plugged the USB adapter with the Void drive
    into the blue socket. Voila; Grub was able to boot the Void system reliably. Spent the better part of a day investigating when a USB plug
    just needed moving. =8~/

    In case anyone is interested, these topics remain.

    * Why does the ThinkCentre have differing USB sockets?

    USB3 is (was) expensive, so it's a cost-reducing thing. People didn't
    have all that much in the way of USB-3 devices, so why bother making
    every port USB-3?


    * With the adapter labeled USB 2.0, why is plugging in USB 3 necessary
    to boot the external system?

    USB3-only drive? Error in the BIOS settings to only allow USB3 booting?

    --
    |_|O|_|
    |_|_|O| Github: https://github.com/dpurgert
    |O|O|O| PGP: DDAB 23FB 19FA 7D85 1CC1 E067 6D65 70E5 4CE7 2860

    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEE3asj+xn6fYUcweBnbWVw5UznKGAFAmcowq0ACgkQbWVw5Uzn KGDD3w//aYMaUwB+JfnLjZfeU24rGjZeUKGiGStCl/eQq7Y94HSXUI1JLpbe+dKK Na61lJWoPajdNQasf2XXvW9oROdaaR0Q88PAa6AcXrPFNnuuc03EtHL0r3xqNi4t aIIvfflfRfrmQ9g5h25eGU8ssPr909IFDMJ5NwqPPsMdVQJJg1gE3ILlGrjqZTGy qeCZ+bNy0uDpzfl7MR73582QJ+W+GLmhJF/lmT3RCQsDLrWDEG3JPj+LQOFt/c72 P1PtMzMSb9iygEbjg/MmOWXuuRIMFPtCYQ62XaDHSfaXg3n5GVtwCuC9BP1F4u6Y gtCUA93nABYiuMdirJn9uLZG7DV21CRFergo9rc7ISk2FwpBcRCw1/KBPVUP/sfs NlY68yyXRCoB84pDqyEQINsW7ycYUnNchsKfg/CtqZm3G2vzI5YtRHJ7uDOG0lkG cmIYNRwRIWHQROuHvgmbFJHBPUuJHrqz7245Iu6Sda6+ge33m0ivEctpL05Jh73A HR4RpAX91mu4GNh1Zb1h8IO/j5TSsOWG+WjlAsc8GbONXIpMCAWajEGsoTER1TQe bmeUYh+cRIWoabjvBNt5ayt93/lAvI13A7YM33nD6o34T5u/73c6RU8JwGAp49B8 6A2fCRgPgaZBVM6SyNFq69hAU3Rb+5MDbbsXuYvJ7msosepISWg=
    =j1x3
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Us
  • From peter@easthope.ca@21:1/5 to All on Sun Nov 10 02:30:02 2024
    From: David Wright <deblis@lionunicorn.co.uk>
    Date: Fri, 25 Oct 2024 21:12:21 -0500
    So you need to boot into your bullseye system, and run
    # grub-install /dev/sdX
    where X is probably a, your first disk.

    Done. Resulting menu here.
    https://easthope.ca/GrubMenu1.jpg

    For reference, this was the earlier menu.
    https://easthope.ca/GrubMenu.jpg

    I'm not sure why you want to avoid running os-prober:

    If I avoid dopey blunders, 40_custom can achieve the same result
    while requiring clearer thought. Also there's security. https://lists.ubuntu.com/archives/ubuntu-devel/2021-December/041769.html

    Thanks! ... P.

    --
    VoIP: +1 604 670 0140
    work: https://en.wikibooks.org/wiki/User:PeterEasthope

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From peter@easthope.ca@21:1/5 to All on Sun Nov 10 04:00:01 2024
    The ThinkCentre has one blue and one black, as in the 2nd photo here. https://en.wikipedia.org/wiki/USB#System_design

    * With the adapter labeled USB 2.0, why is plugging in USB 3 necessary
    to boot the external system?

    From: David Wright <deblis@lionunicorn.co.uk>
    Date: Sun, 3 Nov 2024 22:43:19 -0600
    Who knows. You've got, what, a SATA disk connected to an adapter ...

    Correct.

    ... is the hub separate?

    Yes. The hub is only for keyboard, mouse and charging a phone or
    camera.

    Anyway, are all these connectors in good condition?

    I'd need to investigate. With the setup working now, examination of
    connectors is a low priority.

    I've got, or had, computers with USB ports that don't work with, or
    boot from, certain sticks, and computers that only boot from sticks in
    certain ports. It's par for the course.

    OK, thanks.

    Maintainers may need feedback about what and where [grub2 doc] needs attention.

    Added to my list.

    ... P.

    --
    VoIP: +1 604 670 0140
    work: https://en.wikibooks.org/wiki/User:PeterEasthope

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Wright@21:1/5 to peter@easthope.ca on Tue Nov 12 05:00:02 2024
    On Sat 09 Nov 2024 at 17:03:53 (-0700), peter@easthope.ca wrote:
    From: David Wright <deblis@lionunicorn.co.uk>
    Date: Fri, 25 Oct 2024 21:12:21 -0500
    So you need to boot into your bullseye system, and run
    # grub-install /dev/sdX
    where X is probably a, your first disk.

    Done. Resulting menu here.
    https://easthope.ca/GrubMenu1.jpg

    For reference, this was the earlier menu.
    https://easthope.ca/GrubMenu.jpg

    I've always felt it a failing that Grub's mkconfig strips the
    suite and root disk information from the principal menuentries.

    I'm not sure why you want to avoid running os-prober:

    If I avoid dopey blunders, 40_custom can achieve the same result
    while requiring clearer thought. Also there's security. https://lists.ubuntu.com/archives/ubuntu-devel/2021-December/041769.html

    Fair enough: I don't know the environment of your machines.
    For single user machines like mine, it's difficult to see
    how os-prober's vulnerabilities would be exploited.

    Cheers,
    David.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)