More > JRiver Media Center 24 for Linux

Notes from moving a Windows library to Linux

<< < (2/3) > >>

mwillems:
The main issue that case sensitivity introduces is when you wind up mixing windows and linux filesystems or want to use the same file system with JRiver clients on both windows and on linux.  If you commit to one or the other it's easy enough to fix, but if you use both you need to ensure that your directories are all named in a way that doesn't result in both an upper case and lower case version of the same file name.

For example, if you have a linux fileserver that has two directories: 1) Nick Cave and the Bad Seeds and 2) nick cave and the bad seeds, it will work just fine for local access.  *But* if you expose those directories as a samba/cifs share (which always uses windows conventions), you will be sad, because those directory names will "collide" and only one will be visible to the client (even if its a linux client), and half your files will be "missing" (although they will still exist on the server).  The way to fix the collision issue is to find and fix all the case variant doppelgangers on the system on which the files physically reside.  This one-liner, executed at the root of your music directory will tell you all the directories and files that are duplicated but varying only in case:

--- Code: ---find . | sort -f | uniq -di

--- End code ---

On the other hand, if you're not experiencing issues (i.e. if it's just an aesthetic thing), you could probably write a script that would title case everything pretty darn quick (i.e. the first answer at this link offers a pretty solid one: https://askubuntu.com/questions/589296/recursively-rename-all-files-and-folders-to-title-case-from-terminal).  You could then re-import the tags from the directory structure using library tools as drmimosa described.

danhardison:

--- Quote from: carlismysecondname on September 28, 2018, 04:52:05 am ---Apart from a few programs (including turbo tax), I'm pretty much satisfied with many of the available Linux distros now -- more and more viable software alternatives now exist. This was not the case back in 2010 when I tried my first flavor of Linux... It's hard to convince the masses to switch though -- in the way most of us similarly are just used to the QWERTY keyboard. Really, after 20 years of using a QWERTY style keyboard, there's little advantage in switching. Hmmm, actually I think it's much easier to jump into Linux than switching to a different keyboard layout. But it's going to take a longer while than previous predictions. A whole generation (or two) of Windows and Mac users have to die out first before Linux eventually dominates the desktop world.

--- End quote ---

Amen! Linux rocks. I am a professional software developer, specialising in SQL Server and Visual Studio, so I have to use a Windows machine for that, but otherwise I'd prefer to use Linux hands down every time. There is a slight learning curve and a few more hoops to jump through when installing new software (which is a good thing I think... how many Windows machines have you seen with tons of crap installed.. and icons all over the desktop etc.. aaaarrrggg). But once it's up and running Linux is SO much stabler(?) more stable(?), and doesn't slow down over time like Windows does with registry bloat etc... Not trying to start an OS flame war... just saying. Go Linux.

carlismysecondname:
I leave my linux machines running for several months at a time without me attending... sometimes just remotely checking, but that's it. It is incredidbly stable.

pinhead216:
Just wanted to add 1 "todo" to this topic as I found out myself doing this migration.

The description above works quite well until you start importing new entries to your library (given that you've restored from a windows generated library). As it turns out importing new files have the "old" windows format "\" in their filename which is a problem for automated processes like "Get Movie & TV info" as the file path is wrong.

Easy way to overcome this is to manually edit the "platform.jmd" file in the active library folder.
Just replace "[Platform]=Windows" with "[Platform]=Linux" and save the file.

mwillems:

--- Quote from: pinhead216 on March 01, 2020, 05:38:13 am ---Just wanted to add 1 "todo" to this topic as I found out myself doing this migration.

The description above works quite well until you start importing new entries to your library (given that you've restored from a windows generated library). As it turns out importing new files have the "old" windows format "\" in their filename which is a problem for automated processes like "Get Movie & TV info" as the file path is wrong.

Easy way to overcome this is to manually edit the "platform.jmd" file in the active library folder.
Just replace "[Platform]=Windows" with "[Platform]=Linux" and save the file.

--- End quote ---

Neat find!  That almost certainly explains some issues various folks have been seeing with cross-platform library transitions, such as https://yabb.jriver.com/interact/index.php/topic,123748.0.html

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version