Error in initdr file

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

Error in initdr file

Postby mackowiakp » Feb 21st, '19, 08:48

After several updates of kernel version ago, I still have an error:
Code: Select all
remove-boot-splash: Format of /boot/initrd-4.14.100-desktop-1.mga6.img not recognized


So bootsplash does not work correctly. I try to remove it but it does not help.
So what I have to do? If any additional info/filecontent is necessary, I will send it.

Any idea what is wrong?

Below content of /boot/grub2/grub.cfg file:

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

### BEGIN /etc/grub.d/00_header ###
set pager=1

if [ -s $prefix/grubenv ]; then
  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="${saved_entry}"
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
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  b3d692fa-43c0-4516-a2ab-dc8455fefa51
else
  search --no-floppy --fs-uuid --set=root b3d692fa-43c0-4516-a2ab-dc8455fefa51
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=1024x768x32
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=pl_PL
  insmod gettext
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  b3d692fa-43c0-4516-a2ab-dc8455fefa51
else
  search --no-floppy --fs-uuid --set=root b3d692fa-43c0-4516-a2ab-dc8455fefa51
fi
insmod gfxmenu
loadfont ($root)/boot/grub2/themes/maggy/MageiaLogo-Bold-16.pf2
loadfont ($root)/boot/grub2/themes/maggy/MageiaLogo-Bold-20.pf2
loadfont ($root)/boot/grub2/themes/maggy/MageiaLogo-Bold-28.pf2
loadfont ($root)/boot/grub2/themes/maggy/MageiaLogo-Regular-20.pf2
insmod png
set theme=($root)/boot/grub2/themes/maggy/theme.txt
export theme
if [ x$feature_timeout_style = xy ] ; then
  set timeout_style=menu
  set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
  set timeout=5
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/01_users ###
if [ -f ${prefix}/user.cfg ]; then
  source ${prefix}/user.cfg
  if [ -n "${GRUB2_PASSWORD}" ]; then
    set superusers="root"
    export superusers
    password_pbkdf2 root ${GRUB2_PASSWORD}
  fi
