Skip to content

Commit b134c57

Browse files
committed
Aligning detach article.
1 parent 3794e07 commit b134c57

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

articles/virtual-machines/linux/detach-disk.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: roygara
55
ms.service: storage
66
ms.collection: linux
77
ms.topic: how-to
8-
ms.date: 06/08/2022
8+
ms.date: 01/09/2023
99
ms.author: rogarana
1010
ms.subservice: disks
1111
ms.custom: devx-track-azurecli
@@ -69,19 +69,15 @@ Edit the */etc/fstab* file to remove references to the disk.
6969
> [!NOTE]
7070
> Improperly editing the **/etc/fstab** file could result in an unbootable system. If unsure, refer to the distribution's documentation for information on how to properly edit this file. It is also recommended that a backup of the /etc/fstab file is created before editing.
7171
72-
Open the */etc/fstab* file in a text editor as follows:
73-
74-
```bash
75-
sudo vi /etc/fstab
76-
```
77-
78-
In this example, the following line needs to be deleted from the */etc/fstab* file:
72+
Open the **/etc/fstab** file in a text editor and remove the line containing the UUID of your disk. Using the example values in this article, the line would look like the following:
7973

8074
```bash
8175
UUID=33333333-3b3b-3c3c-3d3d-3e3e3e3e3e3e /datadrive ext4 defaults,nofail 1 2
8276
```
8377

84-
Use `umount` to unmount the disk. The following example unmounts the */dev/sdc1* partition from the */datadrive* mount point:
78+
Save and close the file when you're done.
79+
80+
Next, use `umount` to unmount the disk. The following example unmounts the */dev/sdc1* partition from the */datadrive* mount point:
8581

8682
```bash
8783
sudo umount /dev/sdc1 /datadrive

0 commit comments

Comments
 (0)