You are not logged in.

#1 2020-11-20 20:02:44

Xwang
Member
Registered: 2012-05-14
Posts: 211

Frequent freezes on "Loading initial ramdisk ..."

I have Archlinux installed on my Asus n752vx laptop since when I've bought it more than four years ago.
Since some months it has started to frequently freeze on "Loading initial ramdisk ..." when I reboot it (I do it not very often, typically once a week).
When the freeze happens, I can reboot the pc by pressing the power off button and then powering it on again and sometimes I have to do that twice to be able to start the system.
The system is configured with a dual boot with Windows 10.

This is the output of lsblk:

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 238,5G  0 disk 
├─sda1   8:1    0   260M  0 part /boot
├─sda2   8:2    0    16M  0 part 
├─sda3   8:3    0  75,4G  0 part 
├─sda4   8:4    0   575M  0 part 
└─sda5   8:5    0 161,8G  0 part /
sdb      8:16   0 931,5G  0 disk 
└─sdb1   8:17   0 931,5G  0 part /dataBackup
sdc      8:32   0 931,5G  0 disk 
└─sdc1   8:33   0 931,5G  0 part /home

This is the output of /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 ###
insmod part_gpt
insmod part_msdos
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_gpt
insmod ext2
set root='hd0,gpt5'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt5' --hint-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5  74296c4e-84df-4eda-87a1-09be9d8e114b
else
  search --no-floppy --fs-uuid --set=root 74296c4e-84df-4eda-87a1-09be9d8e114b
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=it_IT
  insmod gettext
fi
terminal_output gfxterm
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/10_linux ###
menuentry 'Arch Linux, with Linux linux-lts' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-advanced-74296c4e-84df-4eda-87a1-09be9d8e114b' {
        savedefault
        set gfxpayload=text
        insmod gzio
        insmod part_gpt
        insmod fat
        set root='hd0,gpt1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt1' --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  F0D6-7769
        else
          search --no-floppy --fs-uuid --set=root F0D6-7769
        fi
        echo    'Loading Linux linux-lts ...'
        linux   /vmlinuz-linux-lts root=UUID=74296c4e-84df-4eda-87a1-09be9d8e114b rw  loglevel=3 rd.systemd.show_status=auto rd.udev.log_priority=3 splash mitigations=auto,nosmt pci=noaer nvidia-drm.modeset=1
        echo    'Loading initial ramdisk ...'
        initrd  /intel-ucode.img /initramfs-linux-lts.img
}
menuentry 'Arch Linux, with Linux linux-lts (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-lts-fallback-74296c4e-84df-4eda-87a1-09be9d8e114b' {
        savedefault
        set gfxpayload=text
        insmod gzio
        insmod part_gpt
        insmod fat
        set root='hd0,gpt1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt1' --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  F0D6-7769
        else
          search --no-floppy --fs-uuid --set=root F0D6-7769
        fi
        echo    'Loading Linux linux-lts ...'
        linux   /vmlinuz-linux-lts root=UUID=74296c4e-84df-4eda-87a1-09be9d8e114b rw  loglevel=3 rd.systemd.show_status=auto rd.udev.log_priority=3 splash mitigations=auto,nosmt pci=noaer nvidia-drm.modeset=1
        echo    'Loading initial ramdisk ...'
        initrd  /initramfs-linux-lts-fallback.img
}
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-74296c4e-84df-4eda-87a1-09be9d8e114b' {
        savedefault
        set gfxpayload=text
        insmod gzio
        insmod part_gpt
        insmod fat
        set root='hd0,gpt1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt1' --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  F0D6-7769
        else
          search --no-floppy --fs-uuid --set=root F0D6-7769
        fi
        echo    'Loading Linux linux ...'
        linux   /vmlinuz-linux root=UUID=74296c4e-84df-4eda-87a1-09be9d8e114b rw  loglevel=3 rd.systemd.show_status=auto rd.udev.log_priority=3 splash mitigations=auto,nosmt pci=noaer nvidia-drm.modeset=1
        echo    'Loading initial ramdisk ...'
        initrd  /intel-ucode.img /initramfs-linux.img
}
menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-74296c4e-84df-4eda-87a1-09be9d8e114b' {
        savedefault
        set gfxpayload=text
        insmod gzio
        insmod part_gpt
        insmod fat
        set root='hd0,gpt1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt1' --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  F0D6-7769
        else
          search --no-floppy --fs-uuid --set=root F0D6-7769
        fi
        echo    'Loading Linux linux ...'
        linux   /vmlinuz-linux root=UUID=74296c4e-84df-4eda-87a1-09be9d8e114b rw  loglevel=3 rd.systemd.show_status=auto rd.udev.log_priority=3 splash mitigations=auto,nosmt pci=noaer nvidia-drm.modeset=1
        echo    'Loading initial ramdisk ...'
        initrd  /initramfs-linux-fallback.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/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-efi-F0D6-7769' {
        savedefault
        insmod part_gpt
        insmod fat
        set root='hd0,gpt1'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-ieee1275='ieee1275//disk@0,gpt1' --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  F0D6-7769
        else
          search --no-floppy --fs-uuid --set=root F0D6-7769
        fi
        chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
### 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.

if [ "${grub_platform}" == "efi" ]; then
        menuentry "Microsoft Windows 10 UEFI-GPT" {
                insmod part_gpt
                insmod fat
                insmod search_fs_uuid
                insmod chain
                search --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 F0D6-7769
                chainloader /EFI/Microsoft/Boot/bootmgfw.efi
        }
fi
### 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 ###

This is the output of efibootmgr -v:

BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0002,0001,0005,0000,0004,0003,0006,0007
Boot0000* Windows Boot Manager  VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0001* Windows Boot Manager  HD(1,GPT,e01f44ba-0ef8-4818-b47d-80bf6b4a6b7c,0x800,0x82000)/File(\EFI\MICROSOFT\BOOT\BOOTMGFW.EFI)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....H...............
Boot0002* arch_grub     HD(1,GPT,e01f44ba-0ef8-4818-b47d-80bf6b4a6b7c,0x800,0x82000)/File(\EFI\ARCH_GRUB\GRUBX64.EFI)
Boot0003* UEFI:CD/DVD Drive     BBS(129,,0x0)
Boot0004* Windows Boot Manager  VenHw(99e275e7-75a0-4b37-a2e6-c5385e6c00cb)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0005* UEFI OS       HD(1,MBR,0xa85dd,0x800,0x200000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
Boot0006* UEFI:Removable Device BBS(130,,0x0)
Boot0007* UEFI:Network Device   BBS(131,,0x0)

This is the output of ls -all /boot/  :

totale 198076
drwxr-xr-x  5 root root     4096  1 gen  1970  .
drwxr-xr-x 18 root root     4096 25 set 11.23  ..
drwxr-xr-x  5 root root     4096 30 mar  2016  EFI
drwxr-xr-x  6 root root     4096 24 giu 18.16  grub
-rwxr-xr-x  1 root root 57117981 19 nov 14.32  initramfs-linux-fallback.img
-rwxr-xr-x  1 root root 35743312 19 nov 14.31  initramfs-linux.img
-rwxr-xr-x  1 root root 55854188 19 nov 14.31  initramfs-linux-lts-fallback.img
-rwxr-xr-x  1 root root 35070313 19 nov 14.31  initramfs-linux-lts.img
-rwxr-xr-x  1 root root  3621888 19 nov 08.58  intel-ucode.img
drwxr-xr-x  4 root root     4096 11 lug  2017 'System Volume Information'
-rwxr-xr-x  1 root root  8968672 19 nov 14.30  vmlinuz-linux
-rwxr-xr-x  1 root root  6416704 19 nov 14.30  vmlinuz-linux-lts

This is the output of cat /etc/fstab :

# 
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
# /dev/sda5 UUID=74296c4e-84df-4eda-87a1-09be9d8e114b
LABEL=ArchRootSSD       /               ext4            rw,relatime,data=ordered        0 1

# /dev/sdc1 UUID=dca8b900-5a1a-4d64-b193-9194d4b214ff
LABEL=ArchDataSSD       /home           ext4            rw,relatime,data=ordered        0 2

# /dev/sdb1 UUID=91e93ef5-a6c7-45c9-94a9-90497f48754d
LABEL=ArchDataHDD       /dataBackup     ext4            rw,relatime,data=ordered        0 2

# /dev/sda1 UUID=F0D6-7769
LABEL=SYSTEM            /boot           vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro    0 2

/swapfile none swap defaults 0 0

Can you help me to understand the issue, please?


I'm still learning English so please excuse me if my English is not good enough and feel free to correct me via PM if you want.

Offline

#2 2020-11-25 14:20:16

kuroclef
Member
From: Fuji-shi, Shizuoka, Japan
Registered: 2016-01-15
Posts: 1
Website

Re: Frequent freezes on "Loading initial ramdisk ..."

You might be able to fix it this way.

  1. Enter the “arch-chroot” environment.

  2. # pacman -Rsn intel-ucode
  3. # grub-mkconfig -o /boot/grub/grub.cfg
  4. Leave the environment and reboot your PC.

What happend ? Why happend ?
I don’t know, sorry. But I think your problem will be solved.

Offline

#3 2020-11-25 14:29:10

Xwang
Member
Registered: 2012-05-14
Posts: 211

Re: Frequent freezes on "Loading initial ramdisk ..."

kuroclef wrote:

You might be able to fix it this way.

  1. Enter the “arch-chroot” environment.

  2. # pacman -Rsn intel-ucode
  3. # grub-mkconfig -o /boot/grub/grub.cfg
  4. Leave the environment and reboot your PC.

What happend ? Why happend ?
I don’t know, sorry. But I think your problem will be solved.

Are you suggesting me to remove the intel-ucode package?
Since I am able to log into my pc (when the issue happens I've "just" to power it off and on sometimes so that it continues loading the system being the freezing only a frequent random event), I think I can avoid to enter the arch-chroot env. Is it correct?
Since some days I'm using the lts kernel and the freeze has never happened.
Is it somehow related?

Last edited by Xwang (2020-11-25 14:30:15)


I'm still learning English so please excuse me if my English is not good enough and feel free to correct me via PM if you want.

Offline

#4 2020-11-25 15:43:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 11,183

Re: Frequent freezes on "Loading initial ramdisk ..."

intel-ucode is an important package for processor stability/security, removing it without having determined it to be the reason for the issue is unlikely to help and might be counter-productive.

What is intended to start during boot up? From the symptoms it just sounds like the usual race conditions with regards to getting the graphics subsystem up (... your system is "too fast" and the graphical environment gets started before the graphics driver is ready). A common fix for this is to include the necessary graphics driver modules in the initramfs so that they are loaded before the rest of the system: https://wiki.archlinux.org/index.php/Ke … _KMS_start

Maybe post/check the journal after having successfully booted after a forced shutdown via e.g.

sudo journalctl -b-1

to get the data from the previous boot. You should also try whether you can switch the VT with Ctrl+Alt+F2 and the like during the "freeze"

Last edited by V1del (2020-11-25 15:46:12)

Offline

Board footer

Powered by FluxBB