# BONUS: logical partition

{% hint style="info" %}
**Logical partition**: It occupies a portion of the primary/extended partition or the whole of it, which has been formatted with a specific type of file system (in our case we will use ext4) and has been assigned a unit, so the operating system recognizes the logical partitions or its file system. There can be a maximum of 23 logical partitions in an extended partition, however, Linux, the OS we are currently working with, reduces it to 15, more than enough for this project.
{% endhint %}

We will start creating this:

<figure><img src="/files/1AXNx1lpt4Hyvzturh3z" alt=""><figcaption></figcaption></figure>

1. Once we have completed the previous step, the partition should already appear. Now we must create a logical partition with all the available space on the disk, which has no mount point and is encrypted. To do this, we select the free space where we want to create it.

   <figure><img src="/files/PZvwr62sJfUDIexezXXF" alt=""><figcaption><p>Partitions disk configuration on Debian</p></figcaption></figure>

2. We create a new partition.

   <figure><img src="/files/lPYl2a1COkXsn40ANkfE" alt=""><figcaption><p>Partitions disk configuration on Debian</p></figcaption></figure>

3. We select the maximum size.

   <figure><img src="/files/EXHwB3z9mZ9D4ZbmLHXm" alt=""><figcaption><p>Partitions disk configuration on Debian</p></figcaption></figure>

4. We select the type of partition, in this case logical.

   <figure><img src="/files/i7NL5nqk1X73VfFuNHO2" alt=""><figcaption><p>Partitions disk configuration on Debian</p></figcaption></figure>

5. We will modify the mount point.

   <figure><img src="/files/eslH5wRMsbLBQrVhD8VZ" alt=""><figcaption><p>Partition disks configuration on Debian</p></figcaption></figure>

6. We will choose the option not to mount it.

   <figure><img src="/files/phkSGvcO3oYps0W8Z2GS" alt=""><figcaption><p>Partition disks configuration on Debian</p></figcaption></figure>

7. We finish configuring the current partition.

   <figure><img src="/files/uOU9NM81tzaycqXfHV0K" alt=""><figcaption><p>Partition disks configuration on Debian</p></figcaption></figure>

8. We accept the confirmation message.

   <figure><img src="/files/6kNzakAwL8eqaPYM57VP" alt=""><figcaption><p>Partition disks configuration on Debian</p></figcaption></figure>

9. We create the encrypted volumes.

   <figure><img src="/files/LPhge4Yn4fVWirQrF7LC" alt=""><figcaption><p>Partition disks configuration on Debian</p></figcaption></figure>

10. We select which partition we want to encrypt.

    <figure><img src="/files/M8DmhyTNRmcblJPXflBg" alt=""><figcaption><p>Partition disks configuration on Debian</p></figcaption></figure>

11. We finish configuring the current partition.

    <figure><img src="/files/Sda731YLSEjMl4UQpIFQ" alt=""><figcaption><p>Partition disks configuration on Debian</p></figcaption></figure>

12.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://noreply.gitbook.io/born2beroot/installing-debian/bonus-partition-disks/bonus-logical-partition.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
