LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2017, 03:29 AM   #1
elsmandino
Member
 
Registered: Oct 2009
Posts: 103

Rep: Reputation: 0
Newbie - Linux file path/permission query.


Having taken the plunge with Linux, I am struggling a bit with the basics.

I have managed to set up a headless server with Openmediavault, upon which I have installed TVHeadend.

In OMV, I have the OS running off an SSD and two laptop hard drives for storage. I have combined the two hard drives into one single one using the unionfilesystem plugin - which combines them with mergerfs. This combined hard drive is mounted and labelled as "Drivepool".

What I want to do is have TVHeadend record to a folder on "Drivepool", called "Recordings".

Here is what I have done so far:

In Openmediavault, I set up a shared folder called "Recordings" and confirmed the "Drivepool" device as the place to mount it.

I then changed the TVHeadend recording path to /Drivepool/Recordings.

I have tried recording a few programs but all it says each time is "waiting for program to start" - having looked this up on the net, this indicates that the recording cannot start because either the specified folder does not exist or because I do not have permission to record their.

I suspect that getting this to work is probably an easy fix but I am just to new at Linux to try and work out where to start.

Any advice on getting this to work would be really appreciated.
 
Old 02-17-2017, 07:35 AM   #2
AnanthaP
Member
 
Registered: Jul 2004
Location: Chennai, India
Posts: 952

Rep: Reputation: 217Reputation: 217Reputation: 217
...

Last edited by AnanthaP; 02-17-2017 at 07:39 AM.
 
Old 02-17-2017, 08:41 AM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192
Let us start of easy, please provide the following output:
Code:
$ mount
<your output is here>
$ ls -l /Drivepool/Recordings
<your output here>
If in the output for mount you see nothing about the 'Drivepool' then the second command will not work.
 
Old 02-17-2017, 05:22 PM   #4
elsmandino
Member
 
Registered: Oct 2009
Posts: 103

Original Poster
Rep: Reputation: 0
Thank you - really appreciate your help with this.

"mount" gives the following:

sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=1517153,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmod
e=000)
tmpfs on /run type tmpfs (rw,nosuid,relatime,size=2433504k,mode=755)
/dev/sda1 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relat
ime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xa ttr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpu
set)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatim
e,cpu,cpuacct)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blki
o)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,mem
ory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,de
vices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,fr
eezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,re latime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime
,perf_event)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
tmpfs on /etc/machine-id type tmpfs (ro,relatime,size=2433504k,mode=755)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=23,pgrp=1,time out=300,minproto=5,maxproto=5,direct,pipe_ino=9951)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
tmpfs on /tmp type tmpfs (rw,relatime)
c920e540-0d00-4856-adc9-dfd5c80614d3:b15ed780-c6e6-41dd-ab7e-f966f520e700 on /me
dia/d3897893-310a-4024-a26b-a5a1a0348ead type fuse.mergerfs (rw,relatime,user_id =0,group_id=0,allow_other)
c920e540-0d00-4856-adc9-dfd5c80614d3:b15ed780-c6e6-41dd-ab7e-f966f520e700 on /ex
port/Recordings type fuse.mergerfs (rw,relatime,user_id=0,group_id=0,allow_other )
/dev/sdb1 on /media/c920e540-0d00-4856-adc9-dfd5c80614d3 type btrfs (rw,relatime
,space_cache,subvolid=5,subvol=/)
/dev/sdc1 on /media/b15ed780-c6e6-41dd-ab7e-f966f520e700 type btrfs (rw,relatime
,space_cache,subvolid=5,subvol=/)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
root@openmediavault:~#

Then, when I went to put "ls -l Drivepool/Recordings", it gives:

cannot access /Drivepool/Recordings: No such file or directory

I can immediately see that I am trying to record to a folder that appears not to exist.

Does the information above help to explain why?

I have attach a few OMV screenshots, in case this helps to clarify what I am doing wrong.
Attached Thumbnails
Click image for larger version

