public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Raffaele BELARDI <raffaele.belardi@st.com>
To: "gentoo-user@lists.gentoo.org" <gentoo-user@lists.gentoo.org>
Subject: RE: [gentoo-user] clone root from HDD to SSD causes no video with NVIDIA driver
Date: Mon, 8 Jun 2020 18:07:37 +0000	[thread overview]
Message-ID: <AM0PR10MB24364B963914246FD99AD769F7850@AM0PR10MB2436.EURPRD10.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <20200608170713.37e0f36b@digimed.co.uk>

> -----Original Message-----
> From: Neil Bothwick <neil@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	other threads:[~2020-06-08 18:07 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-08 16:02 [gentoo-user] clone root from HDD to SSD causes no video with NVIDIA driver Raffaele BELARDI
2020-06-08 16:07 ` Neil Bothwick
2020-06-08 18:07   ` Raffaele BELARDI [this message]
2020-06-08 23:42     ` Neil Bothwick
2020-06-08 16:14 ` tuxic
2020-06-08 18:20   ` Raffaele BELARDI
2020-06-09  3:43     ` tuxic
2020-06-09  3:51       ` Ashley Dixon
2020-06-09 17:10         ` Raffaele BELARDI
2020-06-09  6:23       ` J. Roeleveld
2020-06-09  6:38         ` tuxic
2020-06-09 17:04         ` Raffaele BELARDI
2020-06-10 14:28           ` J. Roeleveld
2020-06-10  5:47         ` Raffaele BELARDI
2020-06-10  6:02           ` Dale
2020-06-10  7:00             ` Raffaele BELARDI
2020-06-10 16:07               ` J. Roeleveld
2020-06-15  7:56             ` Raffaele BELARDI
2020-06-15 14:19               ` J. Roeleveld
2020-06-16  7:13                 ` Raffaele BELARDI
2020-06-10 10:02           ` Wols Lists
2020-06-09 17:13       ` Raffaele BELARDI
2020-06-10 11:56         ` tuxic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AM0PR10MB24364B963914246FD99AD769F7850@AM0PR10MB2436.EURPRD10.PROD.OUTLOOK.COM \
    --to=raffaele.belardi@st.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox