teslausb icon indicating copy to clipboard operation
teslausb copied to clipboard

Multiple USB media drives appear in vehicle

Open ken830 opened this issue 6 years ago • 5 comments

So, the dual drives was working great for me for about a day. Now, I see a bunch of USB drives in the media app. The first time I noticed this, I tried to click one of the "drives" just off the top of the screen and I could see my music, but now, even that doesn't work. I suspect the car keeps seeing progressively more and more empty drives and the one with music is now pushed way off the edge of the screen. Or I could be totally wrong.

[(https://imgur.com/BbaiWyu)]

ken830 avatar Oct 27 '18 06:10 ken830

I've switched the ordering of the files in g_mass_storage.conf. This causes the music drive to appear in the view in the Tesla. Just pick the device that has songs listed on it.

I think we're going to have to live with multiple devices appearing in the list in the Tesla. The only way I've found to eliminate having two devices for each backing file is to use removable=0 in g_mass_storage.conf, but that seems to cause Windows to not see the USB drives.

cimryan avatar Oct 27 '18 16:10 cimryan

If someone can figure out how to show only one device in the Tesla, and still be able to add/remove files when the drive is plugged into a PC, and still have the automatic transfer work, please submit a PR.

cimryan avatar Oct 27 '18 16:10 cimryan

I saw the reversal of the drives in g_mass_storage.conf. Is there any way I can switch the order myself by editing the file? The filesystem is read-only when I SSH in and try to edit it.

ken830 avatar Oct 28 '18 00:10 ken830

Instructions for making changes are at the bottom of the main readme.

cimryan avatar Oct 28 '18 01:10 cimryan

Thanks. I don't have that script in there:

`root@teslausb:/# /root/bin/remountfs_rw

-bash: /root/bin/remountfs_rw: No such file or directory`

but I was able to manually type the commands to remount after looking at the script in the code section of the repository.

ken830 avatar Oct 28 '18 07:10 ken830