• Grub boot: "Error: Device name required"


    This is my last problem that I can’t solve on my own! I’m using Openbox with encrypted hard drive. I installed antergos using the “erase disk and install antergos” and checked all the boxes: encrypt, LVM and use seperate home partition. Now everytime I boot, after choosing antergos from grub I get an error message that says something like “Error: device name required … Press any key to continue”. After a few seconds the message goes off and it asks for my encryption password, from that on everything is normal. This annoys me and I’m thinking if it will be a problem some day.

  • Please, can you post your /boot/grub/grub.cfg file here? (surround it with three backticks for start and three backticks for end), like this.

    Thanks!

  • Sure!

    # 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="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
    }
    
    if [ x$feature_default_font_path = xy ] ; then
       font=unicode
    else
    insmod part_gpt 
    insmod cryptodisk luks gcry_rijndael gcry_rijndael gcry_sha1 lvm 
    insmod ext2
    cryptomount -u beefcd6efb1d424684a70b12529db81f 
    set root='lvmid/F1yxKG-dkID-lpTf-l2VC-ShIV-BMg5-bgVVmo/yzin0f-y5zk-MmhQ-deYt-XVKn-RYXF-JMuNs0'
    if [ x$feature_platform_search_hint = xy ]; then
      search --no-floppy --fs-uuid --set=root --hint='lvmid/F1yxKG-dkID-lpTf-l2VC-ShIV-BMg5-bgVVmo/yzin0f-y5zk-MmhQ-deYt-XVKn-RYXF-JMuNs0'  d8fc9d82-bf52-485a-a95c-4feb2286d6b5
    else
      search --no-floppy --fs-uuid --set=root d8fc9d82-bf52-485a-a95c-4feb2286d6b5
    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=fi_FI
      insmod gettext
    fi
    terminal_input console
    terminal_output gfxterm
    if [ x$feature_timeout_style = xy ] ; then
      set timeout_style=menu
      set timeout=1
    # Fallback normal timeout code in case the timeout_style feature is
    # unavailable.
    else
      set timeout=1
    fi
    ### END /etc/grub.d/00_header ###
    
    ### BEGIN /etc/grub.d/06_grub-customizer_menu_color_helper ###
    ### END /etc/grub.d/06_grub-customizer_menu_color_helper ###
    
    ### BEGIN /etc/grub.d/10_antergos ###
    menuentry 'Antergos Linux' --class antergos --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-d8fc9d82-bf52-485a-a95c-4feb2286d6b5' {
    	load_video
    	set gfxpayload=keep
    	insmod gzio
    	insmod part_gpt 
    	insmod ext2
    	cryptomount -u 
    	set root='hd0,gpt2'
    	if [ x$feature_platform_search_hint = xy ]; then
    	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  3460ccf0-4337-432c-83cc-15ef1f97f0a0
    	else
    	  search --no-floppy --fs-uuid --set=root 3460ccf0-4337-432c-83cc-15ef1f97f0a0
    	fi
    	echo	'Loading  linux kernel ...'
    	linux	/vmlinuz-linux root=UUID=d8fc9d82-bf52-485a-a95c-4feb2286d6b5 rw cryptdevice=/dev/disk/by-uuid/beefcd6e-fb1d-4246-84a7-0b12529db81f:cryptAntergos video.use_native_backlight=0 resume=UUID=00e1f878-f9a8-4ba3-a2a0-ac16a78c3ba0 quiet
    	echo	'Ladataan alustavaa ramlevyä ...'
    	initrd	 /initramfs-linux.img
    }
    submenu 'Lisävalitsimet kohteelle ”Antergos Linux”' $menuentry_id_option 'gnulinux-advanced-d8fc9d82-bf52-485a-a95c-4feb2286d6b5' {
    	menuentry 'Antergos Linux - Fallback' --class antergos --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-d8fc9d82-bf52-485a-a95c-4feb2286d6b5' {
    		load_video
    		set gfxpayload=keep
    		insmod gzio
    		insmod part_gpt 
    		insmod ext2
    		cryptomount -u 
    		set root='hd0,gpt2'
    		if [ x$feature_platform_search_hint = xy ]; then
    		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  3460ccf0-4337-432c-83cc-15ef1f97f0a0
    		else
    		  search --no-floppy --fs-uuid --set=root 3460ccf0-4337-432c-83cc-15ef1f97f0a0
    		fi
    		echo	'Loading  linux kernel ...'
    		linux	/vmlinuz-linux root=UUID=d8fc9d82-bf52-485a-a95c-4feb2286d6b5 rw cryptdevice=/dev/disk/by-uuid/beefcd6e-fb1d-4246-84a7-0b12529db81f:cryptAntergos video.use_native_backlight=0 resume=UUID=00e1f878-f9a8-4ba3-a2a0-ac16a78c3ba0 quiet
    		echo	'Ladataan alustavaa ramlevyä ...'
    		initrd	 /initramfs-linux-fallback.img
    	}
    	menuentry 'Antergos Linux' --class antergos --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-d8fc9d82-bf52-485a-a95c-4feb2286d6b5' {
    		load_video
    		set gfxpayload=keep
    		insmod gzio
    		insmod part_gpt 
    		insmod ext2
    		cryptomount -u 
    		set root='hd0,gpt2'
    		if [ x$feature_platform_search_hint = xy ]; then
    		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  3460ccf0-4337-432c-83cc-15ef1f97f0a0
    		else
    		  search --no-floppy --fs-uuid --set=root 3460ccf0-4337-432c-83cc-15ef1f97f0a0
    		fi
    		echo	'Loading  linux kernel ...'
    		linux	/vmlinuz-linux root=UUID=d8fc9d82-bf52-485a-a95c-4feb2286d6b5 rw cryptdevice=/dev/disk/by-uuid/beefcd6e-fb1d-4246-84a7-0b12529db81f:cryptAntergos video.use_native_backlight=0 resume=UUID=00e1f878-f9a8-4ba3-a2a0-ac16a78c3ba0 quiet
    		echo	'Ladataan alustavaa ramlevyä ...'
    		initrd	 /initramfs-linux-fallback.img
    	}
    }
    
    ### END /etc/grub.d/10_antergos ###
    
    ### 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/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 ###
    
    ### BEGIN /etc/grub.d/60_memtest86+ ###
    ### END /etc/grub.d/60_memtest86+ ###```
  • Hi,
    Let’s try this:
    Edit the file:
    sudo nano /boot/grub/grub.cfg
    After this:
    ### BEGIN /etc/grub.d/10_antergos ###
    search for this:
    cryptomount -u
    and change it to this:
    cryptomount -u beefcd6efb1d424684a70b12529db81f

    Then reboot. Tell us if it helps… or not.

  • Now it’s all the same but the error changed to Warning: no such cryptodisk found

  • Is your /boot encrypted? If not, try to comment it (just add # at the beginning):

    # cryptomount -u ....

  • Hooray! Now it’s fine. Thank you! So did it try to decrypt the /boot partition even though it is not encrypted?

  • I’m afraid it’s a grub bug… yes, it tries to decrypt an unexisting partition. That line is intended to work if you have /boot encrypted.

    Glad it worked.

    Cheers!

Posts 8Views 4107
Log in to reply