1 |
> -----Original Message----- |
2 |
> From: Neil Bothwick <neil@××××××××××.uk> |
3 |
> Sent: Monday, June 8, 2020 18:07 |
4 |
> To: gentoo-user@l.g.o |
5 |
> Subject: Re: [gentoo-user] clone root from HDD to SSD causes no video with |
6 |
> NVIDIA driver |
7 |
> |
8 |
> You're missing device nodes in /dev that are needed before udev populates |
9 |
> it. Simply excluding the virtual filesystems as you have results in these files |
10 |
> not being copied as they are hidden behind the virtual /dev/ mounted from |
11 |
> used. The way I clone a root device is |
12 |
> |
13 |
> mkdir -p /mnt/root |
14 |
> mount --bind / /mnt/root |
15 |
> rsync -a /mnt/root/ /mnt/new/device/ |
16 |
> |
17 |
> That preserves files that are otherwise hidden by mounted filesystems. |
18 |
> |
19 |
I tried this: |
20 |
# mkdir -p /mnt/root |
21 |
# mount --bind / /mnt/root |
22 |
|
23 |
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. |
24 |
Then, for a quick test: |
25 |
# rsync -a /mnt/root/dev/* /mnt/new/device/dev |
26 |
|
27 |
But it did not fix the issue. |
28 |
|
29 |
raffaele |