Commit dc36dd66 authored by Chloe Kudryavtsev's avatar Chloe Kudryavtsev

[Installing] Fix extra 2 -> 3 in parted examples

Also, avoid repetition by defining a variable and reusing it.
parent 56ded2fc
......@@ -321,6 +321,8 @@ In the scenario where the bootloader installation causes problems, see the secti
=== Parted
:ex_3_sda3: Notice how the `3` in `/dev/sda3` comes from the fact that this is the 3rd partition we created (it also has the 3 in the number in the above planning table).
Parted is GNU's PARTition EDitor.
It is a very useful tool that's capable of performing partition editing of various sorts - including the ones we're interested in, both programmatically and interactively.
Because of this, that is the utility we will be using in this section.
......@@ -397,7 +399,7 @@ mkswap /dev/sda2
mkfs.ext4 /dev/sda3 <2>
----
<1> This last section creates the filesystems. In this example, we use ext4 for `/boot` and `/` - you can use any of the supported filesystems.
<2> Notice how the `3` in `/dev/sda3` comes from the fact that this is the 2nd partition we created (it also has the 3 in the number in the above planning table).
<2> {ex_3_sda3}
==== BIOS + GPT
......@@ -430,7 +432,7 @@ mkswap /dev/sda3 <2>
mkfs.ext4 /dev/sda4
----
<1> This last section creates the filesystems. In this example, we use ext4 for `/boot` and `/` - you can use any of the supported filesystems.
<2> Notice how the `3` in `/dev/sda3` comes from the fact that this is the 2nd partition we created (it also has the 3 in the number in the above planning table).
<2> {ex_3_sda3}
==== UEFI + GPT
......@@ -461,7 +463,7 @@ mkswap /dev/sda2
mkfs.ext4 /dev/sda3 <2>
----
<1> This last section creates the filesystems. In this example, we use ext4 for `/boot` and `/` - you can use any of the supported filesystems.
<2> Notice how the `3` in `/dev/sda3` comes from the fact that this is the 2nd partition we created (it also has the 3 in the number in the above planning table).
<2> {ex_3_sda3}
=== Finalizing
// MAINT: setup-disk
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment