[SOLVED] m.2 NVMe SSD (Samsung 970 Evo)

Getting your soundcard to work, using Debian on non-i386 hardware, etc

[SOLVED] m.2 NVMe SSD (Samsung 970 Evo)

Postby starche » 2019-03-11 23:44

Tried to install Debian 9 (9.8) with no luck.
Hardware:
Lenovo Flex 5 laptop
SSD: Samsung 970 Evo NVMe

Aside from fighting with ath10x firmware (resolved), now I'm stuck with Debian not being able to see SSD during installation process. I disabled UEFI, secure boot, fast boot in BIOS, but no luck.

I spend the whole evening googling what else I can do. Looks like starting from 3.19 kernel NVMe support is built-in into the kernel. While the latest Debian featuring kernel version4.9.x, I would imagine NVMe SSD should be visible. I exhausted the tricks I know. If I need to throw something in /firmware folder, please let me know.

Please guide me where I need to look to be able to install Debian on my new laptop.
Thank in advance.

P.S. I"m using Linux since 2006. PLEASE don't leave along on wiindows10 lol
Last edited by starche on 2019-03-15 00:28, edited 1 time in total.
starche
 
Posts: 20
Joined: 2016-04-13 09:36

Re: m.2 NVMe SSD (Samsung 970 Evo)

Postby sunrat » 2019-03-12 00:31

What do you mean "disabled UEFI"? It's what starts your computer. Maybe you mean enabled Legacy (CSM) mode?
Disabling Fast Boot won't make a difference usually. If it's dual boot with Windows, you should disable Fast Startup in Windows, the two are often confused.

Crucial question - does the drive appear in UEFI setup?
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3194
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: m.2 NVMe SSD (Samsung 970 Evo)

Postby starche » 2019-03-12 02:05

sunrat wrote:What do you mean "disabled UEFI"? It's what starts your computer. Maybe you mean enabled Legacy (CSM) mode?
Disabling Fast Boot won't make a difference usually. If it's dual boot with Windows, you should disable Fast Startup in Windows, the two are often confused.

Crucial question - does the drive appear in UEFI setup?

That's exactly what I meant. I disabled UEFI, that enables Legacy mode in BIOS.

You're right. Disabling Fast Boot didn't do anything, but at least I tried that too.

"Crucial question - does the drive appear in UEFI setup?"
I'm not what you mean here.
If you mean if I can see SSD in BIOS, then yes, I can see it there. Also, Windows 10 boots from the drive, so definitely both BIOS and Windows can see it.

Or may be you mean during Debian setup? One screen before Debian brings me to partition screen, it asks me if I want to force UEFI setup at the cost of not been able to boot other OS. Selection there is Yes or No with No being default one.

Or I misunderstood you?
starche
 
Posts: 20
Joined: 2016-04-13 09:36

Re: m.2 NVMe SSD (Samsung 970 Evo)

Postby Head_on_a_Stick » 2019-03-12 07:11

starche wrote:I'm stuck with Debian not being able to see SSD during installation process

If you switch to a console screen is the drive listed in the output of `lsblk`?

If the drive shows up in the "live" environment then you could try this method:

https://www.debian.org/releases/stretch ... 03.html.en

^ That guide suggests using the grub-pc package but that is for non-UEFI systems, you will probably want the grub-efi package instead.

You will need to boot the system in UEFI mode for GRUB to make new NVRAM boot entries and you may have to use the --removable flag for the `grub-install` command if the new NVRAM entry isn't honoured by the UEFI firmware.

There is an arch-install-scripts package in testing/unstable (install it via the .deb package, there are no dependencies) which has an `arch-chroot` command that will automate the mounting of the API filesystems for the chroot stage and obviate the need to MAKEDEV.

Instead of manually editing /etc/adjtime, run
Code: Select all
# hwclock --systohc
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12515
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: m.2 NVMe SSD (Samsung 970 Evo)

Postby negrao » 2019-03-12 08:52

Hi

I have a lenovo legion y740. After unboxing the nvme ssd was also not visible because it was using Intel RST raid. I had to disable it in the firmware (BIOS), although if also using Windows 10, first some steps have to be done on windows otherwise it is not possible to boot windows again. Check http://triplescomputers.com/blog/uncate ... operation/. The BIOS will say that making the change will wipe the disk but that is not the case (with a single drive).

Best,
Miguel Negrão
negrao
 
Posts: 13
Joined: 2019-02-19 13:04

Re: m.2 NVMe SSD (Samsung 970 Evo)

Postby p.H » 2019-03-12 10:01

starche wrote:I disabled UEFI, that enables Legacy mode in BIOS.

starche wrote:One screen before Debian brings me to partition screen, it asks me if I want to force UEFI setup at the cost of not been able to boot other OS.

