On Mon, 8 Jun 2020 18:07:37 +0000, Raffaele BELARDI wrote: > > -----Original Message----- > > From: Neil Bothwick <[email protected]> > > Sent: Monday, June 8, 2020 18:07 > > To: [email protected] > > 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
It won't contain all devices, just the bare minimum needed to open a console etc. The rest are created dynamically when udev starts, all you need before then is enough to get you to that point. > But it did not fix the issue. Then you have a different problem, since the dev directory of the root partition (which is not the same as /dev on the booted system) should now contain the same on both disks. -- Neil Bothwick Isn't it a bit unnerving that doctors call what they do "practice?"
pgpsNBeb0NmuZ.pgp
Description: OpenPGP digital signature

