Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I inherited a Philips portable mp3 player and it has songs on it already. What I wanted to do is to add more songs and even a playlist.
This is what I tried so far:
I can read what is on the device fine in Konquerer so I tried to just drag and drop songs. That did not work. Once the device was unplugged, the songs did not show up. The previous owner said that it had to be synced. What Linux app will do that?
I looked at both Amarok and Banshee. Amarok could not connect but I was able to import the songs from the device in Banshee but there was no way to do the opposite.
If you can read it, it is already mounted. Why doesn't drag and drop work? Is there an error message?
Most likely you just don't have permissions to write for some strange reason.
Anywho - here's a quick guide how to add it so it gets mounted with rw permissions every time.
$ sudo fdisk -l
To see what the device name is.
Find out the uuid:
ls -l /dev/disk/by-uuid
Add the device to fstab:
UUID=[whatever it said in the above command, without the''] /media/[you-have-to-create-this-folder] auto user,defaults,rw 0 0
You might have to do a
$ chown [your-user-name]:[your-group] on the mountpoint.
I haven't done this in so long - there is probably a mistake somewhere.
Thank you very much.
What is happening is that the song files are on the device but the device does not "know" that they are there. When you look at it on the computer, you can plainly see the songs and play them from the device but like I said, once it is unplugged from the computer, the new songs don't show up. The device is acting like a mere usb stick and not a player. The previous owner said it needs to be sync-ed.
Is there a way to tell the thing to sync with the computer or re-index it's contents?
Oh, so it probably needs a program that writes some indexing data on the device, like the ipod's do.
Find out the exact name of the model, and do a search, maybe someone has written something to make it work. If I'm right then the player should come with a program to "sync" it - for windows at least
I have a question about the /mnt folder: can I add folders to it? It seems that many apps want this folder for media. My system mounts stuff using the /media folder instead and the /mnt folder is always empty.
You can mount stuff anywhere you want. I think /media/ has been the place where devices mounted with pmount or plug-and-play devices used to go... so it seems to be intended as the place where user accessible devices are mounted, and /mnt/ is for system wide stuff.
To be honest I don't quite get the distinction.
You'll need root permission (sudo), but yes, you can create folders there.
But apparently your device got recognized and mounted, so there is no reason for adding it to fstab or creating a custom mountpoint if you already have write access as regular user. All you need is one of those syncing programs.
2) Open the pymaj.py file with a text editor and set the parameters of jukebox
object initialization at the end of file
"dbfile" points to the MyDB file on your mounted player
"audiofolder" is the mp3 directory on your player
"verbosity" can be 0 (almost no output), 1 (standard) or 2 (details)
So there would be something like: (e.g.)
if __name__ == "__main__":
jukebox = PyMaj(dbfile="/mnt/usb/_system/media/audio/MyDB", \
verbosity = 1)
There is no /audio and there is no /MyDB directories on the player. All the music (mp3's) are in the /Music folder. Do I have to make a MyDB folder and will that ruin what is on there or end up consuming all the space? (it only has room for 1 GB).
If it needs syncing, then there has to be a database file somewhere on the player. Creating a folder won't help you since the player will probably not search its flashdrive for a db file, it will look for it where it expects it to be. You'll have to browse the folders or do a "find -name" search.
the "/audio" is a placeholder. In your case you should replace it with:
/media/TELECHIPS/Music in the pymaj.py
I did a search for your player. And I found some entries of people who have trouble getting this particular model working on windows too, since it demands XP-SP2 and Windows-Media-Player-10.
You could try to install WMP10, but... I would suggest you just dump it on ebay, and get a mp3 player that is not broken by design - one that you can just drag and drop the files on. I have yet to see the benefit in using a seperate, undocumented and possibly hidden data base. (It could be on a hidden partition, in case you don't find it on the filesystem)
Also, if you have a couple of projects to choose from, I would not necessarily go for the "this is my first python project" script... At least it wouldn't be the only thing I'd try.
There are a couple of projects that attempt to provide compatibility with gogear devices. None of them claim copmpatibility with your particular player though: http://tuxmobil.org/player_linux_survey_philips.html
I looked at it's file system on Windows (XP SP2, WMP 10) (I used Windows explorer for this) and it listed it like this:
\philips SA411X\Data (devicediversity.bin, SETTINGS.DAT, DevIcon, WMPInfo.xml, and DevLogo were in this folder)
\philips SA411X\Media (where the music, playlist, and voice folders were)
Then I used WMP10, but there was no way to just sync the files I had already put on there. It wanted to sync playlists not just files.
btw, what does the "_system" (in the pymaj instructions) mean?
Where did you do your search from? I tried Google (and only came up with this conversation) and Yahoo (and only came up with 2 manual websites that don't have a manual for this particular model).
Isn't this really a unix question?
When any device is mounted, the system sets aside a memory pool as a buffer.
From time the automagically flushes these buffers to the device. So in order for your files to actually to the device, try this command from a shell prompt "sync device" after the file copy (where deviceis either a physical device OR a mount point). Also try "man sync" to help understand what's happening.
I have a philips 8gig, used on ubuntu and other linux's, all I had to do was drag and drop into the devices music folder itself. I've never been able to actually sync through program (device never showed up). best regards in the future in making this easier for you