-
-
Save MahefaAbel/5e74241d64f5f2f4917311379cef632c to your computer and use it in GitHub Desktop.
mount /dev/sdb5 /mnt | |
mount --bind /dev /mnt/dev | |
mount --bind /dev/pts /mnt/dev/pts | |
mount --bind /boot /mnt/boot | |
mount -t proc /proc /mnt/proc | |
mount -t sysfs /sys /mnt/sys | |
for dir in proc dev sys etc bin sbin var usr lib lib64 tmp; do | |
# mkdir /mnt/$dir && \ | |
mount --bind /$dir /mnt/$dir | |
done | |
chroot /mnt /bin/bash |
MahefaAbel
commented
Feb 6, 2023
Graphics Drivers issue
Issue Symptom
nvidia-settings
ERROR: NVIDIA driver is not loaded
(nvidia-settings:4676): GLib-GObject-CRITICAL **: 14:26:43.940: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
** (nvidia-settings:4676): CRITICAL **: 14:26:43.943: ctk_powermode_new: assertion '(ctrl_target != NULL) && (ctrl_target->h != NULL)' failed
ERROR: nvidia-settings could not find the registry key file or the X server is
not accessible. This file should have been installed along with this
driver at
/usr/share/nvidia/nvidia-application-profiles-key-documentation. The
application profiles will continue to work, but values cannot be
prepopulated or validated, and will not be listed in the help text.
Please see the README for possible values and descriptions.
Fixes
sudo update-initramfs -u
sudo apt install --reinstall nvidia-driver-525
Utils
sudo ubuntu-drivers autoinstall
sudo prime-select nvidia
sudo rm /lib/modprobe.d/blacklist-nvidia.conf /etc/modprobe.d/blacklist-nvidia.conf
sudo apt-get install linux-headers-`uname -r`
sudo reboot now
sudo apt-get install linux-headers-`uname -r`
sudo apt reinstall nvidia-driver-515
sudo modprobe nvidia