Just next, next, next filling up your data.
I needed to shutdown the machine on a screen that seemed stuck forever. After starting again it all worked normally and got into Windows.
I found the Dell update application and installed all available updates (as I will probably never boot into Windows again).
Go to the disk manager (right click on Windows icon > Disk management) and
Shrink the OS partition (right click on it, Shrink Volume...
). I left 150GB for windows (from my 1TB disk).
For Ubuntu to see the NVME disk it needs to boot on AHCI not on RAID mode (the default). As you don't want to go to the BIOS to change the SATA mode every time you want to boot in one or another OS, we need to force Windows to be able to boot in AHCI mode.
For that follow the instructions (kindly taken from here):
- Run Command Prompt as Admin.
- Invoke a Safe Mode boot with the command:
bcdedit /set {current} safeboot minimal
. - Restart the PC and enter your BIOS during bootup (F2 key).
- In tab
Advanced
change optionSATA Operation
fromRAID on
toAHCI
mode then go toExit
tab and useSave Changes and Reset
. - Windows 10 will launch in Safe Mode.
- Right click the Window icon and select to run the Command Prompt in Admin mode from among the various options.
- Cancel Safe Mode booting with the command:
bcdedit /deletevalue {current} safeboot
. - Restart your PC once more and this time it will boot up normally but with AHCI mode activated.
- Enjoy your awesomeness.
I'm not sure if it is actually necessary, but I needed to do it in the past.
Enter your BIOS (F2 key on boot). Go to Boot
tab and change Secure Boot
option to Disabled
.
Note that Boot List Option
should be UEFI
(it's the default).
I got my image from the official Ubuntu releases link.
I use UNetbootin for writing my images.
I use Gparted to format my pendrive to FAT32.
Smash F12 until you can choose from which device to boot from.
Choose your USB device.
Now, by default, the live USB didn't boot for me, it got stuck in a black screen. To overcome that (from this askubuntu post):
Some computer's hardware may have problems with some of the Desktop drivers.
You can fix this by typing e
at the Try Ubuntu without installing
option from the initial black screen menu.
Then replace the words quiet splash
with nomodeset
. Then hit F10
to boot.
Now install as normal.
You could find some extra generic instructions in a previous version of this gist: https://gist.github.com/awesomebytes/e4556b06bedf860189378428b508c043
You'll need to do the same trick of hitting e
and adding nomodeset
to boot for the first time.
Then once in Ubuntu you can make it permanent doing (from this post):
You should add this option to /etc/default/grub
, firstly:
sudo nano /etc/default/grub
and then add nomodeset
to GRUB_CMDLINE_LINUX_DEFAULT
:
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset"
GRUB_CMDLINE_LINUX=""
And then save by hitting Ctrl+O
, then exit nano with Ctrl+X
, then simply run:
sudo update-grub
Once you reboot, you won't need to do anything.
You may want to install the nvidia drivers too, I did this graphically using the software-properties-gtk
command, going to the Additional Drivers tab, and selecting nvidia-driver-460
. Afterwards I rebooted and everything was fine.
HOWEVER, then I could not install CUDA (via the official instructions), I got the error:
The following packages have unmet dependencies:
cuda : Depends: cuda-11-3 (>= 11.3.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
So I needed to undo it and do:
sudo apt clean
sudo apt update
sudo apt purge nvidia-*
sudo apt autoremove
sudo apt install -y cuda