Add Storage


  1. Update youre Package list and install "gdisk" apt-get update apt-get install gdisk

  2. Execute "gdisk" gdisk /dev/sdb

  3. Create a new GPT partition table: Press o and then Enter.

  4. Create a new partition: Press n and follow the prompts:

    • Press Enter to accept default partition number.

    • Press Enter to accept default start sector.

    • Press Enter to accept default end sector (uses the whole disk).

  5. Set partition type: Press t, then Enter to accept the default type (Linux filesystem, type 8300).

  6. Write changes and exit: Press w, then Enter.

  7. Format the partition: mkfs.ext4 /dev/sdb1

  8. Create a mount point: mkdir /mnt/storage

  9. Mount the Disk: nano /etc/fstab

    Add the following entry: /dev/sdb1 /mnt/storage ext4 defaults 0 2

Last updated