On Fri, Sep 1, 2017 at 11:10 AM, Grant <emailgr...@gmail.com> wrote:
> My new laptop uses /dev/nvme0n1 instead of /dev/sda which conflicts
> with the script I use to manage about 12 similar laptops running
> Gentoo.  Is there a udev method for renaming the disk that will work
> well with any USB disks that happen to also be attached?
>
> crw------- 1 root root 252, 0 Aug 31 11:34 /dev/nvme0
> brw-rw---- 1 root disk 259, 0 Aug 31 11:34 /dev/nvme0n1
> brw-rw---- 1 root disk 259, 1 Aug 31 11:34 /dev/nvme0n1p1
> brw-rw---- 1 root disk 259, 2 Aug 31 11:34 /dev/nvme0n1p2
>

Admittedly I don't know how to do what you are asking, but my
experience has shown me the better solution is likely to modify your
management script and to store the device-specific configuration
external to the script and associate it with the device.

R0b0t1.

Reply via email to