This question means that the installer was booted in EFI mode, therefore UEFI is not disabled. Enabling legacy boot does not mean that EFI boot is disabled.
p.H
 
Posts: 1444
Joined: 2017-09-17 07:12

Re: m.2 NVMe SSD (Samsung 970 Evo)

Postby starche » 2019-03-12 12:16

Head_on_a_Stick wrote:
starche wrote:I'm stuck with Debian not being able to see SSD during installation process

If you switch to a console screen is the drive listed in the output of `lsblk`?

If the drive shows up in the "live" environment then you could try this method:

https://www.debian.org/releases/stretch ... 03.html.en

^ That guide suggests using the grub-pc package but that is for non-UEFI systems, you will probably want the grub-efi package instead.

You will need to boot the system in UEFI mode for GRUB to make new NVRAM boot entries and you may have to use the --removable flag for the `grub-install` command if the new NVRAM entry isn't honoured by the UEFI firmware.

There is an arch-install-scripts package in testing/unstable (install it via the .deb package, there are no dependencies) which has an `arch-chroot` command that will automate the mounting of the API filesystems for the chroot stage and obviate the need to MAKEDEV.

Instead of manually editing /etc/adjtime, run
Code: Select all
# hwclock --systohc


I will check if I can see the drive once I'll get home. Never has a need to run console during installation, I guess i need to press Cntr+Shift+Fx?
I'll report back the findings.

Going through the manual, looks I need to install Debian manually? Probably, not the easiest way, but I guess it is what it is.
starche
 
Posts: 20
Joined: 2016-04-13 09:36

Re: m.2 NVMe SSD (Samsung 970 Evo)

Postby starche » 2019-03-12 12:20

negrao wrote:Hi

I have a lenovo legion y740. After unboxing the nvme ssd was also not visible because it was using Intel RST raid. I had to disable it in the firmware (BIOS), although if also using Windows 10, first some steps have to be done on windows otherwise it is not possible to boot windows again. Check http://triplescomputers.com/blog/uncate ... operation/. The BIOS will say that making the change will wipe the disk but that is not the case (with a single drive).

Best,
Miguel Negrão

Why I need to switch to AHCI if I can continue to use UEFI? Or I misunderstood you?
starche
 
Posts: 20
Joined: 2016-04-13 09:36

Re: m.2 NVMe SSD (Samsung 970 Evo)

Postby starche » 2019-03-12 12:21

p.H wrote:
starche wrote:I disabled UEFI, that enables Legacy mode in BIOS.

starche wrote:One screen before Debian brings me to partition screen, it asks me if I want to force UEFI setup at the cost of not been able to boot other OS.

This question means that the installer was booted in EFI mode, therefore UEFI is not disabled. Enabling legacy boot does not mean that EFI boot is disabled.

That's what I was puzzled. How come I turned UEFI in BIOS off, bur Debian Installer asking me that question.
starche
 
Posts: 20
Joined: 2016-04-13 09:36

Re: m.2 NVMe SSD (Samsung 970 Evo)

Postby sunrat » 2019-03-12 13:03

Possibly Windows was installed in native UEFI mode. Does it have an EFI system partition (ESP)? This will be a small FAT32 partition near the start. If so it's setup for UEFI boot and is probably much easier to disable legacy (CSM) mode and do a straight UEFI install. I was nervous first time I did it, and also had to change to AHCI, but it's now just as easy as legacy boot.

And what I was saying about not being able to disable UEFI, it's all about terminology. A lot of people including manufacturers use the terms UEFI and BIOS almost interchangeably but they are different. UEFI is the successor to BIOS and it's replacement. CSM mode emulates the way BIOS boots a computer but it's still UEFI, just in CSM mode.
Reading:- https://www.happyassassin.net/2014/01/2 ... work-then/
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!
User avatar
sunrat
 
Posts: 3194
Joined: 2006-08-29 09:12
Location: Melbourne, Australia

Re: m.2 NVMe SSD (Samsung 970 Evo)

Postby negrao » 2019-03-12 16:58

starche wrote:
negrao wrote:Hi

I have a lenovo legion y740. After unboxing the nvme ssd was also not visible because it was using Intel RST raid. I had to disable it in the firmware (BIOS), although if also using Windows 10, first some steps have to be done on windows otherwise it is not possible to boot windows again. Check http://triplescomputers.com/blog/uncate ... operation/. The BIOS will say that making the change will wipe the disk but that is not the case (with a single drive).

Best,
Miguel Negrão

Why I need to switch to AHCI if I can continue to use UEFI? Or I misunderstood you?


Hi,

I said nothing about AHCI or UEFI, I said you should check if intel RST, a type of RAID, is turned on in the firmware. If it is turned on you should turn it off (but see the issue with Windows 10 first).

Best,
Miguel
negrao
 
