Check what kind of hardware slots are available linux

13,794

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.

Share:
13,794

Related videos on Youtube

simernes
Author by

simernes

Elite software developer Hire me or just reach out at https://modularity.no Main interests are: Space tech, biology tech, energy tech, autonomous vehicles

Updated on September 18, 2022

Comments

  • simernes
    simernes over 1 year

    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?

    • You'reAGitForNotUsingGit
      You'reAGitForNotUsingGit almost 7 years
      Can you provide the exact model of your laptop? (From the sticker underneath or wherever it is?)
    • Byte Commander
      Byte Commander almost 7 years
      Maybe the output of sudo lshw -businfo can give a hint?
    • Tim
      Tim almost 7 years
      Post the lshw output to paste.ubuntu.com
  • Byte Commander
    Byte Commander almost 7 years
    Can't speak for the OP, but in my case the output does not list anything at all.
  • Tim
    Tim almost 7 years
    @ByteCommander Thats's strange - here's my output: paste.ubuntu.com/24601088
  • Byte Commander
    Byte Commander almost 7 years
    I only get the first three lines talking about versions and SMBIOS, nothing useful. No idea why.
  • Organic Marble
    Organic Marble almost 7 years
    It worked for me on a 64 bit 14.04 desktop system. Asus hardware.
  • simernes
    simernes almost 7 years
    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?
  • Tim
    Tim almost 7 years
    @simernes try the second command - sudo dmidecode
  • simernes
    simernes almost 7 years
    I did that both with --type and without, that's what I meant in my comment.
  • Tim
    Tim almost 7 years
    @simernes that's really strange, let me do a bit of searching.
  • Matthew Piziak
    Matthew Piziak about 5 years
    Mine shows the slots but doesn't display whether or not they are being used.
  • Tim
    Tim about 5 years
    @MatthewPiziak I’m not sure mine shoes which are being used, but this was 2 years ago so my memory is poor! I don’t have Ubuntu on hand to test... lsusb will show you USBs that are plugged in... I’m not sure there’s a way to see ports and what’s connected.