How do I mount a volume without rebooting?

Linode Staff

I would like to add a new local disk to a running linode without having to reboot it. As you can see, I have created a disk labeled "test" and added it as /dev/sdd to our Configuration Profile - but I haven't issued a reboot. I tried to issue a rescan on the SCSI hosts hoping after that we will see the disk with fdisk, but that didn't work.

So, I am wondering if a reboot is the only way to make the disk appear in the linode?

1 Reply

No need to restart your Linode to mount a block storage volume. Here are the steps to get it mounted:

#To get started with a new volume, you'll want to create a filesystem on it
mkfs.ext4 "/dev/disk/by-id/scsi-0Linode_Volume_test"

#Once the volume has a filesystem, you can create a mountpoint for it
mkdir "/mnt/test"

#If you want the volume to automatically mount every time your Linode boots, you'll want 
to add a line like the following to your /etc/fstab file
/dev/disk/by-id/scsi-0Linode_Volume_test /mnt/test ext4 defaults,noatime 0 2

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