---
title: "Remove a Disk from Linux | Hostman Docs"
description: "Remove a deleted disk from your Linux server: clean up /etc/fstab, check the updated disk names, and remount the remaining disks if needed."
---

> For the complete documentation index for AI agents, see [llms.txt](https://hostman.com/llms.txt).

After you [delete a disk in the dashboard](https://hostman.com/docs/cloud-servers/server-configuration/#delete-a-disk), remove it from the operating system by deleting its entry from `/etc/fstab`.

## Remove the Only Additional Disk

1.  Open the file:
    

```shell
nano /etc/fstab
```

2.  Delete the disk entry or comment it out:
    

![Group 1321314175](https://content.hostman.com/assets/72b94fe0-18ef-4342-b685-bdca07ce23b7.png?width=928&height=580)

3.  Save the changes: press Ctrl+X, then Y, then Enter.
    

## Remove One of Several Additional Disks

If you delete a disk that isn't the last one, the remaining disks shift to the previous letters. For example, if your server had additional disks `vdc` and `vdd` and you delete `vdc`, the disk that was `vdd` is now named `vdc`.

1.  Open the file:
    

```shell
nano /etc/fstab
```

2.  Delete the entry of the removed disk or comment it out:
    

![Group 1321314177](https://content.hostman.com/assets/48ca718e-7465-4af7-8f8f-43cbe17141ee.png?width=928&height=580)

3.  Check the disk names with `lsblk`.
    

In this example, you'll see the following:

![Group 1321314178](https://content.hostman.com/assets/f3f65ee3-bd33-444a-ac84-8d4fcda40519.png?width=496&height=239)

The `vdc` disk is actually your former third disk (`vdd`), which was mounted to `/mnt/disk3`.

4.  Mount the disk to the same directory, using its new name (`vdc1` in this example):
    

```shell
mount -o barrier=0 /dev/vdc1 /mnt/disk3
```

5.  Update the disk entries in `/etc/fstab`:

```shell
nano /etc/fstab
```

![Group 1321314179](https://content.hostman.com/assets/b9a0d75b-8614-42c4-9349-5ea1e5be9305.png?width=923&height=579)

6.  Reboot the server.
