> -----Original Message-----
> From: Neil Bothwick <n...@digimed.co.uk>
> Sent: Monday, June 8, 2020 18:07
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] clone root from HDD to SSD causes no video with
> NVIDIA driver
> 
> 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.
> 
I tried this:
# mkdir -p /mnt/root
# mount --bind / /mnt/root

The bind-mounted dev/ does not contain all devices, in particular the nvidia 
ones are missing. BTW, I thought these were created dynamically during the 
module load.
Then, for a quick test:
# rsync -a /mnt/root/dev/* /mnt/new/device/dev

But it did not fix the issue.

raffaele

Reply via email to