Name:	OMV1.jpg
Views:	16
Size:	113.7 KB
ID:	24276   Click image for larger version

Name:	OMV2.jpg
Views:	19
Size:	100.4 KB
ID:	24277  

Last edited by elsmandino; 02-17-2017 at 05:29 PM. Reason: Additional Information
 
Old 02-17-2017, 06:15 PM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
Quote:
I then changed the TVHeadend recording path to /Drivepool/Recordings.
That means you have a directory created in the / (root) of the filesystem named Drivepool with a sub-directory under Drivepool of Recordings. Did you do that?

In the image you show in your last post on the left it shows Drivepool under label under the media directory with a UUID beginning with d389..
The image on the right shows the path as media/Drivepool. Check that these exist under /media.

Quote:
Then, when I went to put "ls -l Drivepool/Recordings", it gives:
Where are you running that from? You need to run it from the directory above it or with the full path.
 
Old 02-18-2017, 01:05 AM   #6
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192
Thanks for all the information Firstly, please use [code][/code] tags around the data you are returning for us to keep formatting and save space

yancek has pointed you in the right direction. Perhaps try the following commands and check the output:
Code:
$ ls -l /media
$ ls -l /media/Drivepool
 
Old 02-18-2017, 05:04 PM   #7
elsmandino
Member
 
Registered: Oct 2009
Posts: 103

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
that means you have a directory created in the / (root) of the filesystem named drivepool with a sub-directory under drivepool of recordings. Did you do that?
No - I manually added this.

Quote:
Originally Posted by grail View Post
Thanks for all the information Firstly, please use [code][/code] tags around the data you are returning for us to keep formatting and save space

yancek has pointed you in the right direction. Perhaps try the following commands and check the output:
Code:
$ ls -l /media
$ ls -l /media/Drivepool
ls -l /media

Code:
total 52
drwxr-sr-x 1 root users   30 Feb 16 18:40 b15ed780-c6e6-41dd-ab7e-f966f520e700
drwxr-sr-x 1 root users    0 Feb 15 21:52 c920e540-0d00-4856-adc9-dfd5c80614d3
drwxr-xr-x 2 root root  4096 Feb 15 22:38 cdrom
drwxr-sr-x 1 root users    0 Feb 15 21:52 d3897893-310a-4024-a26b-a5a1a0348ead
ls -1 /media/Drivepool

Code:
 ls: cannot access /media/Drivepool: No such file or directory
The plot thickens - does this mean that I need to manually add the "Recordings" directory?
 
Old 02-18-2017, 05:56 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
Quote:
drwxr-sr-x 1 root users 0 Feb 15 21:52 d3897893-310a-4024-a26b-a5a1a0348ead
Your earlier post showed the above UUID with a Label Drivepool. So run the following to see what it contains. If you didn't create the Recordings directory then it would not be there unless the software you are using created it. I'm not familiar with the software you are using so I don't know what one could expect.

Code:
ls -l /media/d3897893-310a-4024-a26b-a5a1a0348ead
ls / would show whether you have a 'Drivepool' mount point in the / of the filesystem which I doubt.

Last edited by yancek; 02-18-2017 at 05:58 PM.
 
Old 02-20-2017, 07:06 AM   #9
elsmandino
Member
 
Registered: Oct 2009
Posts: 103

Original Poster
Rep: Reputation: 0
All sorted now!

Thanks to your instructions above, I realised that firstly I was trying to record to folder that did not exist yet and, secondly, that folder (once created) did not give authority to TVHeadend to access it.

All working now, at last - I have also learnt loads about Linux on the way.

Thanks again - could not have done it without you guys.
 
Old 02-20-2017, 07:29 AM   #10
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192Reputation: 3192
Please remember to mark as SOLVED and perhaps list what steps another user should take if they come across the same issue
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Redhat Linux 7 Question Plz help to solve my query about File permission Sagar P Dalvi Red Hat 7 12-23-2014 11:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration