NavigationContentFooter
Suggest an edit

How to unmount a Block Storage volume

Reviewed on 13 December 2023Published 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.

Before you start

To complete the actions presented on this page, you must have:

  • A Scaleway account logged into the console
  • Owner status or IAM permissions allowing you to perform actions in the intended Organization
  • An SSH key
  • An Instance with an additional Block Storage volume
  1. Connect to your Instance with ssh.
    ssh root@<your_instance_ip>
  2. Unmount the volume to remove it from your current setup.
    root@scw-festive-agnesi:~# umount /mnt/block-volume
  3. Check that the volume is no longer mounted in the system with lsblk.
    root@scw-festive-agnesi:~# lsblk
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    sda 8:0 0 23.3G 0 disk
    vda 252:0 0 18.6G 0 disk
    ├─vda1 252:1 0 18.5G 0 part /
    └─vda15 252:15 0 100M 0 part /boot/efi
    Important

    Do not forget to edit the /etc/fstab file 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 Managing a Block Storage volume page for more information.

See also
How to increase the volume sizeHow to detach a volume
Cloud Products & Resources
  • Scaleway Console
  • Compute
  • Storage
  • Network
  • IoT
  • AI
Dedicated Products & Resources
  • Dedibox Console
  • Dedibox Servers
  • Network
  • Web Hosting
Scaleway
  • Scaleway.com
  • Blog
  • Careers
  • Scaleway Learning
Follow us
FacebookTwitterSlackInstagramLinkedin
ContractsLegal NoticePrivacy PolicyCookie PolicyDocumentation license
© 1999-2024 – Scaleway SAS