USB not mounted on 2018 Stretch and select usb Files

Discussion about this major DATV Project. See https://wiki.batc.org.uk/The_Portsdown_Transmitter
F1SSF
Posts: 87
Joined: Sat Nov 25, 2017 5:14 pm

USB not mounted on 2018 Stretch and select usb Files

Post by F1SSF » Fri Jun 01, 2018 5:26 pm

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
Last edited by F1SSF on Sat Jun 09, 2018 12:55 pm, edited 1 time in total.

G8GKQ
Site Admin
Posts: 2810
Joined: Sun Mar 22, 2009 1:21 pm

Re: USB not mounted on 2018 Stretch

Post by G8GKQ » Fri Jun 01, 2018 6:55 pm

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

F1SSF
Posts: 87
Joined: Sat Nov 25, 2017 5:14 pm

Re: USB not mounted on 2018 Stretch

Post by F1SSF » Sat Jun 02, 2018 6:08 am

No problem Dave, good radio show...
73 Franck

G8GKQ
Site Admin
Posts: 2810
Joined: Sun Mar 22, 2009 1:21 pm

Re: USB not mounted on 2018 Stretch

Post by G8GKQ » Tue Jun 05, 2018 9:21 pm

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

F1SSF
Posts: 87
Joined: Sat Nov 25, 2017 5:14 pm

Re: USB not mounted on 2018 Stretch

Post by F1SSF » Wed Jun 06, 2018 6:24 pm

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

G8GKQ
Site Admin
Posts: 2810
Joined: Sun Mar 22, 2009 1:21 pm

Re: USB not mounted on 2018 Stretch

Post by G8GKQ » Thu Jun 07, 2018 10:47 am

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

F1SSF
Posts: 87
Joined: Sat Nov 25, 2017 5:14 pm

Re: USB not mounted on 2018 Stretch

Post by F1SSF » Thu Jun 07, 2018 5:13 pm

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

G8GKQ
Site Admin
Posts: 2810
Joined: Sun Mar 22, 2009 1:21 pm

Re: USB not mounted on 2018 Stretch

Post by G8GKQ » Fri Jun 08, 2018 10:02 pm

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

F1SSF
Posts: 87
Joined: Sat Nov 25, 2017 5:14 pm

Re: USB not mounted on 2018 Stretch

Post by F1SSF » Sat Jun 09, 2018 5:25 am

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

g0mjw
Posts: 2346
Joined: Sat Sep 20, 2014 9:15 am

Re: USB not mounted on 2018 Stretch

Post by g0mjw » Sat Jun 09, 2018 7:32 am

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

Post Reply

Return to “The Portsdown Digital ATV System”