PDA

View Full Version : Storing files on Linux - naming etiquette



Jim Willsher
2004-04-26, 11:01
Hi all,

Having ripped my entire CD collection to MP3 I'm now looking for a home for
the files, and the ideal place is my RedHat Linux server (switched on 24x7).
Now, all my filenames are currently on a Windows PC in the convention:

Number - Title

In a folder called

Album

E.g.

Brothers In Arms\01 - So Far Away.mp3
Brothers In Arms\02 - Money For Nothing.mp3


I'm a bit of newbie at Linux, and it seems to handle file names with spaces
(using escape characters). BUT...what I'm looking for are other peoples
thoughts on the filenames. For example, should I rename them all to replace
the spaces with underscores etc. I've already set my ID3 tags to my
preferences, so renaming is fine.

Thoughts please :-))

Many thanks,


Jim

Jason Holtzapple
2004-04-26, 11:12
Jim Willsher wrote:
> Hi all,
>
> Having ripped my entire CD collection to MP3 I'm now looking for a home for
> the files, and the ideal place is my RedHat Linux server (switched on 24x7).
> Now, all my filenames are currently on a Windows PC in the convention:
>
> Number - Title
>
> In a folder called
>
> Album
>
> E.g.
>
> Brothers In Arms\01 - So Far Away.mp3
> Brothers In Arms\02 - Money For Nothing.mp3
>
>
> I'm a bit of newbie at Linux, and it seems to handle file names with spaces
> (using escape characters). BUT...what I'm looking for are other peoples
> thoughts on the filenames. For example, should I rename them all to replace
> the spaces with underscores etc. I've already set my ID3 tags to my
> preferences, so renaming is fine.

I like to make sure every filename is unique in my
music tree, and use a minimum of strange characters for filenames.
[0-9a-z_-]. Spaces are handled well with most unix shells and
utilities these days, but I avoid them anyway.

for regular albums:

artist/album/artist_-_album_-_99_track.ext

for various artists albums:

various_artists/album/album_-_99_artist_-_track.ext

and I have a system for classical CDs that I won't go into.

The nice thing about unix is you can make changes to your naming scheme
(like changing "_" to space if you change your mind) very easily.

--Jason

Pat Farrell
2004-04-26, 11:42
At 02:01 PM 4/26/2004, you wrote:
>the files, and the ideal place is my RedHat Linux server (switched on 24x7).

Good choice.

>Brothers In Arms\01 - So Far Away.mp3
>Brothers In Arms\02 - Money For Nothing.mp3
>I'm a bit of newbie at Linux, and it seems to handle file names with spaces
>(using escape characters). BUT...what I'm looking for are other peoples
>thoughts on the filenames.

I have nearly 600 CDs and 8300 songs on a Fedora Linux box with Samba.
The file names, artist names, etc. have spaces. It all works fine.

I thought about renaming everything, but it would be a lot of work
even with a suitable script, and since it works, there is no need to change.

Having slashes in the filenames is a bad idea, whether it is forward / or
backwards \ which can cause problems if you love AC/DC

If you use Windows clients, as most people do, and Linux for file storage,
then you'll find that sticking with US ASCII printable characters is better.
The accented characters of Western European languages work differently
in different operating systems and file systems. This is more
of a problem with classical collections: Andrés Segovia really should
be stored as Andres Segovia just to keep the file systems all happy.

Look up Samba for your linux box, maybe even get the O'Reilly book on it.
You'll love it.

Pat

Healy
2004-04-26, 12:58
I personally have all my files on a windows box in a raid mirror and
they are exported to a linux box running the slimserver and mounting the
mp3's over a samba file share.

All my files are: artist\album\track# - songtitle.mp3

I have had no problems with spaces at all. My current library is over
21 thousand songs. The only issue I've run into has been if I create a
playlist in a windows client (IE: Winamp) and then try to put it on the
server, I have to replace all the \ with / (a simple command in vi can
do this quickly).

As soon as I get a raid card that works better under linux than my
current one, I will move the whole system to linux. I still rip on
windows (EAC + LAME + Tag & Rename) but windows is too flakey to have
the server run on it 24/7. Too many reboots are required any time
something new is installed and that makes the server hang as it's
waiting for the media to come back online.

-Healy


On Mon, 2004-04-26 at 11:01, Jim Willsher wrote:
> Hi all,
>
> Having ripped my entire CD collection to MP3 I'm now looking for a home for
> the files, and the ideal place is my RedHat Linux server (switched on 24x7).
> Now, all my filenames are currently on a Windows PC in the convention:
>
> Number - Title
>
> In a folder called
>
> Album
>
> E.g.
>
> Brothers In Arms\01 - So Far Away.mp3
> Brothers In Arms\02 - Money For Nothing.mp3
>
>
> I'm a bit of newbie at Linux, and it seems to handle file names with spaces
> (using escape characters). BUT...what I'm looking for are other peoples
> thoughts on the filenames. For example, should I rename them all to replace
> the spaces with underscores etc. I've already set my ID3 tags to my
> preferences, so renaming is fine.
>
> Thoughts please :-))
>
> Many thanks,
>
>
> Jim
>
>

Rob Funk
2004-04-26, 13:20
Jason Holtzapple wrote:
> I like to make sure every filename is unique in my
> music tree, and use a minimum of strange characters for filenames.
> [0-9a-z_-]. Spaces are handled well with most unix shells and
> utilities these days, but I avoid them anyway.

Same here on all these counts, except that I go ahead and use accents in
filenames, but not directory names.

I name every song like Dire_Straits-Money_For_Nothing.mp3, and if there are
multiple versions of a song by the same artist I add another dash with
either the year or some other tag, e.g:
Dire_Straits-Money_For_Nothing-1984.mp3
Dire_Straits-Money_For_Nothing-live.mp3
Any hyphens in the original title change to underscores, and other
punctuation is removed.

I have a separate directory for each artist, and no album subdirectories
under those, just songs. Artists with less than three songs get stuck in a
"misc" directory.

Also, "The" always gets removed from the artist name in the filename.


My biggest problem is how to identify songs from musicals.
Murray_Head-One_Night_In_Bangkok.mp3 isn't so hard, but the rest of "Chess"
is a pain to do that way, so I end up sticking the name of the musical in
as the artist.

> The nice thing about unix is you can make changes to your naming scheme
> (like changing "_" to space if you change your mind) very easily.

Yes, I've ended up writing a couple scripts to help with my renaming.

--
==============================| "A slice of life isn't the whole cake
Rob Funk <rfunk (AT) funknet (DOT) net> | One tooth will never make a full grin"
http://www.funknet.net/rfunk | -- Chris Mars, "Stuck in Rewind"