---
description: This article explains how to boot the Endpoint Protector On-Prem appliance into single-user (recovery) mode and safely expand disk space by resizing partitions and the file system after increasing virtual disk capacity.
keywords:
  - Endpoint Protector
  - disk expansion
  - increase disk space
  - recovery mode
  - single-user mode
  - GRUB
  - fdisk
  - parted
  - resize2fs
  - on-prem appliance
sidebar_label: How to Expand Disk Space on Endpoint Protector On-Prem Appliance
title: How to Expand Disk Space on Endpoint Protector On-Prem Appliance
knowledge_article_id: kA0Qk000000XXXXKAA
products:
  - endpointprotector
tags:
  - deployment-and-installation
  - kb
---

| The procedures and instructions provided in this document are intended for use by experienced administrators. Proceeding with these steps is done entirely at your own risk. Netwrix is not responsible for any data loss, system instability, or other issues that may arise from following these instructions. Ensure that you have a complete backup of your system before making any changes. |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|

## Overview

This article describes how to boot the Endpoint Protector (EPP) On-Prem appliance into **single-user (recovery) mode** and safely expand disk space after increasing the virtual disk size.  

These instructions apply only to **on-premises** EPP appliances.

---

## Instructions

1. **Shut down and increase the disk size**.

   - In your VM manager, shut down the EPP virtual machine.  
   - Increase the disk space (for example, from 100 GB to 200 GB).  
   - Reboot the EPP appliance.  
   - While it reboots, press the `Esc` key to open the **GRUB** boot menu, and select **Advanced options for Ubuntu**.

   ![GRUB boot menu screenshot](../0-images/43258ddd17f53d209349a9757595552d.png)

2. Choose the first entry labeled **(recovery mode)**.

   ![Recovery mode selection screenshot](../0-images/cb6a560ea7bc3e35cd3c0a30978e4dc7.png)

3. Press **Enter** when prompted.

   ![Boot confirmation screenshot](../0-images/221e2f00e49f44fffcf64957a74adf46.png)

4. **Identify the last partition**.

   Run the following command to list available partitions:

   ```bash
   fdisk -l
   ```

   Review the output and identify the **last partition** (typically `/dev/sda3` or `/dev/sda5`, depending on the server version).

   ![Partition listing screenshot](../0-images/a05c59666d4d5d06b571009b1e7309e5.png)

   > **NOTE:** The last partition may vary depending on your environment.

5. **Stop Endpoint Protector services**.

   Stop all EPP-related services before resizing:

   ```bash
   service nginx stop
   service cron stop
   service mysql stop
   service php-fpm stop
   service alt-php56-fpm stop
   service eppcloudsync stop
   service awslogs stop
   service syslog-ng stop
   pkill -f run_workers.php
   ```

   > **NOTE:** If a service is not running, proceed to the next command.

6. **Unmount the identified partition**.

   ```bash
   umount /dev/sda3
   ```
   or
   ```bash
   umount /dev/sda5
   ```

7. **Resize the partition**.

   Open the partition manager:

   ```bash
   parted /dev/sda
   ```

   ![Parted utility screenshot](../0-images/25e977352dd52f7cc1a0a099749039d7.png)

   - Type `p` to display the current partition table and sizes.  
     ![Partition table output](../0-images/b811ee14df77d6d8e87b48fcd284db80.png)
   - Resize the **last partition** to the maximum available space:
     ```bash
     resizepart 3 100%
     ```
     > **NOTE:** If prompted about available space, type `fix` to continue.
   - Run `p` again to verify the new partition size:
     ```bash
     p
     ```
     ![New partition size screenshot](../0-images/e82dd4c71e1388608816abea6c906ae2.png)
   - Exit the partition manager:
     ```bash
     quit
     ```
   - Refresh the kernel partition table:
     ```bash
     partprobe
     ```

8. **Check the file system**.

   Run a forced file system check (replace `sda3` with your actual partition if needed):

   ```bash
   e2fsck -f /dev/sda3
   ```

   ![Filesystem check screenshot](../0-images/91cd45f8016ad9a0a33eed482d054fbf.png)

9. **Resize the file system**.

   ```bash
   resize2fs /dev/sda3
   ```

   ![Filesystem resize screenshot](../0-images/7aabf76b61247cd7022988b79a06e3e8.png)

10. **Remount and verify disk size**.

    ```bash
    mount -a
    df -h
    ```

    ![Disk usage check screenshot](../0-images/866c775d49c0cbef0864bd4cf7b06015.png)

11. **Restart the appliance**.

    ```bash
    reboot
    ```

    After restart, verify that the disk space increase is reflected in your EPP appliance.
