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