Raspberry Pi Media Location

I just used the latest server image to create a Raspberry Pi DVR. It came up just fine, but when I try to create a location for the DVR files, that user interface does not allow it. I get a no permission error.

I was using the /media/DVR folder, but after looking on the file system, it appears that the channel's user does not have permission to write into that directory. I tried setting the /media folder to 777 (chmod 777 media) and that works for a while, but the os seems to come around and change the permissions back to 755 and blows away the directories that were created by the DVR software.

What location should be used to create the main storage? The drive is 2TB, so there is a lot of room.

The raspberry pi image sets its own location on the usb hard drive for recordings. There’s no way to change it.

Sorry, I misread. You’re not using the image. Have you considered it?

You should create a directory under /media and set its perms. Then point Channels DVR Server at that directory. It should keep its permissions this way.

I am using the pi image. I ran into the permission issue when bringing the system up for the first time. Is the /media the correct place to store the ever files? Right now media is owned by root and set at 755. There is a dvr folder inside owned by channels and set to 755. Is that correct?

Again, you shouldn't be changing the media location. Everything is already set up for you. Are you saying that the existing directory for your recordings is having issues?

Did you flash the image onto a USB or SD?

Please click Support > Submit Diagnostics on the dvr web UI

The media location is the only thing that did not work when using the image. I created it using the pi server download a week ago. Once I signed up for the service on channels for my subscription, it took me to the url to finalize the dvd install. I was receiving a permission error on the UI. When I when onto the pi os as root, I saw the dvr director was owned by root not channels. At first I left the ownership as root and set it to 777 so the dvr could write to it.

Right now it is set as 755 and owned by channels. This is working as I can watch and record. Just want to make sure I have it setup correctly before pulling the cable plug.

I have been a TiVo user for 15 years and channels is the best alternative I have found. Thanks for building and maintaining!

Jon

1aa906fd-5bac-4279-b29f-dacca5ea7566

Support files for your viewing pleasure.

Yes, I flashed the image to the usb drive. It is a 2TB segate

The system is running with no SIM card. Everything on a single 2TB usb 3.0 drive.

Whatever you did with permissions was not necessary and it is not clear from the diagnostics is things are setup correctly anymore.

Does the mount command show sda9 on /media/DVR?

/dev/sda9 on /media/DVR type exfat (rw,relatime,uid=501,gid=501,fmask=0000,dmask=0000,allow_utime=0022,iocharset=utf8,errors=remount-ro)

I think you should reflash the image and set up from scratch. If there are errors submit diagnostics and don't mess with any permissions.

just check mount, there is no entry for /dev/sda9.

the only line is:
tmpfs on /media type tmpfs (rw,nosuid,nodev,relatime,mode=755)

after a reboot of the pi, the /media directory is cleared.

I am going to start over by flashing again and will update this thread with my results.

1 Like

3rd time is a charm. After flashing the USB for the 3rd time, the system came up with ZERO issues.

The mount of /dev/sda9 on /media/DVR is there now. All good here now!

Thanks and Happy New Year

Jon

4 Likes