HomeStorageBlock StorageHow to
Unmount a volume
How to unmount a Block Storage volume
Published on 29 November 2019
It is important to unmount (detach) a device from the operating system using the
umount command to avoid data loss before removing the Block Storage volume from the machine.
Security & Identity (IAM):
You may need certain IAM permissions to carry out some actions described on this page. This means:
- you are the Owner of the Scaleway Organization in which the actions will be carried out, or
- you are an IAM user of the Organization, with a policy granting you the necessary permission sets
- You have an account and are logged into the Scaleway console
- You have configured your SSH key
- You have a Instance with an additional Block Storage volume
- Connect to your Instance with
- Unmount the volume to remove it from your current setup.
root@scw-festive-agnesi:~# umount /mnt/block-volume
- Check that the volume is no longer mounted in the system with
lsblk.root@scw-festive-agnesi:~# lsblkNAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTsda 8:0 0 23.3G 0 diskvda 252:0 0 18.6G 0 disk├─vda1 252:1 0 18.5G 0 part /└─vda15 252:15 0 100M 0 part /boot/efiImportant:
Do not forget to edit the
/etc/fstabfile and delete the line corresponding to your block volume.
If you want to mount the same volume elsewhere, make sure you change the mount point. Refer to the How to mount and use a block volume page for more information.