• problem with loading installer (hard disk method)

    From lou@21:1/5 to All on Thu Dec 29 02:20:01 2022
    This is a multi-part message in MIME format.
    menuentry 'New Install' {
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos1)'
    linux /boot/newinstall/vmlinuz
    initrd /boot/newinstall/initrd.gz
    }

    above is from installation manual, i use it, grub says can't find vmlinuz
    i boot installer from buster, installed at sda4,
    i wonder if i shall change hd0 to hd3 in line 4 above

    <html>
    <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    </head>
    <body>
    <pre class="screen">menuentry 'New Install' {
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos1)'
    linux /boot/newinstall/vmlinuz
    initrd /boot/newinstall/initrd.gz
    }

    above is from installation manual, i use it, grub says can't find vmlinuz
    i boot installer from buster, installed at sda4,
    i wonder if i shall change hd0 to hd3 in line 4 above
    </pre>
    </body>
    </html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Max Nikulin@21:1/5 to lou on Thu Dec 29 03:00:02 2022
    On 29/12/2022 08:10, lou wrote:
    set root='(hd0,msdos1)'

    i boot installer from buster, installed at sda4,
    i wonder if i shall change hd0 to hd3 in line 4 above

    If you have multiple hard drives you may need to change hd0, but at
    first it is necessary to change partition from msdos1 to msdos4 or gpt4.
    It depends on partition types (label): DOS MBR or GPT.

    Grub command line allows to try various variants interactively and to
    boot installer without modifying of the config file.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From lou@21:1/5 to All on Thu Dec 29 03:30:01 2022
    Thank Max, but i have solved my problem on my own

    but i have other problem, installer says

    possible mismatch version between iso file and kernel

    i have downloaded  debian-11.6.0-amd64-netinst.iso at vfat sda1

    i prefer site http://ftp.sunet.se/debian/

    which vmlinuz and initrd set shall i use?

    btw imo hard disk method is very error prone

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From lou@21:1/5 to All on Thu Dec 29 05:00:01 2022
    This is a multi-part message in MIME format.
    i have solved my 2nd problem on my own, thanks anyway!

    but i am not sure where i go wrong last time

    i have 2 suggestions:

    1st, (hd0,msdos1) in installation manual is too mysterious, i suggest adding some explanation

    2nd, option name msdos1 in grub is too misleading, i suggest changing it to partition1





    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
    <p>i have solved my 2nd problem on my own, thanks anyway!</p>
    <p>but i am not sure where i go wrong last time</p>
    <p>i have 2 suggestions:<br>
    </p>
    <pre class="screen">1st, (hd0,msdos1) in installation manual is too mysterious, i suggest adding some explanation

    2nd, option name msdos1 in grub is too misleading, i suggest changing it to partition1



    </pre>
    <p><br>
    </p>
    <br>
    </body>
    </html>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Max Nikulin@21:1/5 to lou on Thu Dec 29 16:10:01 2022
    On 29/12/2022 10:55, lou wrote:
    i have solved my 2nd problem on my own, thanks anyway!

    Great

    i have 2 suggestions:

    https://www.debian.org/releases/bullseye/amd64/apes02.en.html
    E.2. Contributing to This Document

    If you have problems or suggestions regarding this document, you should probably submit them as a bug report against the package
    installation-guide. See the reportbug package or read the online documentation of the Debian Bug Tracking System.

    Suggestions sent to this list may be lost unnoticed by the developers.

    I suppose, loading installer from hard drive is for advanced users.
    There is should be balance for amount of details in Debian manuals. It
    is grub manual that should cover the topic thoroughly.

    Notice that you having an .iso file stored on a hard drive, it is
    possible to boot it directly. A couple of years ago I tried

    menuentry "ISO Ubuntu-20.10 amd64" {
    set isofile="/ubuntu/ubuntu-20.10-desktop-amd64.iso"
    loopback loop (hd0,5)$isofile
    linux (loop)/casper/vmlinuz boot=casper
    iso-scan/filename=$isofile noprompt noeject toram
    initrd (loop)/casper/initrd
    }

    linux and initrd commands are taken from the grub configuration inside
    the iso file.

    The grml-rescueboot package uses the same approach.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Brian@21:1/5 to Max Nikulin on Thu Dec 29 19:30:01 2022
    On Thu 29 Dec 2022 at 22:07:15 +0700, Max Nikulin wrote:

    On 29/12/2022 10:55, lou wrote:
    i have solved my 2nd problem on my own, thanks anyway!

    Great

    Two problems encountered. Two problems resolved in an unknown
    way.

    i have 2 suggestions:

    https://www.debian.org/releases/bullseye/amd64/apes02.en.html
    E.2. Contributing to This Document

    If you have problems or suggestions regarding this document, you should probably submit them as a bug report against the package installation-guide. See the reportbug package or read the online documentation of the Debian Bug Tracking System.

    Suggestions sent to this list may be lost unnoticed by the developers.

    I suppose, loading installer from hard drive is for advanced users. There is should be balance for amount of details in Debian manuals. It is grub manual that should cover the topic thoroughly.

    I doubt GRUB would act on (hd0,partition1).

    Notice that you having an .iso file stored on a hard drive, it is possible
    to boot it directly. A couple of years ago I tried

    menuentry "ISO Ubuntu-20.10 amd64" {
    set isofile="/ubuntu/ubuntu-20.10-desktop-amd64.iso"
    loopback loop (hd0,5)$isofile
    linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile noprompt noeject toram
    initrd (loop)/casper/initrd
    }

    linux and initrd commands are taken from the grub configuration inside the iso file.

    The grml-rescueboot package uses the same approach.

    GRUB's loopback facility will not work with installer images.
    They do not contain iso-scan.

    https://bugs.debian.org/618000
    https://bugs.debian.org/724931

    BTW: I would assiciate casper with Ubuntu, not Debian.

    --
    Brian.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From lou@21:1/5 to Brian on Thu Dec 29 22:50:02 2022
    Thank Brian and Max!

    On 12/30/22 01:42, Brian wrote:
    Two problems encountered. Two problems resolved in an unknown
    way.

    i suppose many users here are expert, explanation isn't necessary. hard
    disk installation method doesn't work, usually because user or i make
    mistake

    I doubt GRUB would act on (hd0,partition1).

    two options count from 0 and 1 respectively, it's easy to make mistake
    here. if same counting convention and better names are used, user can
    edit them without reading grub manual

    Max has provided helpful info for me. for many users and me, writing iso
    image to usb stick is easier than booting with grub

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew M.A. Cater@21:1/5 to lou on Thu Dec 29 23:20:01 2022
    On Fri, Dec 30, 2022 at 05:46:20AM +0800, lou wrote:
    Thank Brian and Max!

    On 12/30/22 01:42, Brian wrote:
    Two problems encountered. Two problems resolved in an unknown
    way.

    i suppose many users here are expert, explanation isn't necessary. hard disk installation method doesn't work, usually because user or i make mistake


    Hi lou,

    Hard disk installation isn't very widely used so doesn't always get many people testing what doesn't work. Explanation *is* very necessary, so that we can
    fix what doesn't work. if the problem is that you made a mistake, then it
    is even worth writing "I did this because the documents anren't clear - that was a mistake and it resulted in XYZ happening" - then that is useful to somebody.

    I doubt GRUB would act on (hd0,partition1).

    two options count from 0 and 1 respectively, it's easy to make mistake here. if same counting convention and better names are used, user can edit them without reading grub manual


    The internals of GRUB count differently and are subtly different: yes, that's known and we have to explain that from time to time.

    Max has provided helpful info for me. for many users and me, writing iso image to usb stick is easier than booting with grub


    I agree in one sense: I always suggest writing the firmware .iso to a
    USB stick (using dd or Rufus in dd mode if you use Windows to write it)
    but it's worth your telling us how to run a hard disk install so that it
    works. Someone else may want to run a hard disk install in the future
    for reasons of their own.

    Thank you for your interest and your help,

    Andy Cater

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Max Nikulin@21:1/5 to Brian on Fri Dec 30 16:10:01 2022
    On 30/12/2022 00:42, Brian wrote:
    I doubt GRUB would act on (hd0,partition1).

    Perhaps the idea was that "partition1" may be "msdos1" or "gpt1". I do
    not have some specific suggestion how to improve https://d-i.debian.org/manual/en.amd64/ch05s01.html#boot-initrd

    On Thu 29 Dec 2022 at 22:07:15 +0700, Max Nikulin wrote:
    Notice that you having an .iso file stored on a hard drive, it is possible >> to boot it directly.
    ...
    GRUB's loopback facility will not work with installer images.
    They do not contain iso-scan.

    https://bugs.debian.org/618000
    https://bugs.debian.org/724931

    My bad, thank you for clarification. Is there a reason why these report
    are not merged?

    I rarely need a "hardware" install media, for a VM an .iso file can be
    used directly to emulate cdrom. I believed that Ubuntu uses features
    available everywhere.

    Actually when I need a bootable USB, I use non-destructive method:
    remove old files and extract content of an .iso file using 7zip or
    bsdtar. It is enough for UEFI, for BIOS a couple of additional steps
    were required to install syslinux and to adjust its config.

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