help-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: on booting my vm I get grub> prompt instead of menu


From: John Covici
Subject: Re: on booting my vm I get grub> prompt instead of menu
Date: Fri, 27 Jul 2018 16:55:23 -0400
User-agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/26 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

OK, so I found the script, its kind of broke, but here are the
results.

Note that the fstab it is giving you is the wrong one, because it
could not mount the lvm volumes.  That should make no difference in
the boot, unless I am missing something.

                  Boot Info Script 0.61      [1 April 2012]


============================= Boot Info Summary: ===============================

 => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    in partition 135 for .

sda1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        /grub/grub.cfg

sda2: __________________________________________________________________________

    File system:       LVM2_member
    Boot sector type:  -
    Boot sector info: 

testvm-root': __________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info: 
    Mounting failed:   mount: unknown filesystem type ''

testvm-usr': ___________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info: 
    Mounting failed:   mount: unknown filesystem type ''
mount: unknown filesystem type ''

testvm-var': ___________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info: 
    Mounting failed:   mount: unknown filesystem type ''
mount: unknown filesystem type ''
mount: unknown filesystem type ''

testvm-home': __________________________________________________________________

    File system:       
    Boot sector type:  Unknown
    Boot sector info: 
    Mounting failed:   mount: unknown filesystem type ''
mount: unknown filesystem type ''
mount: unknown filesystem type ''
mount: unknown filesystem type ''

sdb: ___________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sdc: ___________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Debian GNU/Linux 8
    Boot files:        /boot/grub/grub.cfg /etc/fstab

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 75.8 GiB, 81335943168 bytes, 158859264 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1               2,048     2,099,199     2,097,152  83 Linux
/dev/sda2           2,099,200   158,859,263   156,760,064  83 Linux


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/mapper/testvm-home 8deb7960-9cc3-4be7-9a0a-c47d0b38453f   ext4       home
/dev/mapper/testvm-root 0f95abc0-6c0e-46fc-9049-a559602bf1ed   ext4       root
/dev/mapper/testvm-usr 294f89f2-9384-4d6b-895c-2389505b1251   ext4       usr
/dev/mapper/testvm-var f881c143-49ae-4d51-a7be-1433aa2fd282   ext4       var
/dev/sda1        9cf3da0c-6013-483a-a5aa-705bd243783b   ext4       boot
/dev/sda2        FAy4v2-mD5R-5qCY-xaxR-nQUg-aNf1-widr3D LVM2_member 
/dev/sdb         3b646360-6f21-4e41-bcfc-b13465e21dff   swap       
/dev/sdc         b52e6e84-3d77-4ec1-a69e-38af31db8674   ext4       

========================= "ls -R /dev/mapper/" output: =========================

/dev/mapper:
control
testvm-home
testvm-root
testvm-usr
testvm-var

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/mapper/testvm-home /home                    ext4       
(rw,relatime,data=ordered)
/dev/mapper/testvm-root /                        ext4       
(rw,relatime,errors=remount-ro,data=ordered)
/dev/mapper/testvm-usr /usr                     ext4       
(rw,relatime,data=ordered)
/dev/mapper/testvm-var /var                     ext4       
(rw,relatime,data=ordered)
/dev/sda1        /boot                    ext4       (rw,relatime,data=ordered)