Posts: 13
Joined: 2019-02-19 13:04

Re: m.2 NVMe SSD (Samsung 970 Evo)

Postby starche » 2019-03-12 23:58

I can't get to console from Debian Installer. I tried Shift, Ctlr and Alt, both left and right plus obvoiusly Fx with no luck. How I can get into console?

I tried to upload pics here, but I've got server error. I guess it's not my day today...

The pic before the screen with disk partitioning saying:
"This machine's firmware has started the installer in UEFI mode, but it looks like there may be existing OS already installed using "BIOS compatibility mode". If you continue to install Debian in UEFI mode, it might be difficult to reboot the machine into any BIOS-mode OS later.

If you wish to install in UEFI mode and don't care about keeping the ability to boot one of the existing systems, you have the option to force that here. If you wish to keep the option to to boot an existing OS, you should choose NOT to force UEFI installation here".
After that there is an option to choose to force UEFI or not with NO as a default option.

Why it saying that Windows is installed BIOS compatibility mode? If that's the case, I can switch laptop's firmware into BIOS mode and install Debian without any problem, right? I wanted to upload pics from firmware, but again - I'm getting server error. I cannot find anything close to "BIOS compatibility mode". How Lenovo installed Windows then? I understand about rolling out image and such, but shouldn't they install Windows in UEFI mode?
starche
 
Posts: 20
Joined: 2016-04-13 09:36

Re: m.2 NVMe SSD (Samsung 970 Evo)

Postby starche » 2019-03-12 23:58

sunrat wrote:Possibly Windows was installed in native UEFI mode. Does it have an EFI system partition (ESP)? This will be a small FAT32 partition near the start. If so it's setup for UEFI boot and is probably much easier to disable legacy (CSM) mode and do a straight UEFI install. I was nervous first time I did it, and also had to change to AHCI, but it's now just as easy as legacy boot.

And what I was saying about not being able to disable UEFI, it's all about terminology. A lot of people including manufacturers use the terms UEFI and BIOS almost interchangeably but they are different. UEFI is the successor to BIOS and it's replacement. CSM mode emulates the way BIOS boots a computer but it's still UEFI, just in CSM mode.
Reading:- https://www.happyassassin.net/2014/01/2 ... work-then/

In previous post I wrote that it looks (to me at least) that Windows installed in BIOS compatibility mode.
Just checked – actually there is 260MB partition called “EFI” (the very 1st one on the drive). Now I’m confused completely…

Thank you very much for the link. I already started to read the article. It’s quite… hm… lengthy, but make sense to me. That will help me to clarify a lot of that stuff. Last 10 years I was using desktop I built which had old-skool BIOS. So really – UEFI is just introduced for myself.
starche
 
Posts: 20
Joined: 2016-04-13 09:36

Re: m.2 NVMe SSD (Samsung 970 Evo)

Postby starche » 2019-03-12 23:59

negrao wrote:
starche wrote:
negrao wrote:Hi

I have a lenovo legion y740. After unboxing the nvme ssd was also not visible because it was using Intel RST raid. I had to disable it in the firmware (BIOS), although if also using Windows 10, first some steps have to be done on windows otherwise it is not possible to boot windows again. Check http://triplescomputers.com/blog/uncate ... operation/. The BIOS will say that making the change will wipe the disk but that is not the case (with a single drive).

Best,
Miguel Negrão

Why I need to switch to AHCI if I can continue to use UEFI? Or I misunderstood you?


Hi,

I said nothing about AHCI or UEFI, I said you should check if intel RST, a type of RAID, is turned on in the firmware. If it is turned on you should turn it off (but see the issue with Windows 10 first).

Best,
Miguel

I don’t think that’s the case. I have single SSD thus any RAID configuration is not applicable for me. I’m lucky in that sense I don’t need to deal with that (on top of NVMe SSD lol).
starche
 
Posts: 20
Joined: 2016-04-13 09:36

Re: m.2 NVMe SSD (Samsung 970 Evo)

Postby negrao » 2019-03-13 14:03

starche wrote:
negrao wrote:Hi,

I said nothing about AHCI or UEFI, I said you should check if intel RST, a type of RAID, is turned on in the firmware. If it is turned on you should turn it off (but see the issue with Windows 10 first).

Best,
Miguel

I don’t think that’s the case. I have single SSD thus any RAID configuration is not applicable for me. I’m lucky in that sense I don’t need to deal with that (on top of NVMe SSD lol).

My lenovo laptop also has a single SSD and yet Intel RST was active, so you should check in the firmware. For some reason lenovo is shipping laptops with a single ssd with software RAID active.

Best,
Miguel
negrao
 
Posts: 13
Joined: 2019-02-19 13:04

Next

Return to Hardware

Who is online

Users browsing this forum: No registered users and 14 guests

fashionable