Mount block storage as a folder eg /home

This is probably a silly question but…

If I was to load some block storage could I mount it as my /home or would it have to be mounted as something else.

/mounteddrive = /home

1 Reply

You sure can, I've done this in the past.

Simply mount it as something else temporarily and copy your existing home across.

sudo cp -Rp /home/* /mount/location

Once your files are across you can move your existing /home out of the way.

cd / && sudo mv /home /home_old && sudo mkdir /home

Modify your fstab so your block storage mounts as /home and reboot.

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