• grub-mkconfig: command not found for arch-chroot


    Hi everyone.
    I’ve arch-chrooted a number of times and have not really had qualms about venturing to use it.
    I’ve come up against a wall of whcih after some Googling haven’t been able to successfully find a qualified resolution for.

    Scenario: Manjaro looks after GRUB.
    Antergos is on another partition of which it’s booting is managed by Manjaro’s GRUB boot profile.
    I cannot boot into Antergos.

    Have used an Antergos ISO in RAM to try to update it’s grub (because during it’s initial install, there isn’t any option of not installing a bootloader, hence Antergos’ boot is on it’s partition but it’s booting up is managed by Manjaro’s.

    So far, it’s been a no-go.
    Here is some info:

    inxi -oP
    Resuming in non X mode: xrandr not found. For package install advice run: inxi --recommends
    Partition: ID-1: / size: 472G used: 8.6G (2%) fs: btrfs dev: /dev/sda3
               ID-2: /home size: 472G used: 8.6G (2%) fs: btrfs dev: /dev/sda3
               ID-3: swap-1 size: 16.78GB used: 0.00GB (0%) fs: swap dev: /dev/sda2
    Unmounted: ID-1: /dev/sda5 size: 476.74G fs: ext4 label: Antergos uuid: 33fd3d3d-c9c3-4f9c-852d-e86c69643873
    

    Having managed to go into Antergos’s fstab file, this is what it looks like:

    # /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=EECB-ED41 /boot/efi vfat defaults,relatime 0 0
    UUID=64597b07-1732-4a99-9a61-ac5fdd017a72 swap swap defaults 0 0
    UUID=33fd3d3d-c9c3-4f9c-852d-e86c69643873 / ext4 defaults,relatime,data=ordered 0 1
    

    And this is Manjaro’s fstab file:

    UUID=EECB-ED41                            /boot/efi      vfat    defaults,noatime 0 2
    UUID=64597b07-1732-4a99-9a61-ac5fdd017a72 swap           swap    defaults,noatime 0 2
    UUID=33c7bc3b-46b6-4e38-9e61-5b0a5c2e0e21 /              btrfs   [email protected],defaults,noatime,space_cache,autodefrag 0 1
    UUID=33c7bc3b-46b6-4e38-9e61-5b0a5c2e0e21 /home          btrfs   [email protected],defaults,noatime,space_cache,autodefrag 0 2
    

    the UUID=EECB-ED41 near the top are identical as should be.
    I had to edit the UUID=EECB-ED41 via tty for Antergo’s fstab because initiallly these two fstab files were different.
    Antergos etc/fstab should closely follow Manjaro’s etc/fstab file with particular respect to the UUID=EECB-ED41

    The terminals output while I had another Antergos in RAM is as follows and the ‘arch-chroot’ error can be seen near the bottom.

    I’ve provided some spaces for ease of viewing the output.

    [email protected] ~]$ lsblk
    NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    loop0    7:0    0   1.8G  1 loop /run/archiso/sfs/root-image
    sda      8:0    0 931.5G  0 disk 
    ├─sda1   8:1    0   156M  0 part 
    ├─sda2   8:2    0  15.6G  0 part 
    ├─sda3   8:3    0 471.8G  0 part 
    └─sda5   8:5    0   444G  0 part 
    sdb      8:16   1  14.9G  0 disk 
    ├─sdb1   8:17   1   1.9G  0 part /run/archiso/bootmnt
    └─sdb2   8:18   1    64M  0 part 
    
    [[email protected] ~]$ sudo su
    [[email protected] antergos]# mkdir /mnt/arch
    [[email protected] antergos]# mount /dev/sda1 /mnt/arch
    [[email protected] antergos]# mount /dev/sda5 /mnt/arch
    [[email protected] antergos]# mount /dev/sda5 /mnt/arch/home
    [[email protected] antergos]# cd /mnt/arch
    [[email protected] arch]# mount -t proc proc proc/
    [[email protected] arch]# mount --rbind /sys sys/
    
    
    At this point, I am now in Antergos partition and  I import Antergos's profile 
    while I am in arch-chroot
    
    [[email protected] arch]# chroot /mnt/arch /bin/bash
    [[email protected] /]# source /etc/profile
    [[email protected] /]# export PS1="(chroot) $PS1"
    
    (chroot) [[email protected] /]# grub-mkconfig -o /boot/grub/grub.cfg
    bash: grub-mkconfig: command not found
    (chroot) [[email protected] /]# arch-chroot
    bash: arch-chroot: command not found
    (chroot) [[email protected] /]# sudo su
    [[email protected] /]# grub-mkconfig -o /boot/grub/grub.cfg
    bash: grub-mkconfig: command not found
    

    Looking for some help to finish this off, please.

    Download " antergos-wallpapers-extra " and enjoy community sponsored wallpapers.

    Use the "Linux Beginner Search Engine"

    https://cse.google.com/cse/home?cx=017607476515012185699:b_owgx6xyi0

  • @Modisc said in grub-mkconfig: command not found for arch-chroot:

    Antergos is on another partition of which it’s booting is managed by Manjaro’s GRUB boot profile.

    So GRUB is controled by Manjaro? if so you need to update grub at manjaro.

    Portergos site
    https://github.com/Portergos/portergos-iso

    Still in love with Antergos (default OS)
    I3wm

    Linux newbie since 06/2016

  • @Modisc said in grub-mkconfig: command not found for arch-chroot:

    [[email protected] antergos]# mount /dev/sda1 /mnt/arch
    [[email protected] antergos]# mount /dev/sda5 /mnt/arch
    [[email protected] antergos]# mount /dev/sda5 /mnt/arch/home

    double typo inside this… mounted sda1+ onto the same mounting point and then the same device onto / and home…

    If:

    • /dev/sda1 is EFI
    • /dev/sda2 is swap
    • /dev/sda3 is /home ?
    • /dev/sda5 is Antergos / root ?

    it should be done like this:

    mount /dev/sda5 /mnt/arch/
    mount /dev/sda1 /mnt/arch/boot/efi
    mount /dev/sda3 /mnt/arch/home
    arch-chroot /mnt/arch
    

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • @joekamprad
    I see the double typo that you were referring too.
    Got it now.

    However, I question that I would have needed to mount /dev/sda3 though as that is for the Manjaro system and as my main concern was for Antergos.

    Regardless, the fstab for /dev/sda5 being for Antergos is as should be.
    So this issue is solved.

    Oh and @fernandomaroto , yes I"m aware of what you were referring to but the issue was actually at Antergos’s end.
    Needed to fix Antergos 's file first because it couldn’t find a particular partition.
    UUID was wrong.

    Regardless, thanks both of you. The fstab for Antergos is as should be now.
    Able to boot properly now into /dev/sda5.

    Download " antergos-wallpapers-extra " and enjoy community sponsored wallpapers.

    Use the "Linux Beginner Search Engine"

    https://cse.google.com/cse/home?cx=017607476515012185699:b_owgx6xyi0

grub-mkconfig1 arch-chroot1 Posts 4Views 1018
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.