when to use "/dev/nvme0ns1"

Yuri Pankov yuripv at yuripv.dev
Sun Dec 6 05:35:53 UTC 2020


Krishnamraju Eraparaju wrote:
> Hi All,
> 
> 
> I see there are two ways of accessing NVMe disk:
>     1)GEOM based: /dev/nvd0 or /dev/nda0
>     2)/dev/nvme0ns1
> 
> When should one use " /dev/nvme0ns1"?

See nvmecontrol(8) for the commands that operate on namespace ids.  And 
while you could still use nvd/nda devices for those, specifying the 
namespace explicitly could be helpful.

An excerpt from man page:

DEVICE NAMES
      Where ⟨namespace-id⟩ is required, you can use either the nvmeXnsY
      device, or the disk device such as ndaZ or nvdZ.  The leading /dev/
      is omitted.


More information about the freebsd-hackers mailing list