How can I install Kubuntu on a Dell Inspiron 14 7490 laptop?
A friend of mine received this laptop for Christmas and wants to use it with Linux. More specifically, we want to install Kubuntu 19.10, but at this point we are getting desperate and would settle for any distribution. The main issue is that laptop has a single SSD, but Linux can't detect it so we are not able to select it in the installer.
What we have done so far
EDIT: Our last try dates from the 2020-02-02
EDIT (2020-04-09): The issue is still there with the BIOS v1.4.1.
- Download and install all the latest drivers from Dell's website. In particular, we update the BIOS driver: the initial version was
1.1.1
, we installed the version1.3.0
. (The version1.1.1
wasn't even able to boot into Kubuntu's live USB) - Download
kubuntu-19.10-desktop-amd64.iso
from the official website. We checked that the checksums are OK. - Create a bootable USB drive using Rufus. We set the partition scheme to
MBR
, target system toBIOS or UEFI
and file system toFAT32
. - Reboot to firmware (UEFI)
- Set the POST time to 5 seconds
- Set "UEFI Boot Path Security" to
Never
- Disable secure boot (or we get an
Initramfs unpacking failed
error). - Apply the changes
- Enter the boot menu (with F12 during the boot sequence)
- Select the USB drive.
- The USB drive boots into grub. Select "Start Kubuntu (Safe Graphics)", the default option ("Start Kubuntu") leads to a black screen.
Select "Try Ubuntu", it starts a live USB desktop session. We can connect to the WiFi, use Firefox, open the terminal. At this point we can run some commands to get a better view of the system. Here are some results:
ls -alR /dev
lshw
lsblk
cat /var/log/syslog
Run the "Install Kubuntu" program. It crashes when at the step where we should select the hard drive.
Where we are stuck
The main issue is that the SSD of the laptop is not detected. It prevents the installer from formatting the hard drive and installing Linux. There are multiple reports of people encountering this issue (see links below). I'll summarize my understanding of the situation in this question, and hope to post an actionable solution if we find one.
Acronyms
First of all, some acronyms:
- SATA is the technology for connecting hard drives. It can operate in multiple modes, such as AHCI or Intel RST.
- AHCI is a SATA mode standardized by Intel. It serves as the interface between the hardware and operating systems: all operating systems are able to use it to communicate with the hard drives.
- RAID is a technology to use multiple physical hard drive as a single logical ("virtual") hard drive. By duplicating data on multiple physical drives, it is more resistant to hard drive failures.
- Intel Rapid Storage Technology (Intel RST) is a Windows application "that provides improved performance and reliability for systems equipped with SATA disks". It has a feature called "RAID" that is a software solution working with a single drive. Outside Intel, it is often called "fake RAID" because it requires special software support instead of using multiple physical drives and being transparent to the OS. This is not supported by Linux.
Dell Inspiron 14 7490 BIOS
The BIOS menu has a "System Configuration" section allowing to configure how the hard drive is exposed to the OS: "SATA Operations". Here is what this section looks like on this laptop (Bios version 1.2.1) :
There are two modes:
- "Disabled": The SSD is fully disabled and you can't access it at all.
- "RAID": This does not enable real RAID (obviously, there's only one SSD in this laptop) but enables Intel RST (aka fake RAID). Also called "AHCI+RAID" because it uses "remapped AHCI".
Previous Dell laptops had a different BIOS. On my Dell XPS 15 9560 I have the following menu:
It has an extra "AHCI" option that is not available on the Dell Inspiron 14 7490 (BIOS v1.2.1).
Linux does not support Intel RST currently and requires the SATA mode to be AHCI. Otherwise it cannot communicate with the SSD. Since direct "AHCI" is not available on the Inspiron laptop, it prevents the installation of Linux.
Potential solutions
BIOS update to provide the AHCI option again
I've been using Dell laptops with Linux for a long time because because they had the reputation that it would "just work". This reputation played when I helped my friend chose a laptop: I expected the installation to go smoothly. This whole situation where they release a laptop with a new BIOS preventing from even installing Linux severely damaged their image. There are multiple threads on the Dell forums complaining about this issue (here is the most commented on).
A possible solution would be for Dell to simply release a BIOS update that unlocks the "AHCI" SATA mode. It would allow to select this mode and install Linux without further issues. This would be the ideal solution, but I don't know how reactive Dell is about these issues. I don't even know if they'll ever release this kind of patch. Opening support requests about this issue may raise the priority of a BIOS update.
Add Intel RST support to the Linux Kernel
An other solution would be to enable Linux to work in Intel RST mode. The most recent discussion I could find on Linux Kernel Mailing List dates from June 2019. The proposed patch in this discussion was declined.
From what I could understand, supporting Intel RST in the Linux Kernel is hard for two reasons: a complex protocol and lacking documentation. When enabling "Intel RST", the BIOS does in fact exposes the SSD through a "remapped AHCI" that looks like AHCI but does not behave like AHCI. The Kernel can detect that the SSD is in remapped mode, but can't use it. It can't use it because this technology is under-documented currently preventing from them from properly implementing it. In the syslog posted above, we can see the step where it warns that the drive is remapped:
Feb 2 18:21:34 kubuntu kernel: [ 1.082521] ahci 0000:00:17.0: version 3.0
Feb 2 18:21:34 kubuntu kernel: [ 1.083006] ahci 0000:00:17.0: Found 1 remapped NVMe devices.
Feb 2 18:21:34 kubuntu kernel: [ 1.083007] ahci 0000:00:17.0: Switch your BIOS from RAID to AHCI mode to use them.
Feb 2 18:21:34 kubuntu kernel: [ 1.083096] ahci 0000:00:17.0: AHCI 0001.0301 32 slots 16 ports 3 Gbps 0x0 impl RAID mode
Feb 2 18:21:34 kubuntu kernel: [ 1.083098] ahci 0000:00:17.0: flags: 64bit ncq sntf pm clo only pio slum part deso sadm sds apst
I don't know when or even if the Kernel will add support for AHCI remapped SSD. If more laptops are released where "Intel RST" is the only option, they may have no choice.
I haven't tried the kernel patch. As mentioned above, I am helping a friend who wants to use Ubuntu: since it's not my laptop I prefer to avoid trying out custom patches.
Use dmraid
One of the comments to this question mentioned that Intel RST is supported through dmraid
.
This thread asks to boot into live USB and run the following command before starting the installer: "dmraid --erase_metadata --raid_devices /dev/XdY
where X and Y denote the SSDs you're using".
The problem with this solution is that Linux can't see the SSD at all. lsblk
only displays loop0
and /dev/sda
(corresponding to the pendrive). When looking into /dev
, there is no /dev/sdb
or /dev/nvmeX
drive.
Conclusion
Ultimately my question is "How can I install Kubuntu (or Ubuntu) on this laptop?".
My conclusion is that it is currently impossible to install Linux on this laptop. We have to wait for an update from either Dell or Linux. If someone finds out a solution, please answer this question. I am also disappointed in Dell's laptops and will be more reticent to recommend them in the future.
References
- Dell support threads
- Other threads
- AskUbuntu - No hard drive detected during ubuntu 19.04 installation
- AskUbuntu - I don't see ssd in Ubuntu install on Dell Latitude 7400 with RST
- UbuntuFR - Installation Dell Inspiron 7490
- UbuntuFR - SSD NVME non reconnu lors de l'installation (DELL 7490) Ubuntu 19.4
- ArchLinux - Failure to use NVMe SSD with Intel RST in Dell Inspiron 7490
- LKML Discussion
- Kernel Patch to detect AHCI remapped devices (but not use them)