12

My laptop comes in different models, some of them have an m.2 sdd slot. The retailer I bought it from doesn't provide information in great detail and I'd like to know without opening up the laptop if I have m.2 available.

Is there a command I can run to check that? Like lspci for example?

3
  • Can you provide the exact model of your laptop? (From the sticker underneath or wherever it is?) May 18, 2017 at 21:14
  • Maybe the output of sudo lshw -businfo can give a hint?
    – Byte Commander
    May 18, 2017 at 21:39
  • Post the lshw output to paste.ubuntu.com
    – Tim
    May 19, 2017 at 16:32

3 Answers 3

12

I think this will do it:

sudo dmidecode --type connector

For me, it shows a lot of ports - masses of USBs, a Firewire, ESATA and SATA connectors etc. I expect it will show an m.2 port - although it might have a different name - for example, my Firewire shows up as P1394.

If you're interested, here is the output for me, and here is the output for just sudo dmidecode.

10
  • 2
    Can't speak for the OP, but in my case the output does not list anything at all.
    – Byte Commander
    May 18, 2017 at 21:34
  • 1
    @ByteCommander Thats's strange - here's my output: paste.ubuntu.com/24601088
    – Tim
    May 18, 2017 at 21:35
  • I only get the first three lines talking about versions and SMBIOS, nothing useful. No idea why.
    – Byte Commander
    May 18, 2017 at 21:38
  • 1
    It worked for me on a 64 bit 14.04 desktop system. Asus hardware. May 19, 2017 at 1:55
  • 1
    That only returned a list of USB, network, and mini-jack connectors.. I think if would have been there it should have listed PCI interfaces at least as well?
    – simernes
    May 19, 2017 at 15:33
0

I tried @Tim's answer, it didn't work for me like various comments under it suggest for others as well. Here is what I got a better result with:

sudo dmidecode --type baseboard

0

To find out if I had m.2 slots and if they were available, I used the following command:

sudo dmidecode --type slot

This gave me all the slots I have in the system and their availability.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .