NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public NextPVR Support Linux v
« Previous 1 … 27 28 29 30 31 … 34 Next »
External Disk for Recordings

 
  • 0 Vote(s) - 0 Average
External Disk for Recordings
glb1945
Offline

Junior Member

Posts: 38
Threads: 6
Joined: Sep 2015
#1
2020-03-20, 11:11 PM
Hi,
I am trying to use an external disk for my recordings on Ubuntu.
However when I enter the directory /media/jerry/Passport/Recordings
(on the external disk)
the recording fails. If I use the default /home/ jerry/recordings
( on the internal ssd) it works. Can someone help me with this issue.
Thank you.

Jerry
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,124
Threads: 957
Joined: May 2006
#2
2020-03-20, 11:29 PM
You choose to not Windows you need to research how to permanently mount a USB drive.

Once you have working follow the steps here to set the permissions on the mount point https://forums.nextpvr.com/showthread.ph...#pid524823 assuming you used the deb installer.

Martin
snagglewest
Offline

Senior Member

VA USA
Posts: 361
Threads: 60
Joined: Jul 2011
#3
2020-03-21, 12:58 AM
Here's a good link explaining how to mount USB drives
https://help.ubuntu.com/community/Mount/USB

I'd really recommend you use an internal drive though.  If you start up the service without the USB drive powered up/mounted then NextPVR will think the recordings are deleted and remove them from the DB.  That in turn leads to some serious cussing...  DAMHIK
NextPVR V6.1.5.231022 - Ubuntu 22.04 VM / 4 core / 8Gb memory
HDHR Prime X2 / HDFX-2 /Schedule Direct / 2X Pi4 + & 3X Pi3 LibreELEC Kodi clients
Server - TrueNAS/ SuperMicro MBD-X10SL7-F MB / Xeon E3-1246 / 32Gb Unbuffered ECC / 8 X 4TB RAIDZ2
glb1945
Offline

Junior Member

Posts: 38
Threads: 6
Joined: Sep 2015
#4
2020-03-21, 05:07 AM
Hi snagglewest,

Is there anyway to ensure the usb drive is always mounted ahead of time.

Jerry
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,124
Threads: 957
Joined: May 2006
#5
2020-03-21, 09:12 AM
You didn't follow my instruction to research, it is not a simple solution. Focus on posts with udev, uuid and fstat

After that you need to update the start up timings to ensure the NextPVR server starts after the drive is mounted.

Martin
snagglewest
Offline

Senior Member

VA USA
Posts: 361
Threads: 60
Joined: Jul 2011
#6
2020-03-21, 03:04 PM
Martin has the best solution if you really want to go down the USB hard drive path, but as he noted, it's not for the faint of hart. A internal hard drive really is the most fool proof and easiest solution no matter what OS you're using.
NextPVR V6.1.5.231022 - Ubuntu 22.04 VM / 4 core / 8Gb memory
HDHR Prime X2 / HDFX-2 /Schedule Direct / 2X Pi4 + & 3X Pi3 LibreELEC Kodi clients
Server - TrueNAS/ SuperMicro MBD-X10SL7-F MB / Xeon E3-1246 / 32Gb Unbuffered ECC / 8 X 4TB RAIDZ2
glb1945
Offline

Junior Member

Posts: 38
Threads: 6
Joined: Sep 2015
#7
2020-03-24, 12:26 AM
On windows 10 I used an external hard drive without doing anything extra. My external drive is 1TB
And my internal SSD is only 250 GB. Thus the desire to use the external drive. Linux is very powerful so there must be a way for npvr to automatically ensure the usb drive is activated before the main body of the npvr code by checking to see if the recordings are going to an external usb drive and then activating the remaining npvr code?

Jerry
glb1945
Offline

Junior Member

Posts: 38
Threads: 6
Joined: Sep 2015
#8
2020-03-24, 12:37 AM
You can always have the user state that the recording folder is on a usb external disk, then check to see if tha disk is mounted on npvr startup. If not then mount it. If it is not there remind the user to connect it and stop?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#9
2020-03-24, 12:39 AM
The user can create a PreStartup.sh script if their system needs to do anything custom before NextPVR starts. (whether something special to initialize a device, or connect to something, or mount some network drive, or if you need some sort of delay to give something a chance to start etc)
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 53,124
Threads: 957
Joined: May 2006
#10
2020-03-24, 12:39 AM (This post was last modified: 2020-03-24, 12:45 AM by mvallevand.)
I guess my not so subtle message that linux is not Windows didn't sink it. NextPVR doesn't have any code do anything special either. You actually do have to configure Windows to get a permanent drive letter.

If you don't want to do it the proper way, you can see about writing a PreStartup.sh file that will provide enough time for the USB to start (you need that anyway) and issue a command line mount.

The beauty of the uuid approach is you can have the start wait for the USB drive to be ready

Code:
if [ ! -e usbmnt]; then
        read -d. uptime < /proc/uptime
        echo $uptime
        while [[ $uptime -lt 45 && ! -e usbmnt ]]; do
                sleep 1
                read -d. uptime < /proc/uptime
        done
fi

Martin
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (3): 1 2 3 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Direct access to recordings TugboatBill 1 318 2025-05-05, 11:04 PM
Last Post: mvallevand
  NextPVR 7 looses recordings after post processing ballfam 15 1,118 2024-12-20, 03:23 AM
Last Post: ballfam
  Recordings fail, sometimes while playing WagMan 9 766 2024-11-07, 12:46 PM
Last Post: mvallevand
  recordings fail, somtimes while playing WagMan 0 307 2024-11-02, 03:00 AM
Last Post: WagMan
  Random skipping in recordings ballfam 25 2,882 2024-04-29, 07:58 PM
Last Post: ballfam
  Failed Recordings sgar75 13 1,436 2024-04-23, 09:16 PM
Last Post: mvallevand
  failed recordings CDinger 11 1,397 2024-04-21, 03:29 AM
Last Post: CDinger
  No NVENC option in settings/transcoder and subtitles missing from ts recordings AWellesley 6 1,323 2024-03-04, 03:19 PM
Last Post: mvallevand
  upcomings recordings kfmf 9 1,227 2023-12-21, 08:48 PM
Last Post: mvallevand
  NextPVR i.mjh.nz no audio on some recordings Nzbaxterman 22 2,726 2023-12-20, 11:55 PM
Last Post: Nzbaxterman

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode