Question

Storage doesnt load to mount point on reboot

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


Submit an answer


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!

Sign In or Sign Up to Answer

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.

alexdo
Site Moderator
Site Moderator badge
May 31, 2024

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

Bobby Iliev
Site Moderator
Site Moderator badge
May 29, 2024

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

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

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

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.