Skip to content

Commit 629c176

Browse files
committed
Removing text editor.
1 parent c51846b commit 629c176

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

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

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.service: storage
66
ms.subservice: disks
77
ms.collection: linux
88
ms.topic: how-to
9-
ms.date: 12/08/2022
9+
ms.date: 01/06/2023
1010
ms.author: rogarana
1111
---
1212

@@ -131,20 +131,12 @@ The output looks similar to the following example:
131131
> [!NOTE]
132132
> 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.
133133
134-
Next, open the */etc/fstab* file in a text editor as follows:
135-
136-
```bash
137-
sudo nano /etc/fstab
138-
```
139-
140-
In this example, use the UUID value for the `/dev/sdc1` device that was created in the previous steps, and the mountpoint of `/datadrive`. Add the following line to the end of the `/etc/fstab` file:
134+
Next, open the */etc/fstab* file in a text editor. In the file, you'll use the UUID value for the `/dev/sdc1` device that was created in the previous steps, and the mountpoint of `/datadrive`. Add the following line to the end of the `/etc/fstab` file:
141135

142136
```bash
143137
UUID=33333333-3b3b-3c3c-3d3d-3e3e3e3e3e3e /datadrive xfs defaults,nofail 1 2
144138
```
145139

146-
In this example, we are using the nano editor, so when you are done editing the file, use `Ctrl+O` to write the file and `Ctrl+X` to exit the editor.
147-
148140
> [!NOTE]
149141
> Later removing a data disk without editing fstab could cause the VM to fail to boot. Most distributions provide either the *nofail* and/or *nobootwait* fstab options. These options allow a system to boot even if the disk fails to mount at boot time. Consult your distribution's documentation for more information on these parameters.
150142
>

0 commit comments

Comments
 (0)