0

I have a few USB disks and partitions which I would like to refer to in an intuitive way.

I know it is possible to use udev to create a persistent named device eg /dev/seagate2tb.

Is it possible to have a disk named /dev/seagate2tb with partitions labelled movies and fat32 and automatically have device names created along the lines of:

  • /dev/mapper/seagate2tb-movies
  • /dev/mapper/seagate2tb-fat32

or

  • /dev/seagate2tb/movies
  • /dev/seagate2tb/fat32
  • Would using LVM an option ? – Thomas Nov 29 '16 at 10:32
  • I'm after a solution which would work with partitions that Windows can also read. – Tom Hale Nov 29 '16 at 22:12
  • Is /dev/disk/by-label or /dev/disk/by-partlabel good enough? – Gilles Nov 29 '16 at 23:23
  • by-label doesn't give me anything about partitions. I guess I could include disk info in the partition name and then use by-partlabel. – Tom Hale Nov 29 '16 at 23:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.