: :

Add Drive to Shinobi

List your disks and find the partition you want

lsblk -f

Create the partition

mkfs -t ext4 /dev/sdb1

Create a new folder to mount the drive into.

mkdir -p /home/Shinobi/second

Edit fstab to include the mount at startup.

nano /etc/fstab

Make this the last line.

/dev/sdb1 /home/Shinobi/second ext4 defaults 0 1

Mount the drive without having to reboot.

mount -a

Edit the config to add the drive to Shinobi

nano conf.json

Change your addstorage section to match your new information.

"addStorage": [
{
"name": "second",
"path": "/home/Shinobi/second"
}
],

Restart Shinobi.

pm2 restart camera
pm2 restart cron

Profit.

Facebook
Twitter
LinkedIn

Leave a Reply

Your email address will not be published. Required fields are marked *