Page 1 of 2

USB not mounted on 2018 Stretch and select usb Files

Posted: Fri Jun 01, 2018 5:26 pm
by F1SSF
Hi alls,
I have installed rpidatv on new Stretch OS. (thank you Dave for this new dev)
No problem software run very well.
But when I use Putty , and selected Filet option, I cannot see TS files in usb media directory.
I have USB4, USB01 to USB07, but directory are empty.
I think my USB key is not mounted, or I forgotten something.......
Thx for support.
Best 73 Franck

Re: USB not mounted on 2018 Stretch

Posted: Fri Jun 01, 2018 6:55 pm
by G8GKQ
Hi Franck

Thanks for the report; I'm unable to check this at the moment. I'll look at it when I get back from Friedrichshafen.

Dave

Re: USB not mounted on 2018 Stretch

Posted: Sat Jun 02, 2018 6:08 am
by F1SSF
No problem Dave, good radio show...
73 Franck

Re: USB not mounted on 2018 Stretch

Posted: Tue Jun 05, 2018 9:21 pm
by G8GKQ
Hi Franck

Thanks for pointing this out. The automount feature was disabled in Stretch. I will try to set it to work in the next update. Before that, you can edit the file yourself:

Code: Select all

sudo nano /lib/systemd/system/systemd-udevd.service
then change the line that says MountFlags=slave to MountFlags=shared. Then ctrl-x, y, enter to get out of nano, and reboot.

USB drives should mount correctly after that.

Dave

Re: USB not mounted on 2018 Stretch

Posted: Wed Jun 06, 2018 6:24 pm
by F1SSF
Hi Dave
it's ok now, thank you for support.
So I have one question, is it possible in future update to select directly a TS file , or picture on USB key with the screen display?
At this time I can have only one path selected via putty.
Many thank's
Franck

Re: USB not mounted on 2018 Stretch

Posted: Thu Jun 07, 2018 10:47 am
by G8GKQ
Hi Franck

It's quite difficult to select a specific file on a touchscreen. I suppose that I could bring up the keyboard and ask you to type a filename. Would that be OK?

Dave

Re: USB not mounted on 2018 Stretch

Posted: Thu Jun 07, 2018 5:13 pm
by F1SSF
Hi Dave,
.I could bring up the keyboard and ask you to type a filename.
I think this soluce is not easy to use, if you don't remember the file name.
Is it possible to add a button to go in USB media key, and add a scrolling tape on right side, to choose a file, and clic with your figer directly on file name...
I don'yt kwon if it is possible....
Many thank's for your invest.
Super 73 Franck

Re: USB not mounted on 2018 Stretch

Posted: Fri Jun 08, 2018 10:02 pm
by G8GKQ
Hi Franck

The scrolling file display would be possible, but would take at least a couple of weeks of programming, so I'm not prepared to do it. There are other things that I want to get working first, such as better support for LeanDVB and the transmission of DVB-S2.

I hope that you understand

Dave

Re: USB not mounted on 2018 Stretch

Posted: Sat Jun 09, 2018 5:25 am
by F1SSF
Hi Dave,
No problem, I understand, it's only for comfort, it is not application.
you're right, the bottom first and the shape after ;)
Good luck and thank you again for your job.
Franck 73

Re: USB not mounted on 2018 Stretch

Posted: Sat Jun 09, 2018 7:32 am
by g0mjw
Hi Franck

Perhaps you could do this by renaming the files in your USB stick to a standard format, e.g. 0001.ts, 0002.ts etc and then create symbolic links to those on the SD card in a fixed place with a fixed format. Then Dave could select via a button and just a number. This would be easier than trying to parse a directory (not that this is all that difficult !).

To get all the files named sequentially in say a /videos directory on the root of the USB stick you could run something like [note this renames your files, it assumes they are all TS files, and I am assuming this is not a problem!]

cd /media/usb0/videos/ | ls -v | gawk 'BEGIN{ a=1 }{ printf "mv %s %04d.ts\n", $0, a++ }' | bash

Assume the links to these video files are to be held in a directory /home/pi/videos

$ ln -s /media/usb0/videos/ /home/pi/

That puts in the symbolic links. These could also be real files on the SD card if you prefer and there is space.



Mike