# Device name for a M.2 B key SSD

**URL:** <https://forum.endeavouros.com/t/device-name-for-a-m-2-b-key-ssd/3788>\
**Category:** EndeavourOS development\
**Created:** [March 4, 2020, 5:21pm UTC](https://forum.endeavouros.com/t/device-name-for-a-m-2-b-key-ssd/3788 "2020-03-04T17:21:00Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pudge](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/pudge/32/17155_2.png) [@Pudge](https://forum.endeavouros.com/u/Pudge)\
**Post date:** [March 4, 2020, 5:21pm UTC](https://forum.endeavouros.com/t/device-name-for-a-m-2-b-key-ssd/3788/1 "2020-03-04T17:21:00Z")

</div>

I have a quick question on mass storage devices.

A hard drive, SSD, or USB thumb drive has a device name of /dev/sdX  
such as /dev/sda, /dev/sdb etc. Partitions are /dev/sda1, /dev/sda2 etc

A M.2 M key NVME device has a device name of /dev/nvme0n1 then /dev/nvme0n2 etc  
Partitions are /dev/nvme0n1p1 /dev/nvme0n1p2 etc.

Now the question, what device name does a M.2 B key SSD device have???

Pudge

---

<div class="post-metadata">

**Author:** ![anon53396576](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@anon53396576](https://forum.endeavouros.com/u/anon53396576)\
**Post date:** [March 4, 2020, 5:52pm UTC](https://forum.endeavouros.com/t/device-name-for-a-m-2-b-key-ssd/3788/2 "2020-03-04T17:52:19Z")

</div>

I am not sure where to find out whether a drive is M or B but I have this drive [https://www.newegg.com/samsung-970-evo-250gb/p/N82E16820147689](https://www.newegg.com/samsung-970-evo-250gb/p/N82E16820147689)  
and it follows the behavior you are describing.

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [March 4, 2020, 6:01pm UTC](https://forum.endeavouros.com/t/device-name-for-a-m-2-b-key-ssd/3788/3 "2020-03-04T18:01:28Z")

</div>

I’m not sure if it will use the same naming scheme as regular SSD as they use the same SATA port as opposed to m.2 NVME drives that use PCI-e bus?

Edit: Maybe i’m wrong here as the chart say’s the B key is also Pci-e

![image](https://forum.endeavouros.com/uploads/default/original/2X/5/51de67df383ee58d12fe58590fdab45e6c054470.png)

---

<div class="post-metadata">

**Author:** ![Pudge](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/pudge/32/17155_2.png) [@Pudge](https://forum.endeavouros.com/u/Pudge)\
**Post date:** [March 4, 2020, 6:11pm UTC](https://forum.endeavouros.com/t/device-name-for-a-m-2-b-key-ssd/3788/4 "2020-03-04T18:11:45Z")

</div>

@anon53396576

Thanks for your reply.

What you have is exactly what I have in three computers. It is a M.2 M key NVME SSD.  
What I don’t have is hardware that has a M.2 B key SSD connector, nor do I have a B key storage device.

What I understand is, with a M.2 M key nvme device one can use it to install an Operating System on it and boot from it. I also understand that with a M.2 B key SSD you cannot boot from it, it is storage only. I believe it has something to do with the fact that M.2 devices were originally designed for Lap Tops. Not sure on that.

You can find more info on B key vs M key here [HERE](https://www.amazon.com/JESOT-Adapter-Reader-Converter-Support/dp/B07VZZ5DT4/ref=sr_1_3?crid=36QJUR2CE08SG&keywords=usb+to+m.2+adapter&qid=1583342133&sprefix=usb+to+m.2%2Caps%2C214&sr=8-3)

@ricklinux  
I believe you are correct, but if possible I need to know for sure.  
With the diverse community we have here, hopefully someone will know for sure.

Pudge

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [March 4, 2020, 6:18pm UTC](https://forum.endeavouros.com/t/device-name-for-a-m-2-b-key-ssd/3788/5 "2020-03-04T18:18:22Z")

</div>

I’m not entirely sure now? I have m.2 drives and they are the 2280 like this description.

WD Black SN750 500GB PCIe Gen3 x4 NVMe M.2 2280 Read:3470MB/s,Write: 2600MB/s SSD (WDS500G3X0C)

![61969](https://forum.endeavouros.com/uploads/default/original/2X/d/d9f0b187731e19e07618194f18c22e0b67d28f7b.jpeg)

---

<div class="post-metadata">

**Author:** ![anon53396576](https://forum.endeavouros.com/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@anon53396576](https://forum.endeavouros.com/u/anon53396576)\
**Post date:** [March 4, 2020, 6:20pm UTC](https://forum.endeavouros.com/t/device-name-for-a-m-2-b-key-ssd/3788/6 "2020-03-04T18:20:36Z")

</div>

I see where he is going with this now after reading the link. He wants to use a usb m.2 nvme adapter card. I guess the question is how will linux see that device? A USB, NVME, or something completely different.

---

<div class="post-metadata">

**Author:** ![Pudge](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/pudge/32/17155_2.png) [@Pudge](https://forum.endeavouros.com/u/Pudge)\
**Post date:** [March 4, 2020, 6:23pm UTC](https://forum.endeavouros.com/t/device-name-for-a-m-2-b-key-ssd/3788/7 "2020-03-04T18:23:59Z")

</div>

@ricklinux  
The 2280 refers to the length of the M.2 drive, in this case 80 millimeters

Refer to the link I listed in the above post, then on the left, click on the 5th down little graphics display. It lists all the sizes available. Note that the shortest ones are both B key AND M key as they were originally designed for added storage in a Lap Top were size is crucial.

The B key PCIe is PCIe x 2 PCIe rails  
The M key PCIe is PCIe x 4 PCIe rails and thusly is approx 2 times faster.

Pudge

---

<div class="post-metadata">

**Author:** ![Pudge](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/pudge/32/17155_2.png) [@Pudge](https://forum.endeavouros.com/u/Pudge)\
**Post date:** [March 4, 2020, 6:32pm UTC](https://forum.endeavouros.com/t/device-name-for-a-m-2-b-key-ssd/3788/8 "2020-03-04T18:32:52Z")

</div>

> [@anon53396576](#):
>
> I see where he is going with this now after reading the link. He wants to use a usb m.2 nvme adapter card. I guess the question is how will linux see that device? A USB, NVME, or something completely different.

Maybe I should explain what I’m doing here. I am working on a script that will auto partition, format and mount drives attached to the computer. I know from testing, that a HD, SSD, SSD nvme, or USB thumb drive works with the script.

What I don’t have is hardware with a M.2 B key connector for testing. So I am assuming, like @ricklinux that it will list the device as /dev/sdX but that is a guess.

By the way, I just used the M.2 converter on Amazon as a quick guide to M key vs B key. Be aware that most converters will NOT allow you to boot from them. Just FYI

Pudge

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [March 4, 2020, 6:32pm UTC](https://forum.endeavouros.com/t/device-name-for-a-m-2-b-key-ssd/3788/9 "2020-03-04T18:32:54Z")

</div>

@Pudge  
Okay…i see you are referring to a usb to m.2 adapter so i believe like i said before that it will use SATA port and possible be the same naming scheme /dev/sdx but i don’t know? It is using the usb port to connect but i’m thinking it will set up as a SATA device? I’m not 100% sure!

Is this what you are getting at?

---

<div class="post-metadata">

**Author:** ![Pudge](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/pudge/32/17155_2.png) [@Pudge](https://forum.endeavouros.com/u/Pudge)\
**Post date:** [March 4, 2020, 6:39pm UTC](https://forum.endeavouros.com/t/device-name-for-a-m-2-b-key-ssd/3788/10 "2020-03-04T18:39:24Z")

</div>

> [@ricklinux](#):
>
> Okay…i see you are referring to a usb to m.2 adapter so i believe like i said before that it will use SATA port and possible be the same naming scheme /dev/sdx but i don’t know? It is using the usb port to connect but i’m thinking it will set up as a SATA device? I’m not 100% sure!
> 
> Is this what you are getting at?

Actually, I need to know what device name a M.2 B key would use either connected to the mother board OR from a M.2 converter as the M.2 B key to USB converter could be used as storage. I assume that either way (direct connect or USB connect) would use the same naming convention, which I assume is /dev/sdx

Pudge

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [March 4, 2020, 6:43pm UTC](https://forum.endeavouros.com/t/device-name-for-a-m-2-b-key-ssd/3788/11 "2020-03-04T18:43:20Z")

</div>

That’s what i am thinking but i could be wrong. I assume as long as the motherboard will boot from usb it shouldn’t be an issue. Some boards don’t but i would say they are older hardware not the newer UEFI versions as most if not ALL should boot from usb. I realize you are needed the naming convention for your script. I just don’t know for sure I’m guessing?

Edit: The direct connect I would think if they are not using PCI-e bus would be SATA.  
Edit 2: Ya i looked at the amazon link and it basically say’s it’s SATA.

---

<div class="post-metadata">

**Author:** ![Pudge](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/pudge/32/17155_2.png) [@Pudge](https://forum.endeavouros.com/u/Pudge)\
**Post date:** [March 4, 2020, 6:56pm UTC](https://forum.endeavouros.com/t/device-name-for-a-m-2-b-key-ssd/3788/12 "2020-03-04T18:56:36Z")

</div>

> [@ricklinux](#):
>
> the newer UEFI versions as most if not ALL should boot from usb.

Just to clarify. A USB device plugged directly into one of the computer’s USB ports should be capable to boot from. However, when you put a device, say a sata 2.5 inch SSD, into an enclosure or converter, you have added additional hardware to the pot. Namely a controller device inside the enclosure or converter that does the converting of protocols.  
computer → USB port → storage device  
computer → USB port → controller chip in enclosure or converter → storage device

With most enclosures and converters the controller chip in the enclosure does not support booting. Some will, but most don’t. The ones that will are usually more expensive.

Sorry to get off topic, I hope I’m not coming off as preaching, just passing on some info.

Pudge

---

<div class="post-metadata">

**Author:** ![ricklinux](https://forum.endeavouros.com/user_avatar/forum.endeavouros.com/ricklinux/32/110798_2.png) [@ricklinux](https://forum.endeavouros.com/u/ricklinux)\
**Post date:** [March 4, 2020, 7:13pm UTC](https://forum.endeavouros.com/t/device-name-for-a-m-2-b-key-ssd/3788/13 "2020-03-04T19:13:08Z")

</div>

I was more leaning towards worrying the usb connection would not boot on SOME computers which is fact. Internally i would have thought that it would be no different than any other drive whether it was m.2, ssd or SATA even if it was on a daughter board especailly with UEFI because of the way it’s supposed to work. You’re not preaching here… I’m just not sure as different manufacturers do different things with their BIOS, UEFI and Firmware so it’s one of those things. Some may not work or most maybe because i don’t really know for sure. I’m kind of guessing what i think but not sure. 🤷‍♂️
