[Solved-2] USB Stick for Car Listening

Everything about X, Gnome, KDE, ... and everything running on it

[Solved-2] USB Stick for Car Listening

Postby Soapm » 2018-12-04 23:38

Has anyone created a music USB Stick on Linux? No matter what I try, the head unit won't read the USB drive.

I tried mkfs.exfat and it won't read.
I tried using NTFS and it won't read.

I can format the drive in either filesystem on Windows and it works just fine, so I formatted it in windows then stuck it in my Debian box to copy over the files and again, the head unit can't read the USB stick.

I figure this out to save my life...

I have rsync all set to sync my drive with the folder I use to store my files, but once I run rsync the disk is unreadable just to the headunit. I can still read it in both Debian and Windows, just the car head unit says it's not readable?
Last edited by Soapm on 2018-12-07 17:08, edited 3 times in total.
User avatar
Soapm
 
Posts: 541
Joined: 2012-05-22 04:23

Re: USB Stick for Car Listening

Postby Soapm » 2018-12-05 00:14

I found a post on arch linux saying to use undevil??? Then I should be able to mount the usb drive this way and it'll work?

Code: Select all
udevil mount -o rw /dev/sdc1


Not sure why it matters but I'll try anything so here's figuring out what undevil is and how to use it...
User avatar
Soapm
 
Posts: 541
Joined: 2012-05-22 04:23

Re: USB Stick for Car Listening

Postby NFT5 » 2018-12-05 00:58

I have a few USB sticks (different genres, depending on my mood), which I use in the car. My head unit runs Windows CE and reads them all just fine.

All written in Debian, just copy and paste. Sticks formatted FAT32, although some may be FAT16.
User avatar
NFT5
 
Posts: 243
Joined: 2014-10-10 11:38
Location: Canberra, Australia

Re: USB Stick for Car Listening

Postby Soapm » 2018-12-05 01:54

NFT5 wrote:I have a few USB sticks (different genres, depending on my mood), which I use in the car. My head unit runs Windows CE and reads them all just fine.

All written in Debian, just copy and paste. Sticks formatted FAT32, although some may be FAT16.


Good to know, I don't know what happened but just installing the udevil packages and it started working with a NTFS filesystem??? Not sure which package did the trick since udvil installed about 38 packages but I just had it working while I went to the store.

Do you mount your usb drives using fstab or do you mount them another way? My reading says not to use fstab since the head unit doesn't know what to do with the attributes or I could be reading it all wrong... But other programs like udevil, pmount or usbmount does it a little different???
User avatar
Soapm
 
Posts: 541
Joined: 2012-05-22 04:23

Re: USB Stick for Car Listening

Postby pendrachken » 2018-12-05 02:36

Soapm wrote:
NFT5 wrote:I have a few USB sticks (different genres, depending on my mood), which I use in the car. My head unit runs Windows CE and reads them all just fine.

All written in Debian, just copy and paste. Sticks formatted FAT32, although some may be FAT16.


Good to know, I don't know what happened but just installing the udevil packages and it started working with a NTFS filesystem??? Not sure which package did the trick since udvil installed about 38 packages but I just had it working while I went to the store.

Do you mount your usb drives using fstab or do you mount them another way? My reading says not to use fstab since the head unit doesn't know what to do with the attributes or I could be reading it all wrong... But other programs like udevil, pmount or usbmount does it a little different???



Headunit should read FAT32 sticks. It doesn't matter how they are mounted FAT filesystems do not support ANY attributes. Note - some headunits won't read exfat, it's a little bit different. You would have to format the stick as vfat / fat32.

That being said automounting on plugging in is the easiest. After that I mount /umount by hand through the terminal.
fortune -o
Your love life will be... interesting.
:twisted: How did it know?

The U.S. uses the metric system too, we have tenths, hundredths and thousandths of inches :-P
pendrachken
 
Posts: 1331
Joined: 2007-03-04 21:10
Location: U.S.A. - WI.

Re: USB Stick for Car Listening

Postby Segfault » 2018-12-05 02:43

In Linux you can create a filesystem without partitioning. I do not use Windows, but it may create a partition table whether you want or not. Then there is a question of type, MBR or GPT. It has to be compatible with your player, which probably is not very versatile.
Segfault
 
Posts: 812
Joined: 2005-09-24 12:24

Re: USB Stick for Car Listening

Postby Soapm » 2018-12-05 02:53

My player is a DDX6904s and it claims to support fat, xfat and NTFS. It would read all of those file systems until I loaded the usb drive into my Debian box, then it would report an error with the filesystem. I've got 3 other usb disk I'm testing with, one formatted on debian with each of the file systems. I'll see if they play tomorrow but like I said, udevil loaded about 38 pages with several having dos in their names so I'm guessing they helped Linux better deal with the drives???

