I get a 'Permission Denied' error when configuring my block storage volume to mount automatically -- what gives?

Linode Staff

Hello! I'm trying to follow this guide but am receiving the following error:

-bash: /dev/disk/by-id/scsi-0Linode_Volume_MyVeryOwnVolume: Permission denied

What's going wrong?

1 Reply

A great question! If you're getting that error in particular, it means that you've entered a command into the terminal that actually needs to be added to your /etc/fstab file. No worries though, all you'll need to do is open this file using sudo nano /etc/fstab and add the following line:

/dev/disk/by-id/scsi-0Linode_Volume_MyVeryOwnVolume /mnt/MyVeryOwnVolume ext4 defaults,noatime 0 2

Once you've done so, your volume should mount automatically at boot.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct