Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Initializing and formatting your volume

Focus mode
Initializing and formatting your volume - AWS Storage Gateway

After you use the iSCSI initiator in your client to connect to your volumes, you initialize and format your volume.

Initializing and formatting your volume on Microsoft Windows

Use the following procedure to initialize and format your volume on Windows.

To initialize and format your storage volume
  1. Start diskmgmt.msc to open the Disk Management console.

  2. In the Initialize Disk dialog box, initialize the volume as a MBR (Master Boot Record) partition. When selecting the partition style, you should take into account the type of volume you are connecting to—cached or stored—as shown in the following table.

    Partition Style Use in the Following Conditions
    MBR (Master Boot Record)
    • If your gateway is a stored volume and the storage volume is limited to 1 TiB in size.

    • If your gateway is a cached volume and the storage volume is less than 2 TiB in size.

    GPT (GUID Partition Table)

    If your gateway's storage volume is 2 TiB or greater in size.

  3. Create a simple volume:

    1. Bring the volume online to initialize it. All the available volumes are displayed in the disk management console.

    2. Open the context (right-click) menu for the disk, and then choose New Simple Volume.

      Important

      Be careful not to format the wrong disk. Check to make sure that the disk you are formatting matches the size of the local disk you allocated to the gateway VM and that it has a status of Unallocated.

    3. Specify the maximum disk size.

    4. Assign a drive letter or path to your volume, and format the volume by choosing Perform a quick format.

      Important

      We strongly recommend using Perform a quick format for cached volumes. Doing so results in less initialization I/O, smaller initial snapshot size, and the fastest time to a usable volume. It also avoids using cached volume space for the full format process.

      Note

      The time that it takes to format the volume depends on the size of the volume. The process might take several minutes to complete.

Initializing and formatting your volume on Red Hat Enterprise Linux

Use the following procedure to initialize and format your volume on Red Hat Enterprise Linux (RHEL).

To initialize and format your storage volume
  1. Change directory to the /dev folder.

  2. Run the sudo cfdisk command.

  3. Identify your new volume by using the following command. To find new volumes, you can list the partition layout of your volumes.

    $ lsblk

    An "unrecognized volumes label" error for the new unpartitioned volume appears.

  4. Initialize your new volume. When selecting the partition style, you should take into account the size and type of volume you are connecting to—cached or stored—as shown in the following table.

    Partition Style Use in the Following Conditions
    MBR (Master Boot Record)
    • If your gateway is a stored volume and the storage volume is limited to 1 TiB in size.

    • If your gateway is a cached volume and the storage volume is less than 2 TiB in size.

    GPT (GUID Partition Table)

    If your gateway's storage volume is 2 TiB or greater in size.

    For an MBR partition, use the following command: sudo parted /dev/your volume mklabel msdos

    For a GPT partition, use the following command: sudo parted /dev/your volume mklabel gpt

  5. Create a partition by using the following command.

    sudo parted -a opt /dev/your volume mkpart primary file system 0% 100%

  6. Assign a drive letter to the partition and create a file system by using the following command.

    sudo mkfs -L datapartition /dev/your volume

  7. Mount the file system by using the following command.

    sudo mount -o defaults /dev/your volume /mnt/your directory

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.