{"id":781,"date":"2022-06-07T14:51:36","date_gmt":"2022-06-07T19:51:36","guid":{"rendered":"https:\/\/www.scheh.com\/?p=781"},"modified":"2022-06-07T14:51:43","modified_gmt":"2022-06-07T19:51:43","slug":"add-drive-to-shinobi","status":"publish","type":"post","link":"https:\/\/www.scheh.com\/index.php\/2022\/06\/07\/add-drive-to-shinobi\/","title":{"rendered":"Add Drive to Shinobi"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"781\" class=\"elementor elementor-781\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-1e92900b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"1e92900b\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-2708814f\" data-id=\"2708814f\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4a4667a elementor-widget elementor-widget-text-editor\" data-id=\"4a4667a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\n<p>List your disks and find the partition you want<\/p>\n\n<pre>lsblk -f<\/pre>\n<p>Create the partition<\/p>\n<pre>mkfs -t ext4 \/dev\/sdb1<\/pre>\n\n<p>Create a new folder to mount the drive into.<\/p>\n<pre>mkdir -p \/home\/Shinobi\/second<\/pre>\n<p>Edit fstab to include the mount at startup.<\/p>\n<pre>nano \/etc\/fstab<\/pre>\n<p>Make this the last line.<\/p>\n<pre>\/dev\/sdb1 \/home\/Shinobi\/second ext4 defaults 0 1<\/pre>\n\n<p>Mount the drive without having to reboot.<\/p>\n<pre>mount -a<\/pre>\n<p>Edit the config to add the drive to Shinobi<\/p>\n\n<pre>nano conf.json<\/pre>\n\n<p>Change your addstorage section to match your new information.<\/p>\n<pre>\"addStorage\": [<br \/>{<br \/>\"name\": \"second\",<br \/>\"path\": \"\/home\/Shinobi\/second\"<br \/>}<br \/>],<\/pre>\n\n<p>Restart Shinobi.<\/p>\n<pre>pm2 restart camera<br \/>pm2 restart cron<\/pre>\n<p>Profit.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-781","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3eyIP-cB","_links":{"self":[{"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/posts\/781","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/comments?post=781"}],"version-history":[{"count":4,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/posts\/781\/revisions"}],"predecessor-version":[{"id":788,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/posts\/781\/revisions\/788"}],"wp:attachment":[{"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/media?parent=781"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/categories?post=781"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scheh.com\/index.php\/wp-json\/wp\/v2\/tags?post=781"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}