{"id":1742,"date":"2017-11-17T22:35:54","date_gmt":"2017-11-17T22:35:54","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=1742"},"modified":"2017-11-17T22:40:16","modified_gmt":"2017-11-17T22:40:16","slug":"add-extra-drive-to-unifi-video-controller","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/add-extra-drive-to-unifi-video-controller\/","title":{"rendered":"Add extra drive to UniFi Video Controller"},"content":{"rendered":"<p>Find your disk drive using fdisk or some other utility.\u00a0 More info <a href=\"http:\/\/www.incredigeek.com\/home\/finding-a-drives-name-in-linux-from-the-command-line\/\">here<\/a>.<\/p>\n<pre>fdisk -l<\/pre>\n<p>Example:<\/p>\n<pre>steve@ubuntu:~$ sudo fdisk -l\r\nDisk \/dev\/sda: 32 GiB, 34359738368 bytes, 67108864 sectors\r\nUnits: sectors of 1 * 512 = 512 bytes\r\nSector size (logical\/physical): 512 bytes \/ 512 bytes\r\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\r\nDisklabel type: dos\r\nDisk identifier: 0xe96d30af\r\n\r\nDevice     Boot    Start      End  Sectors Size Id Type\r\n\/dev\/sda1  *        2048 58720255 58718208  28G 83 Linux\r\n\/dev\/sda2       58722302 67106815  8384514   4G  5 Extended\r\n\/dev\/sda5       58722304 67106815  8384512   4G 82 Linux swap \/ Solaris\r\n\r\n\r\nDisk \/dev\/sdb: 557 GiB, 598074195968 bytes, 1168113664 sectors\r\nUnits: sectors of 1 * 512 = 512 bytes\r\nSector size (logical\/physical): 512 bytes \/ 512 bytes\r\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\r\nsteve@ubuntu:~$<\/pre>\n<p>The drive is the 500GiB drive \/dev\/sdb<\/p>\n<p>Create a partition on the drive.\u00a0 Warning!\u00a0 Be careful when formatting drives and make sure you don&#8217;t format the wrong one!<\/p>\n<pre>echo ';' | sfdisk \/dev\/sdb<\/pre>\n<p>You should now see the partition when you run fdisk -l again.\u00a0 If you run into issues mounting the drive, try formating the drive with a different utility i.e.(fdisk, cfdisk, gparted etc.)<\/p>\n<pre>steve@ubuntu:~$ sudo fdisk -l\r\nDisk \/dev\/sdb: 557 GiB, 598074195968 bytes, 1168113664 sectors\r\nUnits: sectors of 1 * 512 = 512 bytes\r\nSector size (logical\/physical): 512 bytes \/ 512 bytes\r\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\r\nDisklabel type: dos\r\nDisk identifier: 0x717f99ba\r\n\r\nDevice     Boot Start        End    Sectors  Size Id Type\r\n\/dev\/sdb1        2048 1168113663 1168111616  557G 83 Linux   &lt;--New Partition\r\nsteve@ubuntu:~$<\/pre>\n<p>Create mount point<\/p>\n<pre>mkdir -p \/video\/mount\/point<\/pre>\n<p>Now mount the partition<\/p>\n<pre>mount \/dev\/sdb1 \/video\/mount\/point<\/pre>\n<p>Allow unifi-video user to own the mount point<\/p>\n<pre>chown -R video\/mount\/point<\/pre>\n<p>Add the drive to \/etc\/fstab to auto mount on system bootup.\u00a0 More info <a href=\"http:\/\/www.incredigeek.com\/home\/linux-add-mount-point-to-fstab\/\">here<\/a>.<\/p>\n<p>Change \/dev\/sdXx to your drive and \/MOUNTLOCATION to your mount location.<\/p>\n<pre>sudo echo \"\/dev\/sdXx \/MOUNTLOCATION ext4 rw,defaults 0 0 \" &gt;&gt; \/etc\/fstab<\/pre>\n<p>Example:<\/p>\n<pre>sudo echo \"\/dev\/sdb1 \/video\/mount\/point ext4 rw,defaults 0 0 \" &gt;&gt; \/etc\/fstab<\/pre>\n<p>If you have issues running the above command, you can manually add it to the file with<\/p>\n<pre>sudo vi \/etc\/fstab<\/pre>\n<p>add the following line to the bottom of the file.\u00a0 Change sdXx to your drive and \/MOUNTLOCATION to the mount location of the drive.<\/p>\n<pre>\/dev\/sdXx \/MOUNTLOCATION ext4 rw,defaults 0 0<\/pre>\n<p>You can reboot the system to make sure that the drive mounts properly.<\/p>\n<p>Now you can log into the UniFi Video controller and set the Recording Path by going to Settings&gt;SYSTEM CONFIGURATION&gt;CONFIGURE and set the Recording Path to \/video\/mount\/point<\/p>\n<p>Tip. In the SYSTEM CONFIGURATION menu you can hover over the Disk and it&#8217;ll show you your total amount of recording space.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Find your disk drive using fdisk or some other utility.\u00a0 More info here. fdisk -l Example: steve@ubuntu:~$ sudo fdisk -l Disk \/dev\/sda: 32 GiB, 34359738368 bytes, 67108864 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical\/physical): &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/add-extra-drive-to-unifi-video-controller\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,370],"tags":[131,132,265],"class_list":["post-1742","post","type-post","status-publish","format-standard","hentry","category-ubiquiti","category-unifi-video","tag-ubiquiti-2","tag-ubnt","tag-unifi-video"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1742","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=1742"}],"version-history":[{"count":4,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1742\/revisions"}],"predecessor-version":[{"id":1746,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/1742\/revisions\/1746"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=1742"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=1742"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=1742"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}