============================= sda1/grub/grub.cfg: ==============================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1
terminal_input serial
terminal_output serial
if [ "${recordfail}" = 1 ] ; then
  set timeout=-1
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=10
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=10
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
        set gfxpayload="${1}"
}
set linux_gfx_mode=text
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu 
--class os $menuentry_id_option 
'gnulinux-simple-0f95abc0-6c0e-46fc-9049-a559602bf1ed' {
        gfxmode $linux_gfx_mode
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 
--hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  
9cf3da0c-6013-483a-a5aa-705bd243783b
        else
          search --no-floppy --fs-uuid --set=root 
9cf3da0c-6013-483a-a5aa-705bd243783b
        fi
        echo    'Loading Linux 3.16.0-6-amd64 ...'
        linux   /vmlinuz-3.16.0-6-amd64 root=/dev/mapper/testvm-root ro 
console=ttyS0,19200n8 net.ifnames=0 
        echo    'Loading initial ramdisk ...'
        initrd  /initrd.img-3.16.0-6-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 
'gnulinux-advanced-0f95abc0-6c0e-46fc-9049-a559602bf1ed' {
        menuentry 'Debian GNU/Linux, with Linux 3.16.0-6-amd64' --class debian 
--class gnu-linux --class gnu --class os $menuentry_id_option 
'gnulinux-3.16.0-6-amd64-advanced-0f95abc0-6c0e-46fc-9049-a559602bf1ed' {
                gfxmode $linux_gfx_mode
                insmod gzio
                if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; 
fi
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root 
--hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  
9cf3da0c-6013-483a-a5aa-705bd243783b
                else
                  search --no-floppy --fs-uuid --set=root 
9cf3da0c-6013-483a-a5aa-705bd243783b
                fi
                echo    'Loading Linux 3.16.0-6-amd64 ...'
                linux   /vmlinuz-3.16.0-6-amd64 root=/dev/mapper/testvm-root ro 
console=ttyS0,19200n8 net.ifnames=0 
                echo    'Loading initial ramdisk ...'
                initrd  /initrd.img-3.16.0-6-amd64
        }
        menuentry 'Debian GNU/Linux, with Linux 3.16.0-6-amd64 (recovery mode)' 
--class debian --class gnu-linux --class gnu --class os $menuentry_id_option 
'gnulinux-3.16.0-6-amd64-recovery-0f95abc0-6c0e-46fc-9049-a559602bf1ed' {
                gfxmode $linux_gfx_mode
                insmod gzio
                if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; 
fi
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos1'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root 
--hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  
9cf3da0c-6013-483a-a5aa-705bd243783b
                else
                  search --no-floppy --fs-uuid --set=root 
9cf3da0c-6013-483a-a5aa-705bd243783b
                fi
                echo    'Loading Linux 3.16.0-6-amd64 ...'
                linux   /vmlinuz-3.16.0-6-amd64 root=/dev/mapper/testvm-root ro 
single console=ttyS0,19200n8 net.ifnames=0
                echo    'Loading initial ramdisk ...'
                initrd  /initrd.img-3.16.0-6-amd64
        }
}

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

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_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/41_custom ###
--------------------------------------------------------------------------------

=================== sda1: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)


=========================== sdc/boot/grub/grub.cfg: ============================

--------------------------------------------------------------------------------
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

