Skip to main content
Crusoe Support Help Center home page
Crusoe

How-To Persist Shared Disk Mount Across Reboots

Apeksha Khilari
Apeksha Khilari
Updated

Introduction

When working with shared disks attached to Crusoe cloud VMs, it’s important to note that these mounts do not automatically persist across reboots or restarts. To ensure the shared disk remains mounted after a system reboot, users must manually configure the system by adding an appropriate entry to the /etc/fstab file.

Prerequisites

  • CLI
  • Sudo (root) access
  • Serial-console 
  • SSH access to the compute VM
  • Shared disk attached to the VM

Step-by-Step Instructions

  1. Backup /etc/fstab file for recovery purposes
    cp fstab fstab_bkup
  2. Enable serial-console access if not enabled already. This step is to ensure the VM can be recovered in case of boot failures due to incorrect /etc/fstab entries
  3. Add shared disk entry to /etc/fstab file
    ubuntu@<vm>:~$sudo vi /etc/fstab
    <name of shared disk> <path-to-mount> virtiofs defaults 0 0
  4. Verify that auto-mount works for the disk
    ubuntu@<vm>:~$sudo mount -va
    <path-to mount> : successfully mounted

Additional Resources

 

Related to

Was this article helpful?

0 out of 0 found this helpful

Still need help?

Our support team is ready to assist you with any questions.

Have more questions? Submit a request

Recently Viewed

Comments

0 comments

Article is closed for comments.