/srv/irclogs.ubuntu.com/2014/10/11/#ubuntu-mythtv.txt

rightonbroCould someone help me with adding a second HD (bigger drive to store recordings and livetv buffer) to mythtv?  I keep getting an error when I try to watch live TV in the front-end17:15
Kwisherdo you have the disk mounted correctly?17:16
rightonbroI don't know, I chown'ed a couple of things but I'm kind of a noob17:16
rightonbroI just installed the latest Mythbuntu and I see my second drive as /media/mjung/MythDrive17:17
Kwisheryou need to automount it at boot17:17
rightonbroi have my storage groups set up as /media/mjung/MythDrive/recordings etc.17:17
rightonbroI can see the drive in Thunar File Manager17:17
rightonbroand all of the subfolders underneath17:17
rightonbrothe mythbackend.log keeps giving Permission denied whenever I try to watch TV17:17
Kwisheryou should do: sudo chown mythtv:mythtv -R /media/mjung/MythDrive17:18
rightonbrook just did that17:18
rightonbroi'll try firing up the frontend and watching some TV17:19
rightonbrono dice, it does the same thing….would you be able to look at my mythbackend.log and see if i'm doing anything wrong?  https://dpaste.de/Z7r417:21
Kwisherwhat's the output of: sudo ls -la /media/mjung/MythDrive17:22
rightonbrohttps://dpaste.de/cBnk17:23
Kwisherok, that looks correct17:24
Kwisheris this an internal drive?17:24
rightonbroyeah, it's a 1.5tb desktop drive I have in my HTPC, boot drive is an SSD….fwiw I did have TV and recording working on the SSD before I tried adding the 2nd drive17:25
rightonbrothe 1.5tb drive used to be an NTFS drive but I added an ext4 partition using gparted17:25
Kwisheroutput of : sudo fdisk -l17:26
rightonbrohttps://dpaste.de/5zyW17:27
Kwisherok, now: sudo cat /etc/fstab17:28
rightonbrohttps://dpaste.de/9dTF17:29
Kwisheryou are not automounting the new drive, could be the issue17:31
rightonbrois that not the same as mounting the drive via the Ubuntu desktop before running mythfrontend?17:32
Kwisherit's really not the proper way17:32
rightonbrook, i'll try that17:34
Kwisheri would add the following line to /etc/fstab : /dev/sdb1 /media/mjung/MythDrive ext4 defaults 0 117:35
rightonbroha, i was looking that up right now, thank you!17:35
Kwisherthen: sudo mkdir /media/mjung/MythDrive17:36
Kwisheryou might have to unmount the drive first17:36
rightonbroadded the line to fstab, unmounted drive, did the sudo command, rebooting….17:39
rightonbrouh-oh, the mythbuntu boot screen now says "Serious errors were found while checking the disk drive for/media/mjung/MythDrive17:39
Kwisherit should fix them17:40
rightonbroM for manual recover?17:40
rightonbroor I to ignore?17:40
KwisherM17:41
rightonbrodumped me to a maintenance shell and said "Filesystem check or mount failed."17:41
Kwisheranything important on the drive?17:45
rightonbroyeah, the NTFS partition, i have about 3 weeks of un-backedup TV that I was going to watch and then delete17:45
rightonbroeverything else is backed up17:46
rightonbrowondering if i should just completely blow away the entire 1.5tb drive17:46
Kwisherwhy is it ntfs?17:46
rightonbrotrying to switch to MythTV from Windows Media center17:47
Kwisherahh17:47
Kwisherare you stuck at the maint shell?17:47
rightonbroi rebooted and just Skipped the mount this time, so i'm back in Ubuntu desktop17:47
Kwisherdo: sudo mount -l to see if the partition is mounted17:48
rightonbrohttps://dpaste.de/DwbZ17:49
rightonbrolooks like it, right?  first line17:49
Kwisherok, so it's not mounted17:49
rightonbroit's not shown as mounted on the ubuntu desktop17:49
Kwisherfire up gparted and reformat the ext4 partition17:50
rightonbroalright so this is weird…gparted is reporting my ntfs partition is mounted at /media/mjung/MythDrive and my ext4 partition has no mount point17:53
Kwisherok try: sudo umount -f  /media/mjung/MythDrive18:01
Kwisheror right click on it in gparted and choose unmount18:01
rightonbrooh….so I set the line you gave me to put in fstab to sdb2 instead of sdb1 and it's now mounting the right partition18:02
rightonbroi think it was trying to mount the ntfs partition since it was the first one on the drive18:03
Kwisherahh, my mistake then18:03
Kwishersorry18:03
Kwishercorrect fstab first18:03
Kwisherthen sudo mount -a18:04
rightonbrono worries, i greatly appreciate the help….but mythtv is still giving me the Permission denied error18:04
rightonbroi corrected the fstab and rebooted18:04
rightonbroubuntu desktop shows the drive as mounted on boot now :)18:04
Kwisherand it mounted correctly?18:04
rightonbroyep18:04
Kwishercheck your spelling and capitalization in the be settings for your path statements for livetv and recordings18:05
rightonbrok one sec18:05
rightonbrolooks correct?  my default is /media/mjung/MythDrive/recordings/ and my Live TV is /media/mjung/MythDrive/livetv/18:08
rightonbroyou know i just did an ls -l on the MythDrive folder and it shows the recordings/ and /livetv/ to have a timestamp of 11:01, i created those a few hours ago….so it seems like something is touching them18:09
Kwisherpermissions still set for mythtv?18:10
rightonbroeverything at MythDrive and below is mythtv:mythtv18:10
rightonbromjung is root:root18:11
rightonbrodoes this seem right to you? https://dpaste.de/PNf818:14
rightonbrogroup is r-x18:14
Kwishermine is: drwxrwxr-x 2 mythtv mythtv 36864 Oct 10 22:00 recordings18:16
rightonbroi have drwxr-xr-x 6 mythtv mythtv 4096 Oct 11 09:25 MythDrive18:17
rightonbroand drwxrwxr-x 2 mythtv mythtv  4096 Oct 11 11:10 recordings18:17
Kwisherlooks correct, livetv still won't work?18:19
rightonbronope…and tailing the log still shows the Permission denied error18:19
Kwisheris your users account in the mythtv group?18:20
rightonbrouhh18:20
rightonbroyou mean the account i use to log into ubuntu?  mjung18:20
Kwisherit should be if it worked prior to the new drive18:20
Kwishertry kicking off a recording18:21
rightonbroi tried a manual schedule recording but it froze up and save and then kicked me back to the manual schedule menu18:23
rightonbrot 11 11:21:26 supercomputer mythbackend: mythbackend[2680]: E ProcessRequest programinfo.cpp:2358 (GetPlaybackURL) ProgramInfo(1005_20141011154747.mpg): GetPlaybackURL: '1005_20141011154747.mpg' should be local, but it can not be found.18:23
Kwisherthis is my fstab: # /media/mythtv was on /dev/sda4 during installation18:26
KwisherUUID=bb377d4a-3aca-4092-b40d-dfbfe6a1def9 /media/mythtv   ext4    defaults        0       218:26
Kwishertry changing your last digit from 1 to 2 like mine18:27
tgm4883just looking back at the backlog, did you guys verify there isn't a livetv storage group setup?18:27
rightonbroi have a live tv storage group setup18:28
tgm4883it's not required, but if it's set to a different directory then that could be the permissions error18:28
rightonbrojust changed fstab, rebooting18:28
tgm4883you don't need to reboot if you change fstab18:28
rightonbrosorry, i'm pretty noob at ubuntu18:28
tgm4883just unmount the drive "sudo umount /path/to/drive/" then remount "sudo mount -a"18:29
tgm4883that reads fstab18:29
rightonbrorebooted, tried to watch Live TV, still getting this18:29
rightonbroOct 11 11:28:56 supercomputer mythbackend: mythbackend[2105]: E TVRecEvent threadedfilewriter.cpp:129 (Open) TFW(/media/mjung/MythDrive/livetv/1400_20141011182856.mpg:-1): Opening file '/media/mjung/MythDrive/livetv/1400_20141011182856.mpg'.#012#011#011#011eno: Permission denied (13)18:29
tgm4883rightonbro: I don't know for sure, but it wouldn't surprise me that the issue you are having is because it's inside /media/mjung/18:30
tgm4883personally I mount mine to /srv/mythtv/18:30
Kwisheri've used /media for years and still do18:30
rightonbroi'm sorry, i don't know what the difference is you are suggesting18:30
tgm4883I know there are issues if it's mounted inside /home18:30
* rightonbro is used to OS X and windows18:30
tgm4883Kwisher: have you check his permissions all the way up the tree?18:31
tgm4883rightonbro: what is the output of 'ls -l /media/'18:31
rightonbromjung@supercomputer:/media$ ls -l /media/18:31
rightonbrototal 418:31
rightonbrodrwxr-x---+ 3 root root 4096 Oct 11 10:58 mjung18:31
rightonbromjung@supercomputer:/media$18:31
tgm4883yea that isn't going to work18:31
rightonbromjung needs to be assigned to mythtv too?18:32
tgm4883Kwisher: i'd imagine yours is different18:32
tgm4883rightonbro: what is this drive used for?18:32
Kwisherrightonbro: you might want to do: sudo chown mythtv:mythtv -R /media/mjung18:32
tgm4883what is this computer used for? mythtv only?18:32
rightonbroit's a 1.5tb drive that i'm going to use to store recordings + my music collection18:32
tgm4883if it's also a desktop computer, then I wouldn't change permissions there18:33
rightonbroit's in an HTPC that for the most part I used Windows Media Center for, hooked up to my TV in my living room, but occasionally I'll use Firefox in it.  No games or anything else18:33
Kwisherrightonbro: you won't want to store your music there18:33
Kwisherdedicate one partition to myth only18:34
tgm4883rightonbro: do you share the drive with WMC?18:34
rightonbrono, i'm trying to replace WMC with MythTV18:34
tgm4883ok18:34
rightonbroit has one NTFS partition on it already, but I'm going to back that up and blow it away at some point and then dedicate the whole drive to MythTV18:34
rightonbroand storing my music collection etc.18:35
rightonbroshould i go ahead and change ownership of /media/mjung to mythtv?18:35
tgm4883ok, well if you guys want to continue troubleshooting this that is up to you. Personally I'd just mount it in /srv/mythtv/ and fix your storage group locations18:35
tgm4883You probably can just change ownership on that directory, but IDK what will happen if you ever want to just plug in and scan some media18:36
Kwisherthe mount point is not critical, except for the /home18:36
rightonbrook so changing ownership totally worked18:36
rightonbroi'm watching a live football game right now18:36
Kwisherha18:36
rightonbroare there downsides to doing it this way?18:37
rightonbroi've never heard of /srv for example18:37
Kwishernope18:37
tgm4883well stuff in /media should be owned by the user that plugged in the device18:37
tgm4883IIRC, it's not meant for permanently mounted stuff18:38
tgm4883but probably won't cause any issues18:38
Kwisheri mount EVERYTHING in /media on all my nix systems18:38
Kwishernix doesn't care where you mount it, for the most part18:38
tgm4883Kwisher: then you are not using it in the way it was designed18:39
Kwisherit works so that's what i do18:39
rightonbroha!18:39
rightonbroso thank you guys VERY much for the help18:39
tgm4883Kwisher: I never said it couldn't work. I said if you at somepoint later it stops working because of something else that was done then you have no one else to blame but yourself18:40
rightonbrodo you work on mythtv?18:40
Kwishertgm4883: i've mounted everything in /media for over 10 years now, no issues what so ever18:40
tgm4883for instance, if  you take a frontend and have a local storage group of /media then you should be able to just plug in a usb stick and scan for it's media18:40
tgm4883if you mount your other stuff in /media that because a little more difficult18:41
tgm4883however, if you never plan on doing that, then you can do whatever you want18:41
rightonbroso if i'm configured this way and I plug in a USB stick it won't work?18:41
Kwisherjust to be clear, i use /media/mythtv18:42
Kwisher a folder inside /media18:42
tgm4883Kwisher: just to be clear, I'm just throwing out random examples of what could break, not an exaustive list of what will break18:42
Kwisherso mine is /media/mythtv/livetv & /media/mythtv/recordings18:42
tgm4883rightonbro: it becomes more difficult18:43
Kwisherrightonbro: it will work18:43
tgm4883rightonbro: since I'm assuming that mjung is your main user, so you can't just make that your local frontend storage group18:43
rightonbroi just plugged in a stick and it worked18:43
rightonbrowas able to copy file to/from it18:43
tgm4883rightonbro: does it work inside mythtv?18:44
rightonbroyou mean does the mythtv app work?18:44
tgm4883I suppose it might work, since it would just be mounting it inside that directory18:44
rightonbroor am i able to copy files into /media/mjung/MythDrive and below?18:44
Kwisherltr, rightonbro glad you got it working18:44
tgm4883and as long as this is a combined frontend/backend then it should work18:44
tgm4883You'd be sending the file from the backend to the frontend but I'd hope that mythtv is smart enough to not send that over the network18:45
rightonbrooh, i see what you mean, i can't seem to copy a file into MythDrive18:45
rightonbrowell, TV works, so i'm going to run it for awhile and test that and try to learn more about Ubuntu and when I do, I'll figure out the right adjustment18:45
rightonbrothank you 10000x guys, greatly appreciated18:46
tgm4883Kwisher: FWIW, /media is meant for removable media, /mnt is meant for temporary filesystems, and /srv is for site-specific data18:46
Kwisheryou do it your way, i'll do it mine, that's the beauty of linux :)18:46
rightonbrottyl!18:47
tgm4883Kwisher: yes, I understand that. I'm just explaining what they were designed to do, so shoot me18:47
Kwisheri've never read or found any info about drawbacks to where you mount thing18:48
tgm4883Kwisher: FFS, I was just explaining what they are designed for. It would be like if you actually told rightonbro what changing the 1 to a 2 would do in fstab rather than just saying "hey, mines like this you should change your to this too"18:50
tgm4883Kwisher: if it works for you, great, but when I help people in here (especially noobs) I would rather get them setup the correct way, not just some way that will work18:50
Kwisheryes, you are corect, i should have explained it18:50
tgm4883that's all I'm trying to get at18:51
Kwisheri understand you position18:51
tgm4883thanks18:51
tgm4883I do appreciate you in here helping, I know I'm not in here as much as I should be18:51
Kwisheri try when i can18:52
Kwishertgm4883: how long you been using myth?18:56
tgm4883since 2007, before there was mythbuntu18:56
Kwisheri think i started with .19 & mint-5, iirc18:56
tgm4883nice18:57
tgm4883I believe it was 0.20-0.21 I started18:57
Kwishernow i'm on .27 on xubuntu 14.0418:58
Kwisher7 tuners, one master b/e with a remote f/e18:59
Kwisherwell, time to do some chores, chat with you ltr19:01
tgm4883later19:01

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!