Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
8
rated 0 times [  8] [ 0]  / answers: 1 / hits: 1638  / 2 Years ago, mon, march 28, 2022, 4:26:12

Background: I installed Ubuntu 20.04 successful to the pen drive. Everything works fine. Nvidia drivers and AMD drivers install without a problem and the system works fine. I want to use this drive to take around with me as my own personal OS.


Problem: After I restart my PC and boot from the pen drive on my own PC the drivers for NVIDIA will not load and I am left with a black screen with an X as my cursor. Upon going into recovery mode I can login and see the screen again. However, this is with the open source drivers and I need the NVIDIA drivers for some compute tasks at home (mainly faster GPU mining).


What I tried: I tried editing the grub file to load the Nvidia driver and it still would give me a black screen with an X as my cursor. I tried editing the boot parameters to no avail. Probably lack of knowledge on my end. I don't want this to be a problem if I were to switch systems say to and AMD another NVIDIA system or something else.


What I would like: I'd like to make 3 boot options. One for NVIDIA, one for AMD and one that will load the open source drivers. I know it's possible but the question is how?


Thanks for taking the time to read this!


More From » boot

 Answers
5

Ubuntu 20.04 USB that boots both BIOS and UEFI with Nvidia, AMD and Standard GPU Drivers. Step by Step



  1. Create Full Install of Ubuntu 20.04 to USB that works in both BIOS and UEFI modes using the procedure at this link: https://askubuntu.com/a/1217839/43926.



  2. Create the Data and two boot partitions as shown. Make the / partition about 20GB. Be sure to use the option for separate /home partition. Make it about 50GB. Leave remaining space empty.



  3. After installation set up OS as desired with all programs and apps needed. Do not install any proprietary graphics drivers.



  4. Boot Live Ubuntu USB, (or GParted USB), and start GParted.



  5. Right click the / partition of the USB and select Copy.



  6. Right click the empty space and select Paste. Repeat to create the third OS partition. Click Apply All Operations.



  7. Expand the NTFS or Fat32 Data partition(s) for sharing with Windows or Apple. Click Apply All Operations.



  8. Right click one of the OS partitions and select New UUID. Repeat to change the next OS partition UUID. Click Apply All Operations.




GParted



  1. Close GParted and reboot.



  2. In Terminal run sudo update-grub.



  3. Open Gnome-Disks and mount the partitions with new UUID's.



  4. Start Nautilus using sudo -H nautilus.



  5. Edit /etc/fstab of each OS partition to change the UUID as shown in Disks.



  6. Edit sdx4 boot/grub/grub.cfg to correct the UUID's on the linux ... lines if needed.



  7. Copy grub.cfg to sdx3 boot/grub/grub.cfg one more time.



  8. Boot each OS and install proprietary GPU drivers as you wish.



  9. Test.




Check completed.


[#1498] Tuesday, March 29, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
montwim

Total Points: 103
Total Questions: 112
Total Answers: 120

Location: Vietnam
Member since Mon, Mar 14, 2022
2 Years ago
montwim questions
;