Report this

What is the reason for this report?

Is there consistency between how volume and mount points are named?

Posted on February 11, 2019

What is the convention on how external block storage devices are named and how mount points are named?

I have volume whose naming follows this pattern: first-second.

I expect that mountpoint and partitions will follow the same pattern: /mnt/first-second and /dev/disk/by-id/scsi-0DO_Volume_first-second .

Instead the result is /mnt/first_second and /dev/disk/by-id/scsi-0DO_Volume_first_second .

Can we have volume names, mount points, and partitions adher to the same convention? This is a great help with provision and configuration tools.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya,

Naming conventions for external block storage devices can vary depending on the underlying system used. However, in DigitalOcean, the naming structure you described is correct:

-   _Volume Name_: first-second
-   _Mount Point_: /mnt/first_second
-   _Partition Name_: /dev/disk/by-id/scsi-0DO_Volume_first_second

The mount point and partition names use an underscore (_) instead of a hyphen (-) to avoid conflicts and maintain compatibility with various file systems and tools.

While changing this naming convention to be identical across all three may not be possible within DigitalOcean, you can always create custom scripts to handle renaming or symlink creation to match your desired format.

For more information, refer to the DigitalOcean Block Storage documentation.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.