But the drive was mounted via fstab since I was googling how to mount a drive to /music using udevil? I never did figure out how to use it.
User avatar
Soapm
 
Posts: 541
Joined: 2012-05-22 04:23

Re: USB Stick for Car Listening

Postby Soapm » 2018-12-05 04:37

Wow, this is frustrating. This is the line I now have in fstab after all the back and forth advice I'm reading from google.

Code: Select all
UUID="7488-0B18"     /music        exfat  defaults,noatime,umask=000,dmask=000,fmask=000,uid=65534,gid=65534        0 0


And i still get a bunch of errors like this at the end of the rsync cycle.

Code: Select all
chown: changing ownership of '/music/': Operation not permitted


Is all these setting really necessary? What can I be missing that causes rsync to error at the end? I'm seeing so many conflicting options for mounting exfat in fstab that my head is spinning because I have no idea what any of these do or how to tell what my drive is looking for?


I then tried setting up the udevil and it looks as bad as fstab??? Is there a laymans version of what all this means?

Code: Select all
nosuid, noexec, nodev, noatime, fmask=0133, dmask=0022, uid=$UID, gid=$GID
User avatar
Soapm
 
Posts: 541
Joined: 2012-05-22 04:23

Re: USB Stick for Car Listening

Postby Dai_trying » 2018-12-05 08:59

I would guess your rsync command is trying to set usernames/groups to the files you have copied which is causing this problem on a usb stick that is not capable of saving this information, please post your rsync command to verify this.
Dai_trying
 
Posts: 567
Joined: 2016-01-07 12:25

Re: USB Stick for Car Listening

Postby Segfault » 2018-12-05 13:08

Uppercase/Lowercase. I recall DOS is illiterate, it cannot distinguish between U/l case. Maybe your player expects all uppercase filenames?
Segfault
 
Posts: 812
Joined: 2005-09-24 12:24

Re: USB Stick for Car Listening

Postby Soapm » 2018-12-05 15:46

Dai_trying wrote:I would guess your rsync command is trying to set usernames/groups to the files you have copied which is causing this problem on a usb stick that is not capable of saving this information, please post your rsync command to verify this.


I have this in my bash file so all I have to do is insert the usb drive and type "sync". Not sure where I got -arv from, obviously google provided the site but perhaps the secret is there...

Code: Select all
alias sync='rsync -arv /video/Music/Car\ SD\ Stick\ -\ Unsorted/ /music/ --delete-after'


Also note, I just realized this is only happening on exfat formatted drives, the ones formatted NTFS don't have this problem. So I am guessing the settings are different for exfat than they are for ntfs in the fstab file???
User avatar
Soapm
 
Posts: 541
Joined: 2012-05-22 04:23

Re: USB Stick for Car Listening

Postby Soapm » 2018-12-05 15:50

Segfault wrote:Uppercase/Lowercase. I recall DOS is illiterate, it cannot distinguish between U/l case. Maybe your player expects all uppercase filenames?


The same files are read in the player when copied from my windows machine, I'm just trying to get this to work from my headless video server so I can just use the rsync command to keep the archive in sync with the usb stick. My idea is to be able to change the archives with updates, deletions, etc... then every now and then sync it to the stick in the car.
User avatar
Soapm
 
Posts: 541
Joined: 2012-05-22 04:23

Re: USB Stick for Car Listening

Postby Segfault » 2018-12-05 15:57

OK, you have the USB stick made in Windows which can be read. And it won't be read after some files are added in Linux. So analyze the drive before and after. What is different? Shouldn't be hard to find out.
Segfault
 
Posts: 812
Joined: 2005-09-24 12:24

Re: USB Stick for Car Listening

Postby Dai_trying » 2018-12-05 16:40

the -a option is adding a lot of other options (-rlptgoD) which are making rsync attempt to preserve permissions as well as owner and group. I would suspect this could be the problem, could you try without the -a option?
Dai_trying
 
Posts: 567
Joined: 2016-01-07 12:25

Re: USB Stick for Car Listening

Postby Soapm » 2018-12-05 16:51

Dai_trying wrote:the -a option is adding a lot of other options (-rlptgoD) which are making rsync attempt to preserve permissions as well as owner and group. I would suspect this could be the problem, could you try without the -a option?


Yes, I will give that a try when I get home this evening. Thanks...
User avatar
Soapm
 
Posts: 541
Joined: 2012-05-22 04:23

Next

Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable