Hello,
I bought some block storage for my server and went through the process of unmounting it, setting its new mount point “/home/x/x/x/wp-content/uploads”, and adding the entry in my /etc/fstab to mount in the correct location at reboot.
Unfortunately after a reboot, it defaults back to the default mountpoint /mnt/volume_sfo2_01.
How do I get my block storage to mount to the correct location persistently?
I sent a ticket but maybe I can get help from the community prior to a response. Appreciate any advice
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!
Hi there,
Indeed, adding the entry to the fstab file is the way to go. As the block storage is still getting mounted but on the wrong directory, it sounds like that there might be a typo in the fstab file.
Would you mind sharing your fstab file here so I could take a quick look and advise you further?
- Bobby
Heya, @e0c0d8bcdf92414eb019e9ce24fdff
You can examine your fstab file for any typos or misconfiguration that may cause the issue here.
Ultimately, the line you add to /etc/fstab should look like this, with your volume’s identifier and mount point:
/dev/disk/by-id/scsi-example /mnt/example-mount-point ext4 defaults,nofail,discard,noatime 0 2
Regards
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.