Disk management

GNOME Disks

Manage partitions, check disk status and more with GNOME Disks. GNOME Disks is provided via the gnome-disk-utility package.

Visual walkthrough

All block devices are listed along the left sidebar.

GNOME Disks overview
  • Red: block device, model, and total capacity

  • Dark blue: disk model

  • Orange: disk total capacity

  • Green: Menu button

  • Yellow: Filesystem type and partition capacity

Check disk health

Check the SMART info of your disk by accessing it from a menu:

GNOME Disks SMART info button

Your disk is working perfectly if all attributes have OK status:

GNOME Disks SMART info window

Manage partitions

Create partitions

Create partition by clicking the disk’s empty space and clicking the + button:

GNOME Disks creating a new partition

Specify the size of the partition, select the file system and assign some name to it. In this example, we will use this disk for data storage, hence the name data:

GNOME Disks new partition types

If you want to encrypt the partition, select the appropriate partition type and specify the password.

Warning

If you ever forget the password, your data will be unrecoverable!

GNOME Disks new partition passphrases

You can also select other partition filesystems, but this should be done if you are experienced user and you know what you are doing:

GNOME Disks new partition filesystem types
Mount options

Several partition options will become available once a partition has been created.

  1. Click the options button to see available options:

    GNOME Disks partition settings button

    A context menu will appear with relatively self-explanatory menu options. The most important for you will be how and where to mount your partition:

    GNOME Disks partition settings context menu
  2. Click the Edit Mount Options… button.

    User Session Defaults may be toggled off if a custom partition mounting configuration is needed. For example, you can specify Mount Point, for example: /mnt/mydata.

    Tip

    This directory must exist prior to mounting the partition.

    GNOME Disks partition mount options

Remove partitions

You can remove a partition by simply selecting it and clicking the remove button:

GNOME Disks partition deletion button

Warning

Be absolutely sure you selected the device to format. Removing a partition will destroy all its data!

Mount partitions

Mount a partition by selecting it and clicking the mount button:

GNOME Disks partition mount button

By default, partitions you create will be automatically mounted if you haven’t set them up differently.

Mounted partition can be unmounted by clicking the unmount button (blue circle), but only if none of the programs are accessing the files on the partition. (This means you cannot unmount your system and home partitions.) You can also see in what directory the partition is mounted (red circle):

GNOME Disks partition unmount button

Add secondary disks

GNOME Disks can easily provision new block devices. If an additional disk is installed, one or more partitions must be created on it prior to its use.

This guide describes how to format a secondary internal disk and configure it as data/media storage.

  1. Identify the block device to configure. Check its name, model, size, and ensure the disk is already empty (does not contain any data, yellow circle) before proceeding.

  2. Click the kebab-menu (kebab menu) icon and then Format:

    GNOME Disks Format button
  3. Select the GPT partition type, then click the Format… button. This will create a new disk partition table:

    GNOME Disks create partition table
  4. Once again verify that you are formatting the correct disk and proceed with the process:

    GNOME Disks partition table confirmation dialog menu
  5. When the formatting process is complete, click the + button to create a new partition:

    GNOME Disks creating a new partition
  6. For this example, the maximum capacity is selected. Click Next:

    GNOME Disks set partition capacity
  7. Type volume name (for example: “DATA”, “Backup”, “Media”), select the ext4 type and click the Create button:

    GNOME Disks partition formatting options

    Note

    You can set up encryption for the partition at this point by checking Password protect volume (LUKS) option. This fully encrypts the partition volume; this will require you to type a disk decryption password each time the computer is started to unlock it.

  8. Click on the gears icon.

    GNOME Disks partition settings button
  9. Select Edit Mount Options… from the context menu.

    GNOME Disks partition settings context menu
  10. Toggle off the “User Session Defaults” option.

  11. Select Mount at system startup and Show in user interface check boxes.

  12. Choose a mount point. For example, if you previously used “Media” for the volume name, use the same name here. (It must be one word!)

  13. Select the same for the Identify as field.

  14. Leave auto as the filesystem type.

  15. Click OK:

    GNOME Disks custom mount options
  16. The disk should now be located in default file manager under “+Other Locations”, mounted and ready:

    Nautilus other locations
  17. Open the storage volume. Right-click on an empty space, then select “Add bookmark”. The bookmark will appear in the left-side pane for easier access:

    Nautilus mounted volume