fi
### END /etc/grub.d/01_users ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Mageia' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-simple-b3d692fa-43c0-4516-a2ab-dc8455fefa51' {
        savedefault
        load_video
        set gfxpayload=1024x768x32
        insmod gzio
        insmod part_msdos
        insmod ext2
        set root='hd0,msdos5'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  b3d692fa-43c0-4516-a2ab-dc8455fefa51
        else
          search --no-floppy --fs-uuid --set=root b3d692fa-43c0-4516-a2ab-dc8455fefa51
        fi
        linux16 /boot/vmlinuz-4.14.100-desktop-1.mga6 root=UUID=b3d692fa-43c0-4516-a2ab-dc8455fefa51 ro  nokmsboot splash quiet noiswmd resume=UUID=e6920c2e-2eca-49d5-afd3-cd9e3107c355
        initrd16 /boot/initrd-4.14.100-desktop-1.mga6.img
}
submenu 'Opcje zaawansowane dla systemu Mageia' $menuentry_id_option 'gnulinux-advanced-b3d692fa-43c0-4516-a2ab-dc8455fefa51' {
        menuentry 'Mageia (4.14.100-desktop-1.mga6) 6' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.14.100-desktop-1.mga6-advanced-b3d692fa-43c0-4516-a2ab-dc8455fefa51' {
        savedefault
                load_video
                set gfxpayload=1024x768x32
                insmod gzio
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos5'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  b3d692fa-43c0-4516-a2ab-dc8455fefa51
                else
                  search --no-floppy --fs-uuid --set=root b3d692fa-43c0-4516-a2ab-dc8455fefa51
                fi
                linux16 /boot/vmlinuz-4.14.100-desktop-1.mga6 root=UUID=b3d692fa-43c0-4516-a2ab-dc8455fefa51 ro  nokmsboot splash quiet noiswmd resume=UUID=e6920c2e-2eca-49d5-afd3-cd9e3107c355
                initrd16 /boot/initrd-4.14.100-desktop-1.mga6.img
        }
        menuentry 'Mageia (4.14.100-desktop-1.mga6) 6 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.14.100-desktop-1.mga6-recovery-b3d692fa-43c0-4516-a2ab-dc8455fefa51' {
                load_video
                set gfxpayload=1024x768x32
                insmod gzio
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos5'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  b3d692fa-43c0-4516-a2ab-dc8455fefa51
                else
                  search --no-floppy --fs-uuid --set=root b3d692fa-43c0-4516-a2ab-dc8455fefa51
                fi
                linux16 /boot/vmlinuz-4.14.100-desktop-1.mga6 root=UUID=b3d692fa-43c0-4516-a2ab-dc8455fefa51 ro failsafe
                initrd16 /boot/initrd-4.14.100-desktop-1.mga6.img
        }
        menuentry 'Mageia (4.14.89-desktop-1.mga6) 6' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.14.89-desktop-1.mga6-advanced-b3d692fa-43c0-4516-a2ab-dc8455fefa51' {
        savedefault
                load_video
                set gfxpayload=1024x768x32
                insmod gzio
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos5'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  b3d692fa-43c0-4516-a2ab-dc8455fefa51
                else
                  search --no-floppy --fs-uuid --set=root b3d692fa-43c0-4516-a2ab-dc8455fefa51
                fi
                linux16 /boot/vmlinuz-4.14.89-desktop-1.mga6 root=UUID=b3d692fa-43c0-4516-a2ab-dc8455fefa51 ro  nokmsboot splash quiet noiswmd resume=UUID=e6920c2e-2eca-49d5-afd3-cd9e3107c355
                initrd16 /boot/initrd-4.14.89-desktop-1.mga6.img
        }
        menuentry 'Mageia (4.14.89-desktop-1.mga6) 6 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.14.89-desktop-1.mga6-recovery-b3d692fa-43c0-4516-a2ab-dc8455fefa51' {
                load_video
                set gfxpayload=1024x768x32
                insmod gzio
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos5'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  b3d692fa-43c0-4516-a2ab-dc8455fefa51
                else
                  search --no-floppy --fs-uuid --set=root b3d692fa-43c0-4516-a2ab-dc8455fefa51
                fi
                linux16 /boot/vmlinuz-4.14.89-desktop-1.mga6 root=UUID=b3d692fa-43c0-4516-a2ab-dc8455fefa51 ro failsafe
                initrd16 /boot/initrd-4.14.89-desktop-1.mga6.img
        }
        menuentry 'Mageia (desktop) 6' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-desktop-advanced-b3d692fa-43c0-4516-a2ab-dc8455fefa51' {
        savedefault
                load_video
                set gfxpayload=1024x768x32
                insmod gzio
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos5'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  b3d692fa-43c0-4516-a2ab-dc8455fefa51
                else
                  search --no-floppy --fs-uuid --set=root b3d692fa-43c0-4516-a2ab-dc8455fefa51
                fi
                linux16 /boot/vmlinuz-desktop root=UUID=b3d692fa-43c0-4516-a2ab-dc8455fefa51 ro  nokmsboot splash quiet noiswmd resume=UUID=e6920c2e-2eca-49d5-afd3-cd9e3107c355
                initrd16 /boot/initrd-desktop.img
        }
        menuentry 'Mageia (desktop) 6 (recovery mode)' --class mageia --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-desktop-recovery-b3d692fa-43c0-4516-a2ab-dc8455fefa51' {
                load_video
                set gfxpayload=1024x768x32
                insmod gzio
                insmod part_msdos
                insmod ext2
                set root='hd0,msdos5'
                if [ x$feature_platform_search_hint = xy ]; then
                  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5  b3d692fa-43c0-4516-a2ab-dc8455fefa51
                else
                  search --no-floppy --fs-uuid --set=root b3d692fa-43c0-4516-a2ab-dc8455fefa51
                fi
                linux16 /boot/vmlinuz-desktop root=UUID=b3d692fa-43c0-4516-a2ab-dc8455fefa51 ro failsafe
                initrd16 /boot/initrd-desktop.img
        }
}

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

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

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

### BEGIN /etc/grub.d/20_ppc_terminfo ###
### END /etc/grub.d/20_ppc_terminfo ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows 10 (na /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-chain-0ED43985D4397057' {
        savedefault
        insmod part_msdos
        insmod ntfs
        set root='hd0,msdos2'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  0ED43985D4397057
        else
          search --no-floppy --fs-uuid --set=root 0ED43985D4397057
        fi
        parttool ${root} hidden-
        drivemap -s (hd0) ${root}
        chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### 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 ###
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 646
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Error in initdr file

Postby doktor5000 » Feb 21st, '19, 20:31

mackowiakp wrote:So bootsplash does not work correctly. I try to remove it but it does not help.

"does not work correctly" means what in particular?
You try to remove what in particular and how?

Best start with adding the output of

Code: Select all
ls -al /boot
file /boot/initrd-4.14.100-desktop-1.mga6.img


FWIW, something similar had been reported before, but OP closed it: https://bugs.mageia.org/show_bug.cgi?id=19049
From what I can tell, it's output from /usr/share/bootsplash/scripts/remove-boot-splash which happens when it cannot determine the default resolution correctly and it's happening since quite some time:
https://bugs.mageia.org/buglist.cgi?qui ... oot-splash
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Error in initdr file

Postby mackowiakp » Feb 21st, '19, 20:56

So You have an output:

