On Mon, 8 Jun 2020 16:02:35 +0000, Raffaele BELARDI wrote:

> I am trying to switch an existing and fully working HDD, MBR-based
> ~amd64 LXDE/Kodi setup to a 500Gb SSD. I also took the opportunity to
> dual boot Gentoo with Win10 on the same SSD. As suggested by the Wiki
> [1] I first installed Win letting it GPT-partition the SSD and leaving
> some empty space for a Gentoo ext4 root partition. Then I copied the
> Gentoo root from the HDD to the SSD ('cp -a' except /dev, /sys and
> /proc which I recreated empty on the SSD), UEFI-booted a SysRescue USB
> and installed GRUB2 to the Windows-created ESP. Now, while the
> chain-loaded Windows boots happily, I'm not able to get any GUI or
> terminal interface for SSD-booted Linux. The old, HDD-based
> installation is still available and running fine.

You're missing device nodes in /dev that are needed before udev populates
it. Simply excluding the virtual filesystems as you have results in
these files not being copied as they are hidden behind the virtual
/dev/ mounted from used. The way I clone a root device is

mkdir -p /mnt/root
mount --bind / /mnt/root
rsync -a /mnt/root/ /mnt/new/device/

That preserves files that are otherwise hidden by mounted filesystems.


-- 
Neil Bothwick

Things are more like they are today than they ever have been before.

Attachment: pgpSRCLRd_hTY.pgp
Description: OpenPGP digital signature

Reply via email to