• multi-boot full encrypt LVM-on-LUKS W7-deb-anter SSD+raid GRUB problem


    Hi,

    First of all: Sorry about my english, polish is my first language… Be patient, please;) with dificult words i use google translate…;)

    I have problem with instalation Grub after instalation Antergos.
    I want to have a multi boot system with:

    1. Windows 7 encrypted with BITLOCKER
    2. Full encrypted Kali Linux at LVMonLUKS
    3. Full encrypted ANTERGOS at LVMonLUKS.

    My hard drive configuration is:
    1 SSD + 2HDD RAID1 (mirrored)

    On SSD i have:
    efi boot partition, windows system partition, Windows system partition encrypted with BITLOCKER, boot partition, and LUKS container with LVM Antergos System partition and LVM Kali system partition

    On RAID i want to have:
    Windows data partition encrypted with biltocker, LUKS container with: LVM SWAP, LVM /var, LVM /home, LVM /var-kali and LVM /home-kali

    lsblk output is:

    //
    
    [[email protected] /]# lsblk
    NAME                       MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
    loop0                        7:0    0   1.7G  1 loop  
    sda                          8:0    0 223.6G  0 disk  
    ├─sda1                       8:1    0   100M  0 part  /boot/efi
    ├─sda2                       8:2    0   128M  0 part  
    ├─sda3                       8:3    0 144.4G  0 part  
    ├─sda4                       8:4    0   250M  0 part  
    ├─sda5                       8:5    0     1G  0 part  /boot
    └─sda6                       8:6    0  77.7G  0 part  
      └─luksSSD                253:0    0  77.7G  0 crypt 
        ├─SSDluks-root         253:1    0    44G  0 lvm   /
        └─SSDluks-root_kali    253:2    0  33.7G  0 lvm   
    sdb                          8:16   0 931.5G  0 disk  
    └─md126                      9:126  0 931.5G  0 raid1 
      ├─md126p1                259:0    0   128M  0 md    
      ├─md126p2                259:1    0 360.7G  0 md    
      └─md126p3                259:2    0 570.7G  0 md    
        └─luksRAID             253:3    0 570.7G  0 crypt 
          ├─RAIDluks-swap      253:4    0     8G  0 lvm   [SWAP]
          ├─RAIDluks-var       253:5    0     8G  0 lvm   /var
          ├─RAIDluks-var_kali  253:6    0     8G  0 lvm   
          ├─RAIDluks-home      253:7    0   420G  0 lvm   /home
          └─RAIDluks-home_kali 253:8    0   126G  0 lvm   
    sdc                          8:32   0 931.5G  0 disk  
    └─md126                      9:126  0 931.5G  0 raid1 
      ├─md126p1                259:0    0   128M  0 md    
      ├─md126p2                259:1    0 360.7G  0 md    
      └─md126p3                259:2    0 570.7G  0 md    
        └─luksRAID             253:3    0 570.7G  0 crypt 
          ├─RAIDluks-swap      253:4    0     8G  0 lvm   [SWAP]
          ├─RAIDluks-var       253:5    0     8G  0 lvm   /var
          ├─RAIDluks-var_kali  253:6    0     8G  0 lvm   
          ├─RAIDluks-home      253:7    0   420G  0 lvm   /home
          └─RAIDluks-home_kali 253:8    0   126G  0 lvm   
    sdd                          8:48   1  15.9G  0 disk  
    ├─sdd1                       8:49   1   1.8G  0 part  
    └─sdd2                       8:50   1    64M  0 part  
    sr0                         11:0    1  1024M  0 rom   
    

    I was already install Win7 with encryption, and it works fine.

    After that i was dowloaded and install Antergos 17.3 or 17.4 with this tutorial:

    antergos(dot)com/wiki/install/how-to-install-antergos-w-custom-lukslvm2-partitioning
    //sorry but this is only way to post url - something broken?

    I’m stuck with GRUB instalation. CNCHI instaler install grub on SDA, but i can’t configure it.

    This is what i have:

    //your code here
    
    [[email protected] ~]$ sudo su
    [[email protected] antergos]# cryptsetup open --type luks /dev/sda6 luksSSD
    Enter passphrase for /dev/sda6: 
    [[email protected] antergos]# cryptsetup open --type luks /dev/md126p3 luksRAID
    Enter passphrase for /dev/md126p3: 
    [[email protected] antergos]# ls /dev/mapper/
    control   RAIDluks-home       RAIDluks-var	 SSDluks-root_kali
    luksRAID  RAIDluks-home_kali  RAIDluks-var_kali
    luksSSD   RAIDluks-swap       SSDluks-root
    [[email protected] antergos]# mount /dev/mapper/SSDluks-root /mnt/
    [[email protected] antergos]# mount /dev/mapper/RAIDluks-home /mnt/home
    [[email protected] antergos]# mount /dev/mapper/RAIDluks-var /mnt/var/
    [[email protected] antergos]# swapon /dev/mapper/RAIDluks-swap 
    [[email protected] antergos]# mount /dev/sda5 /mnt/boot/
    [[email protected] antergos]# mount /dev/sda1 /mnt/boot/efi/
    [[email protected] antergos]# mount --bind /proc/ /mnt/proc/
    [[email protected] antergos]# mount --bind /dev/ /mnt/dev/
    [[email protected] antergos]# mount --bind /sys/ /mnt/sys/
    [[email protected] antergos]# mount --bind /run/lvm /mnt/run/lvm/
    [[email protected] antergos]# chroot /mnt
    [[email protected] /]# ls /home/
    lost+found  skawikk
    [[email protected] /]# dir /usr/lib/modules
    4.10.13-1-ARCH	4.9.28-1-lts  extramodules-4.10-ARCH  extramodules-4.9-lts
    [[email protected] /]# mkinitcpio -g /boot/initramfs-linux.img -k 4.10.13-1-ARCH 
    ==> Starting build: 4.10.13-1-ARCH
      -> Running build hook: [base]
      -> Running build hook: [udev]
      -> Running build hook: [autodetect]
      -> Running build hook: [modconf]
      -> Running build hook: [block]
      -> Running build hook: [keyboard]
      -> Running build hook: [keymap]
    /etc/locale.conf: line 1: UTF-8: command not found
    /etc/locale.conf: line 2: UTF-8: command not found
      -> Running build hook: [encrypt]
      -> Running build hook: [lvm2]
      -> Running build hook: [resume]
      -> Running build hook: [filesystems]
      -> Running build hook: [fsck]
    ==> Generating module dependencies
    ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
    ==> Image generation successful
    [[email protected] /]# locale -a
    C
    en_US.utf8
    pl_PL.utf8
    POSIX
    [[email protected] /]# grub-mkconfig -o /boot/grub/grub.cfg
    Generating grub configuration file ...
    Found theme: /boot/grub/themes/Antergos-Default/theme.txt
    Found linux image: /boot/vmlinuz-linux
    Found initrd image: /boot/initramfs-linux.img
    Found fallback initramfs image: /boot/initramfs-linux-fallback.img
    Found linux image: /boot/vmlinuz-linux-lts
    Found initrd image: /boot/initramfs-linux-lts.img
    Found fallback initramfs image: /boot/initramfs-linux-lts-fallback.img
    grub-probe: error: cannot find a GRUB drive for /dev/sdd1.  Check your device.map.
    done
    

    Can You help me?

    Regards;)

  • No idea how to really help you, but thought I might as well comment so that your problem would be moved closer to the top and get more attention:slight_smile:

    Keep trying, never give up. In the end, you will find that it was all worth it

    Community ISO: https://antergoscommunityeditions.wordpress.com
    Linux Basics: https://linuxbasicssite.wordpress.com

  • Hi,
    thanks;)

    I figure out how to get rid of the error “grub-probe: error: cannot find a GRUB drive for /dev/sdd1. Check your device.map.
    done”…
    I just unplug USB /dev/sdd whit live iso. And then grub-mkconfig is done ok.

    But this not an issue, system won’t start. It stucks at:
    Loading linux kernel…
    Loading initial ramdisk…

    And nothing will happen, even keyboard are stuck;( (can’t even on caps lock).

    I thind this is a problem with UUID in cryptab, fstab, grub default, but i can’t figure what exacly is a problem.
    Or it can be a problem with hooks in mkinitpico…

    This is my 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>
    #
    #UUID=46a5d903-c011-4c2a-8665-c32762987da7 swap swap defaults 0 0
    #UUID=3a65272f-2ce9-4c5d-bdc4-07d6d2182857 /var ext4 defaults,relatime,data=ordered 0 0
    #UUID=5125b3d2-a9e1-428c-9586-b8400ee0afc8 /home ext4 defaults,relatime,data=ordered 0 0
    #UUID=c387d3d2-cd44-4a9e-8dc3-3d8fdb754d48 / ext4 defaults,relatime,data=ordered 0 1
    UUID=C8C6-8BFB /boot/efi vfat defaults,noatime 0 0
    UUID=04bbdb8b-399c-4f9d-bcb3-eb23c1924597 /boot ext4 defaults,noatime,discard 0 0
    /dev/mapper/SSDluks-root / ext4 defaults,relatime,data=ordered 0 1
    /dev/mapper/RAIDluks-swap swap swap defaults 0 0
    /dev/mapper/RAIDluks-var /var ext4 defaults,relatime,data=ordered 0 0
    /dev/mapper/RAIDluks-home /home ext4 defaults,relatime,data=ordered 0 0
    

    grub defaults:

    GRUB_DEFAULT=0
    GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR="Antergos"
    GRUB_CMDLINE_LINUX_DEFAULT="quiet resume=UUID=46a5d903-c011-4c2a-8665-c32762987da7"
    GRUB_ENABLE_CRYPTODISK=y
    GRUB_CMDLINE_LINUX="cryptdevice=UUID=66093be7d-95ed-45bc-abb4-3c8997be27bf:luksSSD:allow-discards root=/dev/mapper/SSDluks-root"
    
    
    # Preload both GPT and MBR modules so that they are not missed
    GRUB_PRELOAD_MODULES="part_gpt part_msdos lvm"
    
    
    # Uncomment to enable Hidden Menu, and optionally hide the timeout count
    #GRUB_HIDDEN_TIMEOUT=5
    #GRUB_HIDDEN_TIMEOUT_QUIET=true
    
    
    # Uncomment to use basic console
    GRUB_TERMINAL_INPUT=console
    
    
    # Uncomment to disable graphical terminal
    #GRUB_TERMINAL_OUTPUT=console
    
    
    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo'
    GRUB_GFXMODE=auto
    
    
    # Uncomment to allow the kernel use the same resolution used by grub
    GRUB_GFXPAYLOAD_LINUX=keep
    
    
    # Uncomment if you want GRUB to pass to the Linux kernel the old parameter
    # format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
    #GRUB_DISABLE_LINUX_UUID=true
    
    
    # Uncomment to disable generation of recovery mode menu entries
    GRUB_DISABLE_RECOVERY=true
    
    
    # Uncomment and set to the desired menu colors. Used by normal and wallpaper
    # modes only. Entries specified as foreground/background.
    #GRUB_COLOR_NORMAL="light-blue/black"
    #GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
    
    
    # Uncomment one of them for the gfx desired, a image background or a gfxtheme
    #GRUB_BACKGROUND="/path/to/wallpaper"
    GRUB_THEME="/boot/grub/themes/Antergos-Default/theme.txt"
    
    
    # Uncomment to get a beep at GRUB start
    #GRUB_INIT_TUNE="480 440 1"
    
    
    #GRUB_SAVEDEFAULT="true"
    

    cryptab:

    # crypttab: mappings for encrypted partitions
    #
    # Each mapped device will be created in /dev/mapper, so your /etc/fstab
    # should use the /dev/mapper/<name> paths for encrypted devices.
    #
    # The Arch specific syntax has been deprecated, see crypttab(5) for the
    # new supported syntax.
    #
    # NOTE: Do not list your root (/) partition here, it must be set up
    # beforehand by the initramfs (/etc/mkinitcpio.conf).
    
    
    # <name> <device> <password> <options>
    luksRAID UUID=7ae2c2371-2ea1-496d-a4a8-ba36eba4ccda none luks,timeout=180
    # data1 /dev/sda3 /etc/mypassword2
    # data2 /dev/sda5 /etc/cryptfs.key
    # swap /dev/sdx4 /dev/urandom swap,cipher=aes-cbc-essiv:sha256,size=256
    # vol /dev/sdb7 none
    

    and 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
    insmod lvm
    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
    insmod luks
    insmod gcry_rijndael
    insmod gcry_rijndael
    insmod gcry_sha256
    insmod lvm
    insmod ext2
    cryptomount -u 6093be7d95ed45bcabb43c8997be27bf
    set root='lvmid/hDc2yI-mjXy-UHBY-luBy-Slx1-6P8n-b4cgFG/Igrnmq-gYX0-4GzO-MNWc-KbM5-9X15-Y2r4ku'
    if [ x$feature_platform_search_hint = xy ]; then
    search --no-floppy --fs-uuid --set=root --hint='lvmid/hDc2yI-mjXy-UHBY-luBy-Slx1-6P8n-b4cgFG/Igrnmq-gYX0-4GzO-MNWc-KbM5-9X15-Y2r4ku' c387d3d2-cd44-4a9e-8dc3-3d8fdb754d48
    else
    search --no-floppy --fs-uuid --set=root c387d3d2-cd44-4a9e-8dc3-3d8fdb754d48
    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=en_US
    insmod gettext
    fi
    terminal_input console
    terminal_output gfxterm
    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-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 04bbdb8b-399c-4f9d-bcb3-eb23c1924597
    else
    search --no-floppy --fs-uuid --set=root 04bbdb8b-399c-4f9d-bcb3-eb23c1924597
    fi
    insmod gfxmenu
    loadfont ($root)/grub/themes/Antergos-Default/ascii.pf2
    loadfont ($root)/grub/themes/Antergos-Default/rlwy14.pf2
    loadfont ($root)/grub/themes/Antergos-Default/rlwy16.pf2
    insmod png
    set theme=($root)/grub/themes/Antergos-Default/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/10_antergos ###
    menuentry 'Antergos Linux' --class antergos --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c387d3d2-cd44-4a9e-8dc3-3d8fdb754d48' {
    load_video
    set gfxpayload=keep
    insmod gzio
    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-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 04bbdb8b-399c-4f9d-bcb3-eb23c1924597
    else
    search --no-floppy --fs-uuid --set=root 04bbdb8b-399c-4f9d-bcb3-eb23c1924597
    fi
    echo 'Loading linux kernel ...'
    linux /vmlinuz-linux root=/dev/mapper/SSDluks-root rw cryptdevice=UUID=66093be7d-95ed-45bc-abb4-3c8997be27bf:luksSSD:allow-discards root=/dev/mapper/SSDluks-root quiet resume=UUID=46a5d903-c011-4c2a-8665-c32762987da7
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux.img
    }
    submenu 'Advanced options for Antergos Linux' $menuentry_id_option 'gnulinux-advanced-c387d3d2-cd44-4a9e-8dc3-3d8fdb754d48' {
    menuentry 'Antergos Linux' --class antergos --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c387d3d2-cd44-4a9e-8dc3-3d8fdb754d48' {
    load_video
    set gfxpayload=keep
    insmod gzio
    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-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 04bbdb8b-399c-4f9d-bcb3-eb23c1924597
    else
    search --no-floppy --fs-uuid --set=root 04bbdb8b-399c-4f9d-bcb3-eb23c1924597
    fi
    echo 'Loading linux kernel ...'
    linux /vmlinuz-linux root=/dev/mapper/SSDluks-root rw cryptdevice=UUID=66093be7d-95ed-45bc-abb4-3c8997be27bf:luksSSD:allow-discards root=/dev/mapper/SSDluks-root quiet resume=UUID=46a5d903-c011-4c2a-8665-c32762987da7
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux.img
    }
    menuentry 'Antergos Linux - Fallback' --class antergos --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c387d3d2-cd44-4a9e-8dc3-3d8fdb754d48' {
    load_video
    set gfxpayload=keep
    insmod gzio
    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-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 04bbdb8b-399c-4f9d-bcb3-eb23c1924597
    else
    search --no-floppy --fs-uuid --set=root 04bbdb8b-399c-4f9d-bcb3-eb23c1924597
    fi
    echo 'Loading linux kernel ...'
    linux /vmlinuz-linux root=/dev/mapper/SSDluks-root rw cryptdevice=UUID=66093be7d-95ed-45bc-abb4-3c8997be27bf:luksSSD:allow-discards root=/dev/mapper/SSDluks-root quiet resume=UUID=46a5d903-c011-4c2a-8665-c32762987da7
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux-fallback.img
    }
    menuentry 'Antergos Linux LTS Kernel' --class antergos --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c387d3d2-cd44-4a9e-8dc3-3d8fdb754d48' {
    load_video
    set gfxpayload=keep
    insmod gzio
    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-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 04bbdb8b-399c-4f9d-bcb3-eb23c1924597
    else
    search --no-floppy --fs-uuid --set=root 04bbdb8b-399c-4f9d-bcb3-eb23c1924597
    fi
    echo 'Loading linux-lts kernel ...'
    linux /vmlinuz-linux-lts root=/dev/mapper/SSDluks-root rw cryptdevice=UUID=66093be7d-95ed-45bc-abb4-3c8997be27bf:luksSSD:allow-discards root=/dev/mapper/SSDluks-root quiet resume=UUID=46a5d903-c011-4c2a-8665-c32762987da7
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux-lts.img
    }
    menuentry 'Antergos Linux LTS Kernel - Fallback' --class antergos --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c387d3d2-cd44-4a9e-8dc3-3d8fdb754d48' {
    load_video
    set gfxpayload=keep
    insmod gzio
    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-bios=hd0,gpt5 --hint-efi=hd0,gpt5 --hint-baremetal=ahci0,gpt5 04bbdb8b-399c-4f9d-bcb3-eb23c1924597
    else
    search --no-floppy --fs-uuid --set=root 04bbdb8b-399c-4f9d-bcb3-eb23c1924597
    fi
    echo 'Loading linux-lts kernel ...'
    linux /vmlinuz-linux-lts root=/dev/mapper/SSDluks-root rw cryptdevice=UUID=66093be7d-95ed-45bc-abb4-3c8997be27bf:luksSSD:allow-discards root=/dev/mapper/SSDluks-root quiet resume=UUID=46a5d903-c011-4c2a-8665-c32762987da7
    echo 'Loading initial ramdisk ...'
    initrd /initramfs-linux-lts-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 ###
    

    And mkinitpcio

    # vim:set ft=sh
    # MODULES
    # The following modules are loaded before any boot hooks are
    # run. Advanced users may wish to specify all system modules
    # in this array. For instance:
    # MODULES="piix ide_disk reiserfs"
    MODULES=""
    
    
    # BINARIES
    # This setting includes any additional binaries a given user may
    # wish into the CPIO image. This is run last, so it may be used to
    # override the actual binaries included by a given hook
    # BINARIES are dependency parsed, so you may safely ignore libraries
    BINARIES=""
    
    
    # FILES
    # This setting is similar to BINARIES above, however, files are added
    # as-is and are not parsed in any way. This is useful for config files.
    FILES=""
    
    
    # HOOKS
    # This is the most important setting in this file. The HOOKS control the
    # modules and scripts added to the image, and what happens at boot time.
    # Order is important, and it is recommended that you do not change the
    # order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
    # help on a given hook.
    # 'base' is _required_ unless you know precisely what you are doing.
    # 'udev' is _required_ in order to automatically load modules
    # 'filesystems' is _required_ unless you specify your fs modules in MODULES
    # Examples:
    ## This setup specifies all modules in the MODULES setting above.
    ## No raid, lvm2, or encrypted root is needed.
    # HOOKS="base"
    #
    ## This setup will autodetect all modules for your system and should
    ## work as a sane default
    # HOOKS="base udev autodetect block filesystems"
    #
    ## This setup will generate a 'full' image which supports most systems.
    ## No autodetection is done.
    # HOOKS="base udev block filesystems"
    #
    ## This setup assembles a pata mdadm array with an encrypted root FS.
    ## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
    # HOOKS="base udev block mdadm encrypt filesystems"
    #
    ## This setup loads an lvm2 volume group on a usb device.
    # HOOKS="base udev block lvm2 filesystems"
    #
    ## NOTE: If you have /usr on a separate partition, you MUST include the
    # usr, fsck and shutdown hooks.
    HOOKS="base udev autodetect modconf block keyboard keymap encrypt lvm2 resume filesystems fsck"
    
    
    # COMPRESSION
    # Use this to compress the initramfs image. By default, gzip compression
    # is used. Use 'cat' to create an uncompressed image.
    #COMPRESSION="gzip"
    #COMPRESSION="bzip2"
    #COMPRESSION="lzma"
    #COMPRESSION="xz"
    #COMPRESSION="lzop"
    #COMPRESSION="lz4"
    
    
    # COMPRESSION_OPTIONS
    # Additional options for the compressor
    #COMPRESSION_OPTIONS=""
    
    
  • Why is no one helping this person out?

    This is way out of my league, but surely someone else might know what to do?

    Keep trying, never give up. In the end, you will find that it was all worth it

    Community ISO: https://antergoscommunityeditions.wordpress.com
    Linux Basics: https://linuxbasicssite.wordpress.com

  • Although it just occurred to me that perhaps if you add more popular tags such as “installation” “boot” “error” “install” and “grub” it might help your thread to become more noticable:grinning:

    Keep trying, never give up. In the end, you will find that it was all worth it

    Community ISO: https://antergoscommunityeditions.wordpress.com
    Linux Basics: https://linuxbasicssite.wordpress.com

  • As you yourself said…

    @A-User

    This is way out of my league,

    Also, for. more experienced ones, they need their time to dig into, gathering information.
    Troubleshooting doesn t always come easy (iwhen it does)…:angel:

    1.Antergos Linux KDE plasma / Gnome 2.Ubuntu 17.10 64bit Unity
    Intel Core2 Duo CPU P8400 2.26GHz‖ RAM 3908 MiB ‖ Dell Inc. 0F328M - Dell Inc. Latitude E6500
    Intel Mobile 4 Series Chipset Integrated Graphics [8086:2a42] {i915

  • Thanks for the reminder:slight_smile:

    Keep trying, never give up. In the end, you will find that it was all worth it

    Community ISO: https://antergoscommunityeditions.wordpress.com
    Linux Basics: https://linuxbasicssite.wordpress.com

  • Hi,

    I have new info;)

    I tried to execute command:

    # grub-install --target=x86_64-efi --efi-directory=esp_mount --bootloader-id=grub
    

    but i have error:

    Installing for x86_64-efi platform.
    efibootmgr: EFI variables are not supported on this system.
    efibootmgr: EFI variables are not supported on this system.
    Installation finished. No error reported. 
    

    and also i tried:

    # grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub
    

    Any idea why?

  • Not a clue…

    Wish I could be more helpful:slight_smile:

    Keep trying, never give up. In the end, you will find that it was all worth it

    Community ISO: https://antergoscommunityeditions.wordpress.com
    Linux Basics: https://linuxbasicssite.wordpress.com

  • Hi,

    figure out what to do to execute grub-mkconfig without issue. Just unplug sdd before…;)

    But initramfs still freezing.
    Any ideas why?

    I made changes in grub default, mkinitcpio, fstab, crypttab and encrypt hooks, but still the same.

  • Which returns:

    $ findmnt
    

    ?

    Autodidacta en la VIDA …y en Linux, también.

  • findmnt
    TARGET SOURCE FSTYPE OPTIONS
    / /dev/mapper/SSDluks-root ext4 rw,relatime,data=ordered
    ├─/home /dev/mapper/RAIDluks-home
    │ ext4 rw,relatime,data=ordered
    ├─/var /dev/mapper/RAIDluks-var ext4 rw,relatime,data=ordered
    ├─/boot /dev/sda5 ext4 rw,relatime,data=ordered
    │ └─/boot/efi /dev/sda1 vfat rw,relatime,fmask=0022,dmask=0022
    ├─/proc proc proc rw,nosuid,nodev,noexec,relatime
    ├─/dev dev devtmpf rw,nosuid,relatime,size=8139528k,
    ├─/sys sys sysfs rw,nosuid,nodev,noexec,relatime
    └─/run/lvm run[/lvm] tmpfs rw,nosuid,nodev,relatime,mode=755
    
  • $ sudo mount /dev/sda1 /mnt
    $ sudo grub-install --boot-directory=/mnt/boot /dev/sda
    $ sudo grub-install --root-directory=/mnt /dev/sda
    

    Autodidacta en la VIDA …y en Linux, también.

  • Hi, two things:

    I am in chroot, from live iso.

    Where I have to do this commands, and why mount sda1 to mnt if already is mounted to:
    In live, mnt/boot/efi
    In chroot to boot/efi

    Findmount i executed in chroot environment.

    M.

  • Mount and reinstall the boot from a Live and see what happens, it may work like no, but in view of the events, is it up to you to try?

    Findmnt is just to know how and where the partitions are mounted, you do not need to do it in the chroot environment.

    Autodidacta en la VIDA …y en Linux, también.

  • Ok, so findmnt output above is from chroot.
    In home i will try it.

    BTW, Can You tell me exacly where should be mounted partition EFI?
    in /boot/ or /boot/efi?

  • @skawikk said in multi-boot full encrypt LVM-on-LUKS W7-deb-anter SSD+raid GRUB problem:

    ├─sda5 8:5 0 1G 0 part /boot

    I am not an expert, but I think I should mount it as / boot on the / dev / sda5 partition that I see, it is where it has mounted antergos.

    At least that’s what I would do …

    @Community-Moderators
    @developers

    Autodidacta en la VIDA …y en Linux, también.

  • Hi,

    only:

     sudo grub-install --root-directory=/mnt /dev/sda
    

    will go without error.

    $ sudo grub-install --boot-directory=/mnt/boot /dev/sda
    

    came with: No EFI directory.

    But, now…I have grub rescue mode.

  • Ok, i’v done that, i was installed grub with command:

    # grub-install --target=x86_64-efi --efi-directory=esp_mount --bootloader-id=grub
    

    I’v found that efivarfs was not mounted, so, i done that. Here’s console out:

    [[email protected] /]# efivar-tester
    UEFI variables not supported on this machine.
    [[email protected] /]# exit
    exit
    [[email protected] antergos]# modprobe efivars
    modprobe: FATAL: Module efivars not found in directory /lib/modules/4.10.13-1-ARCH
    [[email protected] antergos]# chroot /mnt
    [[email protected] /]# modprobe efivars
    modprobe: FATAL: Module efivars not found in directory /lib/modules/4.10.13-1-ARCH
    [[email protected] /]# efivar-tester
    UEFI variables not supported on this machine.
    [[email protected] /]# modprobe efivar
    modprobe: FATAL: Module efivar not found in directory /lib/modules/4.10.13-1-ARCH
    [[email protected] /]# efivar -l
    efivar: error listing variables: Function not implemented
    [[email protected] /]# zgrep CONFIG_EFI /proc/config.gz
    CONFIG_EFI_PARTITION=y
    CONFIG_EFI=y
    CONFIG_EFI_STUB=y
    CONFIG_EFI_MIXED=y
    # CONFIG_EFI_VARS is not set
    CONFIG_EFI_ESRT=y
    CONFIG_EFI_RUNTIME_MAP=y
    # CONFIG_EFI_FAKE_MEMMAP is not set
    CONFIG_EFI_RUNTIME_WRAPPERS=y
    CONFIG_EFI_CAPSULE_LOADER=m
    # CONFIG_EFI_TEST is not set
    CONFIG_EFI_DEV_PATH_PARSER=y
    CONFIG_EFIVAR_FS=y
    # CONFIG_EFI_PGT_DUMP is not set
    [[email protected] /]# exit
    exit
    [[email protected] antergos]# mount -t efivars efivars /sys/firmware/efi/efivars
    mount: unknown filesystem type 'efivars'
    [[email protected] antergos]# mount -t efivarfs efivarfs /sys/firmware/efi/efivars
    mount: efivarfs is already mounted or /sys/firmware/efi/efivars busy
    efivarfs is already mounted on /sys/firmware/efi/efivars
    [[email protected] antergos]# chroot /mnt
    [[email protected] /]# mount -t efivarfs efivarfs /sys/firmware/efi/efivars
    [[email protected] /]# efivar -l
    4a67b082-0a4c-41cf-b6c7-440b29bb8c4f-LoaderTimeExecUSec
    4a67b082-0a4c-41cf-b6c7-440b29bb8c4f-LoaderEntrySelected
    4a67b082-0a4c-41cf-b6c7-440b29bb8c4f-LoaderTimeMenuUSec
    4a67b082-0a4c-41cf-b6c7-440b29bb8c4f-LoaderImageIdentifier
    4a67b082-0a4c-41cf-b6c7-440b29bb8c4f-LoaderFirmwareType
    4a67b082-0a4c-41cf-b6c7-440b29bb8c4f-LoaderFirmwareInfo
    4a67b082-0a4c-41cf-b6c7-440b29bb8c4f-LoaderInfo
    4a67b082-0a4c-41cf-b6c7-440b29bb8c4f-LoaderTimeInitUSec
    1b838190-4625-4ead-abc9-cd5e6af18fe0-HiiDB
    8be4df61-93ca-11d2-aa0d-00e098032b8c-BootCurrent
    8be4df61-93ca-11d2-aa0d-00e098032b8c-PlatformLangCodes
    b08f97ff-e6e8-4193-a997-5e9e9b0adb32-CpuSetupVolatileData
    8be4df61-93ca-11d2-aa0d-00e098032b8c-ErrOutDev
    8be4df61-93ca-11d2-aa0d-00e098032b8c-BootOptionSupport
    8be4df61-93ca-11d2-aa0d-00e098032b8c-ConInDev
    8be4df61-93ca-11d2-aa0d-00e098032b8c-ConOutDev
    9cb2e73f-7325-40f4-a484-659bb344c3cd-SOFTWAREGUARDSTATUS
    ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-SetupACPIRAM
    8be4df61-93ca-11d2-aa0d-00e098032b8c-OsIndicationsSupported
    01368881-c4ad-4b1d-b631-d57a8ec8db6b-FPDT_Volatile
    8be4df61-93ca-11d2-aa0d-00e098032b8c-PKDefault
    8be4df61-93ca-11d2-aa0d-00e098032b8c-KEKDefault
    8be4df61-93ca-11d2-aa0d-00e098032b8c-dbDefault
    8be4df61-93ca-11d2-aa0d-00e098032b8c-dbxDefault
    8be4df61-93ca-11d2-aa0d-00e098032b8c-VendorKeys
    8be4df61-93ca-11d2-aa0d-00e098032b8c-SignatureSupport
    8be4df61-93ca-11d2-aa0d-00e098032b8c-SecureBoot
    8be4df61-93ca-11d2-aa0d-00e098032b8c-SetupMode
    8be4df61-93ca-11d2-aa0d-00e098032b8c-DeployedMode
    8be4df61-93ca-11d2-aa0d-00e098032b8c-AuditMode
    ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-UsbSupport
    d1405d16-7afc-4695-bb12-41459d3695a2-NetworkStackVar
    69ecc1be-a981-446d-8eb6-af0e53d06ce8-NewOptionPolicy
    ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-QFanConfig
    ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-SetupHWMOneof
    560bf58a-1e0d-4d7e-953f-2980a261e031-NV_SIO0_LD2
    5e9a565f-cdc0-413b-ad13-1fe8713ffdcd-PcieSataModVar
    90d93e09-4e91-4b3d-8c77-c82ff10e3c81-CpuSmm
    8be4df61-93ca-11d2-aa0d-00e098032b8c-Timeout
    8be4df61-93ca-11d2-aa0d-00e098032b8c-PlatformLang
    b540a530-6978-4da7-91cb-7207d764d262-LastBoot
    8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot0006
    8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot0008
    8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot0007
    8be4df61-93ca-11d2-aa0d-00e098032b8c-BootOrder
    8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot0001
    8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot0000
    8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot0005
    8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot0004
    ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-QFan
    7d3dceee-cbce-4ea7-8709-6e552f1edbde-TpmServFlags
    a8a2093b-fefa-43c1-8e62-ce526847265e-AMITCGPPIVAR
    7d3dceee-cbce-4ea7-8709-6e552f1edbde-TPMPERBIOSFLAGS
    a3a3b874-7636-4182-ba1e-f52c584494e3-VARSTORE_OCMR_SETTINGS_NAME
    ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-Setup
    5fc52485-15dd-434a-8c89-c2658a41dec1-LegacyDevicesBuffer
    f2af59e7-86c4-4f6e-8fbf-4d9ae6cb7fcf-LegacyGroupMappingBuffer
    4b3082a3-80c6-4d7e-9cd0-583917265df1-MaximumTableSize
    4b3082a3-80c6-4d7e-9cd0-583917265df1-SmbiosScratchBuffer
    4b3082a3-80c6-4d7e-9cd0-583917265df1-SmbiosV3EntryPointTable
    4b3082a3-80c6-4d7e-9cd0-583917265df1-SmbiosEntryPointTable
    b540a530-6978-4da7-91cb-7207d764d262-FastBootOption
    ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-BootFromUSB
    ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-FirstBootFlag
    81c76078-bfde-4368-9790-570914c01a65-SetUpdateCountVar
    73dad563-8f27-42af-918f-8651eb0a93ef-Ep
    4db88a62-6721-47a0-9082-280b00323594-FPLayoutOrder
    4034591c-48ea-4cdc-864f-e7cb61cfd0f2-BiosEventLog
    15a9dd61-e4f8-4a99-80db-353b13d76490-NVRAM_Verify
    a6f44860-b2e8-4fda-bd45-78368994b6ae-HddSmartInfo
    64192dca-d034-49d2-a6de-65a829eb4c74-IccAdvancedSetupDataVar
    5432122d-d034-49d2-a6de-65a829eb4c74-MeSetupStorage
    45cf35f6-0d6e-4d04-856a-0370a5b16f53-DefaultBootOrder
    3c4ead08-45ae-4315-8d15-a60eaa8caf69-DefaultLegacyDevOrder
    a56074db-65fe-45f7-bd21-2d2bdd8e9652-OldLegacyDevOrder
    8be4df61-93ca-11d2-aa0d-00e098032b8c-ErrOut
    8be4df61-93ca-11d2-aa0d-00e098032b8c-ConIn
    8be4df61-93ca-11d2-aa0d-00e098032b8c-ConOut
    e20939be-32d4-41be-a150-897f85d49829-MemoryOverwriteRequestControl
    bb983ccf-151d-40e1-a07b-4a17be168292-MemoryOverwriteRequestControlLock
    ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-PreVgaInfo
    ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-SetupAPMFeatures
    c60aa7f6-e8d6-4956-8ba1-fe26298f5e87-EPCBIOS
    4b3082a3-80c6-4d7e-9cd0-583917265df1-WriteOnceStatus
    eda41d22-7729-5b91-b3ee-ba619921cefa-IntUcode
    8be4df61-93ca-11d2-aa0d-00e098032b8c-OsIndications
    074e1e48-8132-47a1-8c2c-3f14ad9a66dc-AmiEntryS3Addr
    4da4f952-2516-4d06-8975-65036403a8c7-RstOptaneConfig
    ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-EXTFanCard
    ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-SetupHWMFeatures
    ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-SetupCpuFeatures
    3fb1e528-ed54-46fb-acad-9da534dd1789-SmartDisplay
    2e0585e9-2b5e-4f1e-bbeb-e632c5ef44b8-AsusRomLayout
    c89dc9c7-5105-472c-a743-b1621e142b41-CMOSfailflag
    cdcb44e7-b357-4744-8c21-edc8b0020f50-SmartHSIOMEUnlock
    01368881-c4ad-4b1d-b631-d57a8ec8db6b-MonotonicCounter
    97e8965f-c761-4f48-b6e4-9ffa9cb2a2d6-DeploymentModeNv
    ec87d643-eba4-4bb5-a1e5-3f3e36b20da9-ASUSBIOSPath
    e57abcbd-9456-4639-8f65-06aab41d840f-NvHdd5
    e57abcbd-9456-4639-8f65-06aab41d840f-NvHdd1
    e57abcbd-9456-4639-8f65-06aab41d840f-NvHdd0
    4034591c-48ea-4cdc-864f-e7cb61cfd0f2-MyFav
    4034591c-48ea-4cdc-864f-e7cb61cfd0f2-FTMActiveFlag
    8be4df61-93ca-11d2-aa0d-00e098032b8c-Boot0003
    a56074db-65fe-45f7-bd21-2d2bdd8e9652-LegacyDevOrder
    c811fa38-42c8-4579-a9bb-60e94eddfb34-AMITSESetup
    8be4df61-93ca-11d2-aa0d-00e098032b8c-PK
    8be4df61-93ca-11d2-aa0d-00e098032b8c-KEK
    d719b2cb-3d3a-4596-a3bc-dad00e67656f-db
    d719b2cb-3d3a-4596-a3bc-dad00e67656f-dbx
    4599d26f-1a11-49b8-b91f-858745cff824-StdDefaults
    [[email protected] /]# grub-install --target=x86_64-efi --efi-directory=/boot/efi/ --bootloader-id=grub
    Installing for x86_64-efi platform.
    Installation finished. No error reported.
    [[email protected] /]# mkinitcpio -g /boot/initramfs-linux.img -k 4.11.3-1-ARCH
    ==> Starting build: 4.11.3-1-ARCH
    -> Running build hook: [base]
    -> Running build hook: [udev]
    -> Running build hook: [mdadm]
    -> Running build hook: [autodetect]
    -> Running build hook: [modconf]
    -> Running build hook: [keyboard]
    -> Running build hook: [keymap]
    -> Running build hook: [block]
    -> Running build hook: [encrypt]
    -> Running build hook: [lvm2]
    -> Running build hook: [filesystems]
    -> Running build hook: [resume]
    -> Running build hook: [fsck]
    ==> Generating module dependencies
    ==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
    ==> Image generation successful
    [[email protected] /]# grub-mkconfig -o /boot/grub/grub.cfg
    Generating grub configuration file ...
    Found theme: /boot/grub/themes/Antergos-Default/theme.txt
    Found linux image: /boot/vmlinuz-linux
    Found initrd image: /boot/initramfs-linux.img
    Found fallback initramfs image: /boot/initramfs-linux-fallback.img
    Found linux image: /boot/vmlinuz-linux-lts
    Found initrd image: /boot/initramfs-linux-lts.img
    Found fallback initramfs image: /boot/initramfs-linux-lts-fallback.img
    done
    [[email protected] /]#
    

    but initramfs still freeze;(

  • Anyone can help?

initramfs2 luks14 raid3 grub72 Posts 22Views 1070
Log in to reply