66

I am trying to install Ubuntu 14.04 / 15.10 on my Dell XPS 13 9350 (November 2015).

I created a bootable USB disk which boots fine but the installer and the file manager do not detect the hard drive.

What is the problem? How can I solve it?

hg8
  • 13,462

4 Answers4

94
  1. In Windows, run Command Prompt as admin
  2. Invoke a Safe Mode boot with the command: bcdedit /set {current} safeboot minimal
  3. Restart the PC and enter your BIOS during bootup.
  4. Change from IDE to AHCI mode then Save & Exit.
  5. Windows 10 will launch in Safe Mode.
  6. Right click the Window icon and select to run the Command Prompt in Admin mode from among the various options.
  7. Cancel Safe Mode booting with the command: bcdedit /deletevalue {current} safeboot
  8. Restart your PC once more and this time it will boot up normally but with AHCI mode activated.

(Source)

Zanna
  • 70,465
David
  • 956
  • 1
    This saved my day. However I stuck on i/o err. – Amit Kumar Gupta Jun 03 '17 at 13:56
  • 4
    This is a good solution but only if you have Windows 10 installed already unfortunately... – hg8 Mar 27 '18 at 07:29
  • The Live USB was able to detect my hard drive and do the install after only running steps 1-4... – Michael Mandel Jun 05 '18 at 16:03
  • I'm stuck at step 5) since now instead of the PIN, it does not recognize my password. Any idea how I can stop it from booting in safe mode? – Adrian Jul 21 '18 at 11:44
  • 1
    In my case there was AHCI and RAID ON options in BIOS and it also worked. – renadeen Jul 29 '18 at 10:38
  • In step 2 I get the error "The set command specified is not valid. The parameter is incorrect" – Erel Segal-Halevi Oct 16 '18 at 06:14
  • @Erel You might have just made a typo. But in any case, you could instead enable "Safe boot - Minimal" on the Boot tab of msconfig.exe, which does the same thing. – wjandrea Oct 19 '18 at 19:32
  • @Adrian IIRC, you can go to the Windows Recovery Environment, get a command prompt, then run bcdedit /deletevalue {current} safeboot to get out of safe mode. If you need more info, ask on Super User since Windows support questions are off-topic here. – wjandrea Oct 19 '18 at 19:34
  • you also want to be aware that if you haven't set a local password you may never be able to get back in ... (esp if your network stuff wont work even when you do safe mode with networking ...) – John Nicholas Jan 18 '19 at 15:07
  • 2
    @hg8 the steps on windows are required only if you want to keep windows booting - for linux just changing the bios to AHCI is enough – pqnet Jan 21 '19 at 12:08
  • 1
    @ErelSegal-Halevi if you use powershell you need to enclose {current} in quotes, i.e. such as "{current}", because brackets are interpreted by powershell as special characters – pqnet Jan 21 '19 at 12:09
  • Same problem with a Dell XPS 13 7390, and this solution worked as charm (except that the SATA setting was "RAID" instead of "IDE". Changed it to AHCI, as indicated. – Pierre-Antoine Feb 21 '20 at 14:02
61

So far the only workaround I found is to switch to AHCI Sata mode in BIOS settings:

  1. Boot into BIOS (F12 at startup)
  2. Select Bios Setup.
  3. Move to System Configuration > SATA Operation and select AHCI.

Restart the computer and now the Ubuntu installer will detect the SSD.

Unfortunately this is not practical for a dual boot setup as Windows won't be able to boot in SATA mode so you every time will have to revert the BIOS settings when wanting to boot Windows.

hg8
  • 13,462
11

The main problem is that DELL shipped with Windows pre-installed in IDE mode. The best solution in every aspect is to perform a clean installation of Windows. As a side effect you achieve one big advantage: pure Windows without any crap.

  1. Create a Windows system backup before. Things may break badly!
  2. Boot from a GParted Live media and format the Windows partition with ntfs.
  3. Boot into BIOS/UEFI of the PC and change the settings to AHCI/SATA mode.
  4. Reinstall Windows.
  5. Disable Hibernation and Fast startup in Windows
  6. Boot from Ubuntu installation media and reinstall GRUB.
  7. Boot into BIOS and select Ubuntu to be the default operating system to boot. Now you can select which system to boot, without having to change settings.

For those users who don't want to reinstall Windows, there is a way to switch to AHCI mode:

wjandrea
  • 14,236
  • 4
  • 48
  • 98
cl-netbox
  • 31,163
  • 7
  • 94
  • 131
0

I had the same issue on an old HP Compaq & it was due to RAID format. I remove this in the BIOS menu:

  • press ctrl + F12 on te startup & then quckly Ctrl + I one the Intel BIOS screen
  • Go in "Remove RAID" section & select your Hard Drive
  • exit from BIOS & then reboot
  • Hard drive should be visible from your Ubuntu installer