You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/linux/attach-disk-portal.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,7 +77,7 @@ sdc 3:0:0:0 4G
77
77
78
78
In this example, the disk that I added is `sdc`. It is a LUN 0 and is 4GB.
79
79
80
-
For a more complex example, here is what multiple data disks looks like in the portal:
80
+
For a more complex example, here is what multiple data disks look like in the portal:
81
81
82
82
:::image type="content" source="./media/attach-disk-portal/find-disk.png" alt-text="Screenshot of multiple disks shown in the portal.":::
83
83
@@ -99,15 +99,17 @@ sde 3:0:0:2 32G
99
99
100
100
From the output of `lsblk` you can see that the 4GB disk at LUN 0 is `sdc`, the 16GB disk at LUN 1 is `sdd`, and the 32G disk at LUN 2 is `sde`.
101
101
102
-
### Partition a new disk
102
+
### Prepare a new empty disk
103
103
104
-
If you are using an existing disk that contains data, skip to mounting the disk. If you are attaching a new disk, you need to partition the disk.
104
+
> [!IMPORTANT]
105
+
> If you are using an existing disk that contains data, skip to [mounting the disk](#mount-the-disk).
106
+
> The following instuctions will delete data on the disk.
105
107
106
-
The `parted` utility can be used to partition and to format a data disk.
108
+
If you are attaching a new disk, you need to partition the disk.
107
109
108
-
> [!NOTE]
109
-
>It is recommended that you use the latest version `parted` that is available for your distro.
110
-
>If the disk size is 2 tebibytes (TiB) or larger, you must use GPT partitioning. If disk size is under 2 TiB, then you can use either MBR or GPT partitioning.
110
+
The `parted` utility can be used to partition and to format a data disk.
111
+
- It is recommended that you use the latest version `parted` that is available for your distro.
112
+
- If the disk size is 2 tebibytes (TiB) or larger, you must use GPT partitioning. If disk size is under 2 TiB, then you can use either MBR or GPT partitioning.
111
113
112
114
113
115
The following example uses `parted` on `/dev/sdc`, which is where the first data disk will typically be on most VMs. Replace `sdc` with the correct option for your disk. We are also formatting it using the [XFS](https://xfs.wiki.kernel.org/) filesystem.
0 commit comments