Code: Select all
[root@Piotr Pobrane]# ls -al /boot
razem 27612
drwxr-xr-x  5 root root    4096 lut 21 10:00 ./
drwxr-xr-x 21 root root    4096 sie 27 20:09 ../
-rw-r--r--  1 root root     440 lut 25  2017 boot.backup.sda
-rw-r--r--  1 root root  208408 lut 15 10:31 config-4.14.100-desktop-1.mga6
drwxr-xr-x  2 root root    4096 sty  7  2018 dracut/
-rwxr-xr-x  1 root root  568832 lip 16  2017 gfxmenu*
drwxr-xr-x  2 root root    4096 wrz 17  2017 grub/
drwxr-xr-x  6 root root    4096 lut 21 10:02 grub2/
-rw-------  1 root root 9287504 lut 21 03:25 initrd-4.14.100-desktop-1.mga6.img
lrwxrwxrwx  1 root root      34 lut 21 03:25 initrd-desktop.img -> initrd-4.14.100-desktop-1.mga6.img
lrwxrwxrwx  1 root root      34 lut 21 03:25 initrd.img -> initrd-4.14.100-desktop-1.mga6.img
-rw-------  1 root root 9035288 lip 16  2017 initrd.img.old
-rw-r--r--  1 root root  181648 lut 15 10:31 symvers-4.14.100-desktop-1.mga6.xz
-rw-r--r--  1 root root 3471141 lut 15 10:31 System.map-4.14.100-desktop-1.mga6
lrwxrwxrwx  1 root root      31 lut 21 03:25 vmlinuz -> vmlinuz-4.14.100-desktop-1.mga6
-rw-r--r--  1 root root 5487584 lut 15 10:31 vmlinuz-4.14.100-desktop-1.mga6
lrwxrwxrwx  1 root root      31 lut 21 03:25 vmlinuz-desktop -> vmlinuz-4.14.100-desktop-1.mga6
[root@Piotr Pobrane]# file /boot/initrd-4.14.100-desktop-1.mga6.img
/boot/initrd-4.14.100-desktop-1.mga6.img: ASCII cpio archive (SVR4 with no CRC)


Code: Select all
"does not work correctly" means what in particular?


Simply there is not bootsplash at all (black screen). But bootsplash packege is already installed. But - as I wrote - the only error I found out is:

remove-boot-splash: Format of /boot/initrd-4.14.100-desktop-1.mga6.img not recognized


during linking new kernel with new nvidia driver or virtualbox
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 646
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Error in initdr file

Postby doktor5000 » Feb 21st, '19, 21:08

What graphics card and graphics driver are you using, and what does your /etc/default/grub contain ?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Error in initdr file

Postby mackowiakp » Feb 21st, '19, 21:20

Code: Select all
[maciek@Piotr Influx]$ cat /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="splash quiet noiswmd nokmsboot loglevel=0 resume=UUID=e6920c2e-2eca-49d5-afd3-cd9e3107c355 vga=790"
GRUB_DEFAULT=saved
GRUB_DISABLE_OS_PROBER=false
GRUB_DISABLE_RECOVERY=false
GRUB_DISABLE_SUBMENU=n
GRUB_DISTRIBUTOR=Mageia
GRUB_ENABLE_CRYPTODISK=y
GRUB_GFXMODE=1024x768x32
GRUB_GFXPAYLOAD_LINUX=1024x768x32
GRUB_SAVEDEFAULT=true
GRUB_TERMINAL_OUTPUT=gfxterm
GRUB_THEME=/boot/grub2/themes/maggy/theme.txt
GRUB_TIMEOUT=5
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 646
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Error in initdr file

Postby doktor5000 » Feb 21st, '19, 23:39

doktor5000 wrote:What graphics card and graphics driver are you using ?
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Error in initdr file

Postby mackowiakp » Feb 22nd, '19, 06:55

Card:
Gigabyte GeForce210 SL 1GB CUDA

Driver:
NVIDIA GeForce 8100 to GeForce 415 (autodetect)

Works fine, without problems, KDE env.
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 646
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Error in initdr file

Postby doktor5000 » Feb 23rd, '19, 15:21

I also have an nvidia card, and this is what I'm using, bootsplash works fine here:

[doktor5000@Mageia6]─[11:38:42]─[~] grep -iE "vga|gfx" /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT=" nokmsboot splash quiet noiswmd resume=UUID=ec70e132-9c53-4851-a7cd-f89ba3c104b4 audit=0 vga=794"
GRUB_GFXMODE=1280x1024x32
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_TERMINAL_OUTPUT=gfxterm
[doktor5000@Mageia6]─[11:46:01]─[~]


You may want to try installing any additional kernel and see if that error still pops up for both kernels.
But I'd say https://bugs.mageia.org/show_bug.cgi?id=19049 should be reopened / recreated as that issue still happens for quite a few installations, as shown by https://bugs.mageia.org/buglist.cgi?qui ... oot-splash
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 17659
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron