Skip to content

Instantly share code, notes, and snippets.

@estan
Created March 9, 2022 15:12
Show Gist options
  • Save estan/be20ffa6961c730cc7d3df2d7c4c3831 to your computer and use it in GitHub Desktop.
Save estan/be20ffa6961c730cc7d3df2d7c4c3831 to your computer and use it in GitHub Desktop.
by-path device names changing on reboot
orexplore@oden:~$ ls -1 /dev/disk/by-path/*part9
/dev/disk/by-path/pci-0000:03:00.0-nvme-1-part9
/dev/disk/by-path/pci-0000:04:00.0-nvme-1-part9
/dev/disk/by-path/pci-0000:43:00.0-nvme-1-part9
/dev/disk/by-path/pci-0000:44:00.0-nvme-1-part9
/dev/disk/by-path/pci-0000:81:00.0-nvme-1-part9
/dev/disk/by-path/pci-0000:82:00.0-nvme-1-part9
/dev/disk/by-path/pci-0000:c1:00.0-nvme-1-part9
/dev/disk/by-path/pci-0000:c2:00.0-nvme-1-part9
/dev/disk/by-path/pci-0000:c3:00.0-nvme-1-part9
/dev/disk/by-path/pci-0000:c4:00.0-nvme-1-part9
orexplore@oden:~$
<reboot>
orexplore@oden:~$ ls -1 /dev/disk/by-path/*part9
/dev/disk/by-path/pci-0000:01:00.0-nvme-1-part9
/dev/disk/by-path/pci-0000:02:00.0-nvme-1-part9
/dev/disk/by-path/pci-0000:41:00.0-nvme-1-part9
/dev/disk/by-path/pci-0000:42:00.0-nvme-1-part9
/dev/disk/by-path/pci-0000:81:00.0-nvme-1-part9
/dev/disk/by-path/pci-0000:82:00.0-nvme-1-part9
/dev/disk/by-path/pci-0000:c1:00.0-nvme-1-part9
/dev/disk/by-path/pci-0000:c2:00.0-nvme-1-part9
/dev/disk/by-path/pci-0000:c3:00.0-nvme-1-part9
/dev/disk/by-path/pci-0000:c4:00.0-nvme-1-part9
orexplore@oden:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment