You are not logged in.
So, I am trying to copy my current Arch installation on SSD1 to a new SSD2. I followed these steps from the wiki for installing from a Arch host such that I:
created /, /home and swap partitions on SSD2 and mounted them onto my live host on SSD1
installed Arch onto SSD2 with:
pacstrap -c /mnt baseconfigured Arch on SSD2 as per the installation guide on the Arch wiki
cloned SSD1 into SSD2 with:
rsync -PraxX / /mnt
rsync -PraxX /home /mnt/homeran:
genfstab -U /mnt >> /mnt/etc/fstab
echo "nzxt" > /mnt/etc/hostname
rm /mnt/etc/machine-idinstalled grub on SSD2 with:
grub-install --target=i386-pc /dev/sdbchroot into SSD2 to generate grub config with:
grub-mkconfig -o /boot/grub/grub.cfgThe problem I am running into is that when I disconnect SSD1 and boot from SSD2, I get:
error: no such device: {UUID of SSD1's / partition}.
error: no such filesystem.
Booting into grub rescue
grub rescue>However when I check SSD2's /boot/grub/grub.cfg, there is no mention of the UUID. On Line 146 of this file, I see:
linux /boot/vmlinuz-linux root=UUID=82c7a2ef-a680-4300-b9b3-67a9df9c5e5e rw quietwhere 82c... is the correct UUID for my / partition of SSD2; this same line in SSD1's grub.cfg is different. What am I doing wrong?
Last edited by FuturisticFume (2018-12-20 06:17:01)
Offline
Did you regenerate your initramfs?
Offline
The grub rescue shell is there because grub could not detect the disk in the first place, in order to acquire and read the grub.cfg -- this is all happening in the embedded grub executable.
In order to point to the right disk for grub.cfg, grub-install has the option --boot-directory, which if you do not specify this flag, will default to /boot/grub.
Which is what happened, it defaulted to /boot/grub when you ran grub-install outside of the chroot. You're supposed to do it from inside of the chroot. Instead, the autodetection detected the wrong directory.
Managing AUR repos The Right Way -- aurpublish (now a standalone tool)
Offline
Did you regenerate your initramfs?
I tried:
arch-chroot /mnt
mkinitcpio -p linuxRebooted and no luck.
...when you ran grub-install outside of the chroot.
Solved!
Offline