#!/bin/bash
echo "Type in your login password and hit enter."
# create mount points for drives that are added during staging
sudo mkdir /mnt/sda
sudo mkdir /mnt/sdb
sudo mkdir /mnt/sdc
sudo mkdir /mnt/sdd
# assign drives to mount points in fstab at boot up
echo '/dev/sda /mnt/sda ext4 defaults,nofail,x-systemd.device-timeout=5 0 0' | sudo tee -a /etc/fstab
echo '/dev/sdb /mnt/sdb ext4 defaults,nofail,x-systemd.device-timeout=5 0 0' | sudo tee -a /etc/fstab
echo '/dev/sdc /mnt/sdc ext4 defaults,nofail,x-systemd.device-timeout=5 0 0' | sudo tee -a /etc/fstab
echo '/dev/sdd /mnt/sdd ext4 defaults,nofail,x-systemd.device-timeout=5 0 0' | sudo tee -a /etc/fstab
# Mount all storage drives
sudo mount -a
reboot
