.. include:: images.rst .. include:: /urls.rst .. _pureos_disk_management: Disk management =============== .. _pureos_disk_management_gnome_disks: GNOME Disks ----------- Manage partitions, check disk status and more with `GNOME Disks `_. GNOME Disks is provided via the ``gnome-disk-utility`` package. .. _pureos_disk_management_gnome_disks_walkthrough: Visual walkthrough ~~~~~~~~~~~~~~~~~~ All block devices are listed along the left sidebar. .. image:: ../img/gnome-disks/gnome-disks-ui.png :scale: 50% :alt: 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 .. _pureos_disk_management_gnome_disks_smart: Check disk health ~~~~~~~~~~~~~~~~~ Check the SMART info of your disk by accessing it from a menu: .. image:: ../img/gnome-disks/smart1.png :scale: 50% :alt: GNOME Disks SMART info button Your disk is working perfectly if all attributes have **OK** status: .. image:: ../img/gnome-disks/smart2.png :scale: 50% :alt: GNOME Disks SMART info window .. _pureos_disk_management_gnome_disks_partitions: Manage partitions ~~~~~~~~~~~~~~~~~ .. _pureos_disk_management_gnome_disks_partitions_create: Create partitions ^^^^^^^^^^^^^^^^^ Create partition by clicking the disk's empty space and clicking the **+** button: .. image:: ../img/gnome-disks/partition-creation.png :scale: 50% :alt: 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``: .. image:: ../img/gnome-disks/partition-parameters.png :scale: 50% :alt: 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! .. image:: ../img/gnome-disks/partition-passphrase.png :scale: 50% :alt: 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: .. image:: ../img/gnome-disks/partition-types.png :scale: 50% :alt: GNOME Disks new partition filesystem types .. _pureos_disk_management_gnome_disks_partitions_mount_options: Mount options """"""""""""" Several partition options will become available once a partition has been created. #. Click the options button to see available options: .. image:: ../img/gnome-disks/partition-settings.png :scale: 50% :alt: 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: .. image:: ../img/gnome-disks/partition-settings-context-menu.png :scale: 50% :alt: GNOME Disks partition settings context menu #. 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. .. image:: ../img/gnome-disks/partition-mount-options.png :scale: 50% :alt: GNOME Disks partition mount options .. _pureos_disk_management_gnome_disks_partitions_remove: Remove partitions ^^^^^^^^^^^^^^^^^ You can remove a partition by simply selecting it and clicking the remove button: .. image:: ../img/gnome-disks/partition-deletion-button.png :scale: 50% :alt: GNOME Disks partition deletion button .. warning:: Be absolutely sure you selected the device to format. Removing a partition will destroy all its data! .. _pureos_disk_management_gnome_disks_partitions_mount: Mount partitions ^^^^^^^^^^^^^^^^ Mount a partition by selecting it and clicking the mount button: .. image:: ../img/gnome-disks/partition-mounting.png :scale: 50% :alt: 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): .. image:: ../img/gnome-disks/partition-unmounting.png :scale: 50% :alt: GNOME Disks partition unmount button .. _pureos_disk_management_gnome_disks_add_disks: 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. #. Identify the block device to configure. Check its name, model, size, and ensure the disk is already empty (does not contain any data, :ref:`yellow circle `) before proceeding. #. Click the |kebab-menu| (kebab menu) icon and then **Format**: .. image:: ../img/gnome-disks/gd1.png :scale: 50% :alt: GNOME Disks Format button #. Select the **GPT** partition type, then click the **Format...** button. This will create a new disk partition table: .. image:: ../img/gnome-disks/gd2.png :scale: 50% :alt: GNOME Disks create partition table #. Once again verify that you are formatting the correct disk and proceed with the process: .. image:: ../img/gnome-disks/gd3.png :scale: 50% :alt: GNOME Disks partition table confirmation dialog menu #. When the formatting process is complete, click the **+** button to create a new partition: .. image:: ../img/gnome-disks/gd4.png :scale: 50% :alt: GNOME Disks creating a new partition #. For this example, the maximum capacity is selected. Click **Next**: .. image:: ../img/gnome-disks/gd5.png :scale: 50% :alt: GNOME Disks set partition capacity #. Type volume name (for example: "DATA", "Backup", "Media"), select the ``ext4`` type and click the **Create** button: .. image:: ../img/gnome-disks/gd6.png :scale: 50% :alt: 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. #. Click on the gears icon. .. image:: ../img/gnome-disks/partition-settings.png :scale: 50% :alt: GNOME Disks partition settings button #. Select **Edit Mount Options...** from the context menu. .. image:: ../img/gnome-disks/partition-settings-context-menu.png :scale: 50% :alt: GNOME Disks partition settings context menu #. Toggle off the "User Session Defaults" option. #. Select **Mount at system startup** and **Show in user interface** check boxes. #. 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!) #. Select the same for the **Identify as** field. #. Leave ``auto`` as the filesystem type. #. Click **OK**: .. image:: ../img/gnome-disks/gd8.png :scale: 50% :alt: GNOME Disks custom mount options #. The disk should now be located in default file manager under "+Other Locations", mounted and ready: .. image:: ../img/gnome-disks/gd9.png :scale: 50% :alt: Nautilus other locations #. 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: .. image:: ../img/gnome-disks/gd10.png :scale: 50% :alt: Nautilus mounted volume