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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.