mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-01-11 23:13:23 -05:00
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:
parent
2936c138c5
commit
146a27aac7
@ -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:
|
||||
|
||||
```
|
||||
/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
|
||||
@ -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
|
||||
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`
|
||||
to expose this new volume to the Docker container, directly below the other
|
||||
mount lines. It will look similar to this:
|
||||
|
Loading…
Reference in New Issue
Block a user