Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #235906

Re: A Grub Boot Question about initrd

From Greg Wooledge <greg@wooledge.org>
Newsgroups linux.debian.user
Subject Re: A Grub Boot Question about initrd
Date 2021-06-06 01:20 +0200
Message-ID <CmNK9-Md-5@gated-at.bofh.it> (permalink)
References <CmIAN-62P-1@gated-at.bofh.it> <CmK9z-73B-1@gated-at.bofh.it> <CmM1I-89w-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sat, Jun 05, 2021 at 04:28:20PM -0500, Martin McCormick wrote:
> There's 1 UUID for the root file system in /boot/grub/grub.cfg
> which is the file one must not normally edit by hand.  It 
> reads
> 
> menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-658da8df-942e-4ad7-8c5b-695f2f2eb4ed' {

Yes, there's probably a UUID for the root file system somewhere in this
entry, in the part you omitted.

The part you included just has a *name* which was automatically generated
to refer to this boot option.  This name happens to include the same UUID
that the root file system designation uses, but this name is only a name,
and does not invoke any functionality.

Here's part of mine, for comparison:


menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c4691ccb-2090-491e-8e82-d7cc822db04a' {
        load_video
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_gpt
        insmod ext2
        set root='hd0,gpt7'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt7 --hint-efi=hd0,gpt7 --hint-baremetal=ahci0,gpt7  c4691ccb-2090-491e-8e82-d7cc822db04a
        else
          search --no-floppy --fs-uuid --set=root c4691ccb-2090-491e-8e82-d7cc822db04a
        fi
        echo    'Loading Linux 5.10.0-7-amd64 ...'
        linux   /boot/vmlinuz-5.10.0-7-amd64 root=UUID=c4691ccb-2090-491e-8e82-d7cc822db04a ro  
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-5.10.0-7-amd64
}


The actual UUID for the root file system appears down at the bottom, three
lines above the closing curly brace.  It's where it says root=UUID=....

Of course, this is just one menu entry.  I have three kernels installed
at the moment, so I have 6 of these menu entries, 2 per kernel (one
called "simple" and one called "advanced").

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

A Grub Boot Question about initrd "Martin McCormick" <martin.m@suddenlink.net> - 2021-06-05 19:50 +0200
  Re: A Grub Boot Question about initrd deloptes <deloptes@gmail.com> - 2021-06-05 20:10 +0200
  Re: A Grub Boot Question about initrd Reco <recoverym4n@enotuniq.net> - 2021-06-05 20:30 +0200
    Re: A Grub Boot Question about initrd "Martin McCormick" <martin.m@suddenlink.net> - 2021-06-05 21:30 +0200
  Re: A Grub Boot Question about initrd Felix Miata <mrmazda@earthlink.net> - 2021-06-05 21:30 +0200
    Re: A Grub Boot Question about initrd "Martin McCormick" <martin.m@suddenlink.net> - 2021-06-05 23:30 +0200
      Re: A Grub Boot Question about initrd Greg Wooledge <greg@wooledge.org> - 2021-06-06 01:20 +0200
      Re: A Grub Boot Question about initrd Felix Miata <mrmazda@earthlink.net> - 2021-06-06 01:50 +0200
      Re: A Grub Boot Question about initrd Cindy Sue Causey <butterflybytes@gmail.com> - 2021-06-06 02:20 +0200
        Re: A Grub Boot Question about initrd Gene Heskett <gheskett@shentel.net> - 2021-06-06 04:30 +0200
        Re: A Grub Boot Question about initrd "Andrew M.A. Cater" <amacater@einval.com> - 2021-06-06 14:30 +0200
  Re: A Grub Boot Question about initrd Andrei POPESCU <andreimpopescu@gmail.com> - 2021-06-06 13:20 +0200
    Re: A Grub Boot Question about initrd "Martin McCormick" <martin.m@suddenlink.net> - 2021-06-06 20:40 +0200
      Re: A Grub Boot Question about initrd Felix Miata <mrmazda@earthlink.net> - 2021-06-06 22:40 +0200
        Re: A Grub Boot Question about initrd "Martin McCormick" <martin.m@suddenlink.net> - 2021-06-07 00:00 +0200
          Re: A Grub Boot Question about initrd "Martin McCormick" <martin.m@suddenlink.net> - 2021-06-07 03:10 +0200
          Re: A Grub Boot Question about initrd Felix Miata <mrmazda@earthlink.net> - 2021-06-07 04:40 +0200
            Re: A Grub Boot Question about initrd "Martin McCormick" <martin.m@suddenlink.net> - 2021-06-07 14:20 +0200
            Grub Success at Last "Martin McCormick" <martin.m@suddenlink.net> - 2021-06-09 00:20 +0200
              Re: Grub Success at Last, but way offtopic Gene Heskett <gheskett@shentel.net> - 2021-06-09 01:00 +0200
    Re: A Grub Boot Question about initrd David Wright <deblis@lionunicorn.co.uk> - 2021-06-07 20:40 +0200

csiph-web