kracheck
May 10th, 2017, 08:30 AM
When trying to install Ubuntu 16.04.2 on my PCIe based m2 drive, the installer could not locate a hard drive (the installer usually only looks for /dev/sdx by default). My Dell XPS 8920 came with Windows 10 pre-installed on a PCIe M2 drive that was configured in BIOS as RAID. It also had Secure Boot enabled. First I disabled Secure Boot and then I followed below procedure to change RAID to AHCI (not following below procedure and simply changing RAID to AHCI resulted in Windows 10 not booting correctly).
Source : http://triplescomputers.com/blog/uncategorized/solution-switch-windows-10-from-raidide-to-ahci-operation/
*Right-click the Windows Start Menu. Choose Command Prompt (Admin).
*Type this command and press ENTER: bcdedit /set {current} safeboot minimal
*Restart the computer and enter BIOS Setup (the key to press varies between systems).
*Change the SATA Operation mode to AHCI from either IDE or RAID (again, the language varies).
*Save changes and exit Setup and Windows will automatically boot to Safe Mode.
*Right-click the Windows Start Menu once more. Choose Command Prompt (Admin).
*Type this command and press ENTER: bcdedit /deletevalue {current} safeboot
* Reboot once more and Windows will automatically start with AHCI drivers enabled.
After that I shrank the Windows partition via Disk Management. Then I installed Ubuntu as follows.
Source : https://www.dell.com/support/article/us/en/04/SLN299303/loading-ubuntu-on-systems-using-pcie-m2-drives?lang=EN
Insert the install medium (in my case a USB stick) and reboot. Hit F12 upon boot and choose the install USB to boot from.
When GRUB appears select “Try Ubuntu without installing” and hit e (e for edit).
Add the boot parameter nvme_load=YES as described in the link above and also add nomodeset (because in my case the nouveau drivers didn’t recognise the card and I ended up with a black screen).
In short : add nvme_load=YES", remove "quiet splash and replace with nomodeset to get something like “boot=casper initd=/casper/initrd.ls nvme_load=YES nomodeset
Hit F10 to boot and wait.
Once Ubuntu is runnining start the installation procedure.
Upon reboot add nomodeset again. In ubuntu select ‘additional drivers’ and install the NVIDIA drivers. Reboot, select Ubuntu and hit enter.
Source : http://triplescomputers.com/blog/uncategorized/solution-switch-windows-10-from-raidide-to-ahci-operation/
*Right-click the Windows Start Menu. Choose Command Prompt (Admin).
*Type this command and press ENTER: bcdedit /set {current} safeboot minimal
*Restart the computer and enter BIOS Setup (the key to press varies between systems).
*Change the SATA Operation mode to AHCI from either IDE or RAID (again, the language varies).
*Save changes and exit Setup and Windows will automatically boot to Safe Mode.
*Right-click the Windows Start Menu once more. Choose Command Prompt (Admin).
*Type this command and press ENTER: bcdedit /deletevalue {current} safeboot
* Reboot once more and Windows will automatically start with AHCI drivers enabled.
After that I shrank the Windows partition via Disk Management. Then I installed Ubuntu as follows.
Source : https://www.dell.com/support/article/us/en/04/SLN299303/loading-ubuntu-on-systems-using-pcie-m2-drives?lang=EN
Insert the install medium (in my case a USB stick) and reboot. Hit F12 upon boot and choose the install USB to boot from.
When GRUB appears select “Try Ubuntu without installing” and hit e (e for edit).
Add the boot parameter nvme_load=YES as described in the link above and also add nomodeset (because in my case the nouveau drivers didn’t recognise the card and I ended up with a black screen).
In short : add nvme_load=YES", remove "quiet splash and replace with nomodeset to get something like “boot=casper initd=/casper/initrd.ls nvme_load=YES nomodeset
Hit F10 to boot and wait.
Once Ubuntu is runnining start the installation procedure.
Upon reboot add nomodeset again. In ubuntu select ‘additional drivers’ and install the NVIDIA drivers. Reboot, select Ubuntu and hit enter.