serial --speed=19200 --unit=0 --word=8 --parity=no --stop=1
terminal_input serial
terminal_output serial
if [ "${recordfail}" = 1 ] ; then
  set timeout=-1
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=10
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=10
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
        set gfxpayload="${1}"
}
set linux_gfx_mode=text
export linux_gfx_mode
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu 
--class os $menuentry_id_option 
'gnulinux-simple-b52e6e84-3d77-4ec1-a69e-38af31db8674' {
        gfxmode $linux_gfx_mode
        insmod gzio
        if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
        insmod part_msdos
        insmod ext2
        set root='hd0'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0 
--hint-efi=hd0 --hint-baremetal=ahci0  b52e6e84-3d77-4ec1-a69e-38af31db8674
        else
          search --no-floppy --fs-uuid --set=root 
b52e6e84-3d77-4ec1-a69e-38af31db8674
        fi
        echo    'Loading Linux 3.16.0-6-amd64 ...'
        linux   /boot/vmlinuz-3.16.0-6-amd64 root=/dev/sda ro 
console=ttyS0,19200n8 net.ifnames=0 
        echo    'Loading initial ramdisk ...'
        initrd  /boot/initrd.img-3.16.0-6-amd64
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 
'gnulinux-advanced-b52e6e84-3d77-4ec1-a69e-38af31db8674' {
        menuentry 'Debian GNU/Linux, with Linux 3.16.0-6-amd64' --class debian 
--class gnu-linux --class gnu --class os $menuentry_id_option 
'gnulinux-3.16.0-6-amd64-advanced-b52e6e84-3d77-4ec1-a69e-38af31db8674' {
                gfxmode $linux_gfx_mode
                insmod gzio
                if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; 
fi
                insmod part_msdos
                insmod ext2
                set root='hd0'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0 
--hint-efi=hd0 --hint-baremetal=ahci0  b52e6e84-3d77-4ec1-a69e-38af31db8674
                else
                  search --no-floppy --fs-uuid --set=root 
b52e6e84-3d77-4ec1-a69e-38af31db8674
                fi
                echo    'Loading Linux 3.16.0-6-amd64 ...'
                linux   /boot/vmlinuz-3.16.0-6-amd64 root=/dev/sda ro 
console=ttyS0,19200n8 net.ifnames=0 
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd.img-3.16.0-6-amd64
        }
        menuentry 'Debian GNU/Linux, with Linux 3.16.0-6-amd64 (recovery mode)' 
--class debian --class gnu-linux --class gnu --class os $menuentry_id_option 
'gnulinux-3.16.0-6-amd64-recovery-b52e6e84-3d77-4ec1-a69e-38af31db8674' {
                gfxmode $linux_gfx_mode
                insmod gzio
                if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; 
fi
                insmod part_msdos
                insmod ext2
                set root='hd0'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0 
--hint-efi=hd0 --hint-baremetal=ahci0  b52e6e84-3d77-4ec1-a69e-38af31db8674
                else
                  search --no-floppy --fs-uuid --set=root 
b52e6e84-3d77-4ec1-a69e-38af31db8674
                fi
                echo    'Loading Linux 3.16.0-6-amd64 ...'
                linux   /boot/vmlinuz-3.16.0-6-amd64 root=/dev/sda ro single 
console=ttyS0,19200n8 net.ifnames=0
                echo    'Loading initial ramdisk ...'
                initrd  /boot/initrd.img-3.16.0-6-amd64
        }
}

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

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### 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.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_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/41_custom ###
--------------------------------------------------------------------------------

================================ sdc/etc/fstab: ================================

--------------------------------------------------------------------------------
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/sda       /               ext4    errors=remount-ro 0       1
/dev/sdb        none            swap    defaults          0       0
--------------------------------------------------------------------------------

==================== sdc: Location of files loaded by Grub: ====================

           GiB - GB             File                                 Fragment(s)


======================== Unknown MBRs/Boot Sectors/etc: ========================

Unknown BootLoader on testvm-root'


Unknown BootLoader on testvm-usr'


Unknown BootLoader on testvm-var'


Unknown BootLoader on testvm-home'



=============================== StdErr Messages: ===============================

cat: /tmp/BootInfo-Kke8avqB/Tmp_Log: No such file or directory
  One or more specified logical volume(s) not found.
  One or more specified logical volume(s) not found.
  One or more specified logical volume(s) not found.
hexdump: /dev/mapper/testvm-root': No such file or directory
hexdump: /dev/mapper/testvm-root': No such file or directory
  One or more specified logical volume(s) not found.
  One or more specified logical volume(s) not found.
  One or more specified logical volume(s) not found.
hexdump: /dev/mapper/testvm-usr': No such file or directory
hexdump: /dev/mapper/testvm-usr': No such file or directory
  One or more specified logical volume(s) not found.
  One or more specified logical volume(s) not found.
  One or more specified logical volume(s) not found.
hexdump: /dev/mapper/testvm-var': No such file or directory
hexdump: /dev/mapper/testvm-var': No such file or directory
  One or more specified logical volume(s) not found.
  One or more specified logical volume(s) not found.
  One or more specified logical volume(s) not found.
hexdump: /dev/mapper/testvm-home': No such file or directory
hexdump: /dev/mapper/testvm-home': No such file or directory
cat: /tmp/BootInfo-Kke8avqB/Tmp_Log: No such file or directory


Attachment: fstab
Description: Text document

On Fri, 27 Jul 2018 14:09:14 -0400,
Pascal Hambourg wrote:
> 
> Hello,
> 
> Le 27/07/2018 à 16:01, John Covici a écrit :
> > 
> > I have a vm at linode -- I don't know if that makes any difference,
> > but I thought to mention it.  Now in this vm, I have installed grub on
> > /dev/sda and while doing this /dev/sda1 was mounted on /boot.
> > grub-mkconfig was successful.  /dev/sda2 contains a number of lvm
> > volumes one of which is the root volume specified in the kernel.  What
> > happens is when I boot up the system, I have to access the serial
> > console which I can do to see what is happening and I get just a grub>
> > prompt.  Now if I type exit, it says booting from hard disk and I get
> > the menu and things boot normally.
> > 
> > Can someone help me figure out why this is happening and how to fix?
> > I am using Debian 8 on that vm.  Let me know if you need more information.
> 
> For diagnosis, you can install boot-info-script and run bootinfoscript.
> 
> _______________________________________________
> Help-grub mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-grub
> 

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici wb2una
         address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]