[kwlug-disc] Hard Disk from UEFI mobo to BIOS mobo

Khalid Baheyeldin kb at 2bits.com
Mon Feb 14 16:55:34 EST 2022


Turns out that I also needed /run to be bound from the USB drive
to the chroot of the main disk:

# Figure out which partition to mount
lsblk
# Create a mount point
mkdir /mnt/r
# Mount the hard disk
mount /dev/sda2 /mnt/r

# Bind the mount points
mount --bind /dev /mnt/r/dev
mount --bind /dev/pts /mnt/r/dev/pts
mount --bind /proc /mnt/r/proc
mount --bind /sys /mnt/r/sys
mount --bind /run /mnt/r/run

# Chroot
chroot /mnt/r

Once in chroot, I had to fiddle with /etc/resolv.conf and its symlink that
points to /run/resolvconf/resolv.conf

Then the Ubuntu repos would resolve.

One note of caution: if you install grub-pc, then grub-efi will be
uninstalled.
There does not seem to be a way to have them both on the system at the
same time. A restriction to keep in mind.

Once that is complete, all worked well.

Thanks Remy ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20220214/66cc04f5/attachment.htm>


More information about the kwlug-disc mailing list