improved hard drive setup docs (#122)

* Use the standard UUID syntax for /etc/fstab

* Added instruction to create sample directory

* Update install.md

* Change sample ownership instead of perms
This commit is contained in:
Iron Oxidizer 2021-04-12 00:15:45 -04:00 committed by GitHub
parent 2936c138c5
commit 146a27aac7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,7 +113,7 @@ $ sudo install -d -o moonfire-nvr -g moonfire-nvr -m 700 /media/nvr/sample
In `/etc/fstab`, add a line similar to this: In `/etc/fstab`, add a line similar to this:
``` ```
/dev/disk/by-uuid/23d550bc-0e38-4825-acac-1cac8a7e091f /media/nvr ext4 nofail,noatime,lazytime,data=writeback,journal_async_commit 0 2 UUID=23d550bc-0e38-4825-acac-1cac8a7e091f /media/nvr ext4 nofail,noatime,lazytime,data=writeback,journal_async_commit 0 2
``` ```
You'll have to lookup the correct uuid for your disk. One way to do that is You'll have to lookup the correct uuid for your disk. One way to do that is
@ -128,6 +128,13 @@ system will boot successfully even when the hard drive is unavailable (such as
when your external USB storage is unmounted). This can be helpful when when your external USB storage is unmounted). This can be helpful when
recovering from problems. recovering from problems.
Create the sample directory.
```
sudo mkdir /media/nvr/sample
sudo chown -R moonfire-nvr:moonfire-nvr /media/nvr
```
Add a new `--mount` line to your Docker wrapper script `/usr/local/bin/nvr` Add a new `--mount` line to your Docker wrapper script `/usr/local/bin/nvr`
to expose this new volume to the Docker container, directly below the other to expose this new volume to the Docker container, directly below the other
mount lines. It will look similar to this: mount lines. It will look similar to this: