How to mount Block Storage not in the /mnt folder
I used the commands listed below to mount a recently created block storage partition
however I would like to make it appear as /home2 instead of /mnt/home2
Do you think it would be possible?
mkfs.ext4 "/dev/disk/by-id/scsi-0Linode_Volume_home2"
mkdir "/mnt/home2"
mount "/dev/disk/by-id/scsi-0Linode_Volume_home2" "/mnt/home2"
1 Reply
There are two ways to accomplish what you're trying to do. You can use symlinks or create a folder named /home2 and link it to /mnt/home2. Or you can remount the volume to /home2. Using a symlink is easier.
If you want to use symlinks, for your quick reference, I added a link to our guide explaining how to use them.
Create File System Links with ln
I tested mounting the volume to /home2 instead of /mnt/home2, and it worked if you follow the instructions in your Cloud Manager -- what you posted above -- and edit step two and three of your volume's configuration to reflect /home2 instead of /mnt/home2.