Disk(s)
===

#### Format and mount the disks

```bash
sudo fdisk -l

**With disk <xxx>**
sudo fdisk /dev/<xxx>
(create new primary partition)

sudo mkfs -t ext4 /dev/<xxxp1>
sudo blkid -s UUID -o value /dev/<xxxp1>
```

#### If needed, check and repair the filesystem
```bash
sudo e2fsck -fDC0 /dev/sdaX
```

#### Add mount point to fstab
```bash
sudo mkdir -p /mnt/<folder>
echo "UUID=... /mnt/<folder>      ext4    defaults    0       0" | sudo tee -a /etc/fstab
```

#### bob (nvme0n1)
```
UUID=5855d1bc-99fd-41f2-9d11-7c00a1c0ad00       /               ext4    defaults,x-systemd.growfs       0       1
# NVME
UUID=2423d885-a583-44d2-bd45-80d847c625b0       /mnt/ssd        ext4    defaults                        0       0
# Caddy Websites
/mnt/ssd/www                                    /var/www        auto    defaults,nofail,nobootwait,bind 0       2
```

#### carlo (nvme0n1)
```
UUID=5855d1bc-99fd-41f2-9d11-7c00a1c0ad00       /               ext4    defaults,x-systemd.growfs       0       1
# SSD
UUID=529deeff-8612-4855-bc07-e07eb2cf55de       /mnt/ssd        ext4    defaults    0       0
```

#### sandy (sda / nvme0n1) ...
```
UUID=1cf633ab-4f5f-42da-b347-31282732a446 /             ext4    defaults,x-systemd.growfs    0       1
# SSD
UUID=6fab06af-f38f-493a-87ab-512f52a6616c /mnt/ssd      ext4    defaults        0       0
# HDD
UUID=22446d47-8d74-451e-8774-e1c8e2617b7e /mnt/hdd      ext4    defaults        0       0
```

#### gary (nvme0n1) ...
```
UUID=1cf633ab-4f5f-42da-b347-31282732a446 /              ext4    defaults,x-systemd.growfs    0       1
# SSD
UUID=7f348b05-b44e-4b85-8445-657dc95e72df /mnt/data      ext4    defaults    0       0
# NFS
krabs:/srv/nfs4/media           /nfs/media      nfs     _netdev,x-systemd.automount,nofail,noatime,nolock,tcp,bg,actimeo=1800
krabs:/srv/nfs4/downloads       /nfs/downloads  nfs     defaults
```

#### sheldon (sda / sdb / nvme0n1) ...
```
UUID=1cf633ab-4f5f-42da-b347-31282732a446 /             ext4    defaults,x-systemd.growfs    0       1
# SSD
UUID=a612717e-ca95-44a3-9b10-10e6be26112f /mnt/docker   ext4    defaults    0       0
# LVM
UUID=dbc636b9-e77b-4fb5-a192-a17c244857a2 /mnt/data     ext4    defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
```

#### krabs (nfs server)
```
UUID=0c390345-ca52-45fd-9097-6e931d651a8f       /       ext4    defaults,x-systemd.growfs       0       1
# LVM
/dev/hdds/datas                 /mnt/data               ext4    defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
# NFS exports (cf. /etc/exports)
/mnt/data/media                 /srv/nfs4/media         none    bind,nofail     0 0
/mnt/data/media/downloads       /srv/nfs4/downloads     none    bind,nofail     0 0
/opt/backups                    /srv/nfs4/backups       none    bind,nofail     0 0
```

#### bernie (nvme0n1) ...

```
UUID=5855d1bc-99fd-41f2-9d11-7c00a1c0ad00       /               ext4    defaults,x-systemd.growfs       0       1
# SSD
UUID=e8d74f7a-642a-486d-92db-d39388d1545f       /mnt/ssd        ext4    defaults        0       0
```

#### patrick (nvme0n1)
```
UUID=0ED4-57AA /config vfat defaults,x-systemd.automount,fmask=0077,dmask=0077 0 2
UUID=0ED4-A6E5 /boot/efi vfat defaults,x-systemd.automount,fmask=0077,dmask=0077 0 2
UUID=8ac0019e-35c5-4065-828a-804da615ee7a / ext4 defaults 0 1
```

#### Check
```bash
cat /etc/fstab
```

#### Mount disk...
```bash
sudo mount -a
sudo systemctl daemon-reload

df -h /mnt/<folder>
```
