LinuxQuestions.org
Have you heard the LinuxQuestions.org Podcast?
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This 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.

Notices

Reply
 
Thread Tools
Old 03-03-2005, 12:39 AM   #16
jaufrec
LQ Newbie
 
Registered: Nov 2003
Posts: 4
Thanked: 0
update on gtkpod


[Log in to get rid of this advertisement]
gtkpod 0.85 also works fine with the shuffle, as long as you manually run mktunes.pl from gnupod after exiting gtkpod and before unmounting the shuffle.

leosgb, it appears that either gtkpod or gnupod can create all of the necessary files for the shuffle, so you don't need to worry about not being able to back them up. I wiped the shuffle with rm -rf * and later got it to work via gnupod.
jaufrec is offline     Reply With Quote
Old 03-03-2005, 12:53 PM   #17
leosgb
Member
 
Registered: Nov 2004
Location: Brazil
Distribution: Gentoo
Posts: 356
Thanked: 0
The newest version of gnupod claims they support the shuffle and they do! I just tried it. Unfortunatelly when using gtkpod i continue having the same problems but i will continue looking for a solution but a command line solution as gnupod is fine for me. I can add/remove/rename files from my shuffle. When i get a chance i will try the itunes compatibility test... I strongly suggest the reading of gnupod's manual because it is very self contained but i leave here a few steps to use it(taken from the manual):
1 - prepare it for gnupod if it was never done before(command changes if you have a mac like ipod):
gnupod_INIT.pl -m /mnt/ipod

2 - Add a few songs:
gnupod_addsong.pl -m /mnt/ipod /mp3_dir/*

3 - Delete songs(will delete all files from artistname):
gnupod_search.pl -m /mnt/ipod -a "artistname" -d

4 - before leaving:
mktunes.pl -m /mnt/ipod
/usr/bin/sudo /usr/bin/eject /dev/sda1

These are the steps i take to use mine. There are many other options please refer to the manual first! Thanks jaufrec for your help and good luck for the others.
leosgb is offline     Reply With Quote
Old 03-13-2005, 09:16 AM   #18
lm317t
Member
 
Registered: Jan 2005
Location: Raleigh, NC
Distribution: Debian Etch, Slackware 10.2, Ubuntu 6.10, OpenWRT
Posts: 66
Thanked: 0
I have several close friends and family that I provided Linux support & installation for (folks I talked into using Linux). They are using it and enjoying it tremendously. It would be great if those who have gotten their shuffle to work with gtkpod could post their steps sometime, so I could do it for my pals. These folks are not commandline people, but love their Linux-box just as well. The more folks who are happy with Linux, the more competition MS has.
lm317t is offline     Reply With Quote
Old 03-13-2005, 02:21 PM   #19
R00ts
Member
 
Registered: Mar 2004
Location: Austin TX, USA
Distribution: Debian unstable, Ubuntu Dapper
Posts: 479
Thanked: 0
Quote:
Originally posted by leosgb
I strongly suggest the reading of gnupod's manual because it is very self contained but i leave here a few steps to use it(taken from the manual):

1 - prepare it for gnupod if it was never done before(command changes if you have a mac like ipod):
gnupod_INIT.pl -m /mnt/ipod

2 - Add a few songs:
gnupod_addsong.pl -m /mnt/ipod /mp3_dir/*

3 - Delete songs(will delete all files from artistname):
gnupod_search.pl -m /mnt/ipod -a "artistname" -d

4 - before leaving:
mktunes.pl -m /mnt/ipod
/usr/bin/sudo /usr/bin/eject /dev/sda1

These are the steps i take to use mine. There are many other options please refer to the manual first! Thanks jaufrec for your help and good luck for the others.

Yup, I just got my brand new 1GB ipod shuffle working with Linux! I'm so happy! It took me a while to figure out because I haven't played around with mounting USB devices before and my ipod already had a few songs from itunes installed (on my dad's Windows machine). Here's what I did step by step:

1) Decide a directory for mounting your ipod shuffle. I used /mnt/ipod, and from here on out I will refer to it as {ipodDIR}, so wherever you see it replace that with the name of your mount directory

2) Edit your .bashrc file in your home directory. Add the following at the beginning after the comments:

Code:
# Add mount path for ipod
export IPOD_MOUNTPOINT={ipodDIR}
Obviously, '/mnt/ipod' should be replaced with whatever directory you decided to use to mount your ipod. This is so that you don't have to tediously type '-m={ipodDIR}' everytime you run a gnupod script.

3) Type "source .bashrc" (assuming you are in your home directory

4) Type su and enter password to get root priveldges

5) Now create the directory for mounting your ipod shuffle. 'mkdir {ipodDIR}'

6) Plug your ipod into a functional USB port on your PC

7) Type "cat /proc/bus/usb/devices | grep ipod" and make sure you see that the device is plugged in properly. If you don't see it listed check your USB connection (the orange LED on the front of the ipod shuffle should be blinking when it's plugged in, but it might not if it's fully charged I think)

8) Type 'modprobe -l | grep usb-storage' to make sure you have the usb-storage module loaded. If you don't, simply type modprobe usb-storage.

9) Now it's time to mount your ipod shuffle. My device was at '/dev/sda1', but yours may be different. 'mount -t vfat /dev/sda1 {ipodDIR} -o sync'

10) If it's your first time running gnupod on your ipod shuffle run the following command: 'gnupod_INIT'. This creates the directory tree and file structure that gnupod requires. You only have to run this once.

11) Run 'gnupod_check' and make sure there are no errors reported. If there are errors, see A) below.

12) Time for the fun stuff, adding music! This is the usage: "gnupod_addsong file_path/file_name". Wildcards work here too. Here's a couple cases:
Code:
gnupod_addsong ~/music/foreign/*.mp3
gnupod_addsong /home/username/music/classical/Beethoven_-_Moonlight_Sonata.mp3
13) After you are done adding all the music you want, run 'gnupod_search' which will print out every music file loaded on your ipod shuffle. You might also want to do this periodically if you are adding *a lot* of music, because it also reports how much space is left on the ipod.

14) Run gnupod_check one more time to make sure that there weren't any errors loading any of the files (I actually had a couple the first time, which caused my ipod to not play anything!)

15) *DO NOT UNPLUG OR UNMOUNT YOUR IPOD YET*. First run 'mktunes'. This script formats the gnupod playlist into the ipod playlist so that your ipod shuffle will actually play the files. (if you accidentally forget to do this, plug your ipod back in and re-mount it, then run the script and unmount it and it should be fine)

16) Now it is unsafe to unmount your ipod. Type 'umount {ipodDIR}'

17) Now you can listen to your music. Unplug the shuffle from the USB port and enjoy.

******************* Possible Problems and Fixes ***********************

A) If you have any errors reported by gnupod_check, run the following: 'gnupod_addsong --restore' I had to run it a couple times as I kept screwing things up. Then run gnupod_check again to make sure it works.

B) If you still have errors (like bad files) you can try browsing through {ipodDIR} and manually remove the old files. You can also do a "rm -rf" on the first subdirectory inside {ipodDIR}, but you will lose all your music if you do so and will have to run gnupod_INIT once again.





I hope that helps some people avoid the frustration I have for the past hour or so. Obviously there are some more advanced functions than what I listed here, but these are the basics. The gnupod manual is always a good source of information, however it seems geared towards ipod users (not ipod shuffle) and use with firewire, not usb.


GNUPOD manual: http://www.gnu.org/software/gnupod/gnupod.html
R00ts is offline     Reply With Quote
Old 03-22-2005, 08:45 AM   #20
jbmigel
LQ Newbie
 
Registered: Jan 2005
Posts: 8
Thanked: 0
Boot Linux from shuffle?

Im just wondering if anyone here has tried to use their shuffle to boot linux? I have been looking at DSL (damn small linux) and it looks like i can use that once i put it on the shuffle, problem is I first need an ext2 filesystem partition on it, I would also like around 700 MB retained in vFat so i can still use the shuffle as mp3 player when im away from my comp.

My problem is:

When i try to fdisk /dev/sdb1 (teh shuffle) I am told that

Quote:
jbm@ubuntu:~$ fdisk /dev/sdb1
You will not be able to write the partition table.

Command (m for help): p

Disk /dev/sdb1: 1040 MB, 1040691200 bytes
128 heads, 40 sectors/track, 396 cylinders
Units = cylinders of 5120 * 512 = 2621440 bytes

Device Boot Start End Blocks Id System

Command (m for help): q
anyone know why fdisk wont let me rewrite partition table on this USB device, or why it is not giving me any information about the current table config? (it was not mounted at the time)
jbmigel is offline     Reply With Quote
Old 03-26-2005, 01:43 PM   #21
Fascination
LQ Newbie
 
Registered: Jun 2004
Location: Jersey, Channel Islands
Distribution: Ubuntu 7.04
Posts: 16
Thanked: 0
gnupod 0.98 seems extremely unstable - I started adding files to the ipod when for no apparent reason it told me the db had suddenly become read only. I then went to try and finalise and then unmount but it just kept telling me it was read only.
Only way I was able to get it working again was rebooting and starting from scratch, but it seems that the files are still there on the ipod somewhere, just not noticed by it now.

Last edited by Fascination; 03-26-2005 at 03:29 PM..
Fascination is offline     Reply With Quote
Old 03-26-2005, 03:53 PM   #22
Angelo
Member
 
Registered: Mar 2003
Location: Connecticut
Distribution: Slackware 11.0/12.0, OpenBSD 3.7
Posts: 60
Thanked: 0
I have a brand new iPod shuffle that i've not even taken out of the box.

Is there anything special I have to do to format it, or can I just start using
gnupod with it? Do I need the software that comes with it for anything at
all? Thanks.
Angelo is offline     Reply With Quote
Old 03-26-2005, 04:53 PM   #23
jbmigel
LQ Newbie
 
Registered: Jan 2005
Posts: 8
Thanked: 0
Fasination said:
Quote:
but it seems that the files are still there on the ipod somewhere, just not noticed by it now
when you manually delete files from the shuffle it only "hides" the files by prepending a "." to the root folder names. To view these contents simple pass -a argument to ls

Code:
ls -a /dev/sdb1
this probably explains your mystery "device is read only" trouble as you filled it with deleted files.
jbmigel is offline     Reply With Quote
Old 03-26-2005, 10:09 PM   #24
phxguy
LQ Newbie
 
Registered: Mar 2005
Location: phoenix
Distribution: ubuntu / kubuntu
Posts: 1
Thanked: 0
Unhappy details Please....

I have read through the posts and looked at the readme's and can't get my ipod to work under ubuntu using gnupod or gtkpod.

Can someone who has gotten there iipood shuffle to work successfully post all the steps taken to successful completion?

Sorry but Im a bit of a newbie here..

Thanks
phxguy is offline     Reply With Quote
Old 03-27-2005, 08:06 AM   #25
Fascination
LQ Newbie
 
Registered: Jun 2004
Location: Jersey, Channel Islands
Distribution: Ubuntu 7.04
Posts: 16
Thanked: 0
I managed to clear out the ipod of all the 'deleted' files, but the original problem still remains - Ill be selecting music to go on it, and suddenly it will tell me that db is now read only (and then thats when the files enter that hidden/deleted state).
Any ideas? Perhaps Im not sorting out the correct permissions somewhere or something.
Running Slackware 10 btw.
Fascination is offline     Reply With Quote
Old 03-27-2005, 09:19 AM   #26
Fascination
LQ Newbie
 
Registered: Jun 2004
Location: Jersey, Channel Islands
Distribution: Ubuntu 7.04
Posts: 16
Thanked: 0
Ok, heres a run down of exactly what happens:

In order to save time, I copied about 800meg worth of mp3s to a folder called 'mp3' (/home/mp3). I then run gnupod_addsong.pl -m /mnt/ipod /home/mp3/*.mp3 and it begins work. After a few songs though, this comes up:

Code:
*** FATAL *** Could not copy '/home/mp3/<songname>.mp3' to '/mnt/ipod/iPod_Control/Music/f14/<songname>.mp3' : No space left on device
then each song still left to do after that gets its on:

Code:
getpath() : No path for <songname>.mp3 found, giving up!
*** FATAL *** Skipping '/home/mp3/<songname>.mp3', no target found
then:

Code:
Writing new XML File, added 18 file (s)
Could not write to '/mnt/ipod/iPod_Control/.gnupod/GNUtunesDB.xml_tmp_1111931619' : Read-only file system
If I try and run mktunes.pl:

Code:
mktunes.pl 0.98 (C) Adrian Ulrich
warning: Could not write to /mnt/ipod, iPod mounted read-only? (Read-only file system)
*** Sorry: Could not write your iTunesSD: Read-only file system, did you run gnupod_INIT.pl?
(which I had done, btw)

If I run gnupod_addsong.pl -m /mnt/ipod --restore it starts to write files but then generates:

Code:
Writing new XML File, added 4 file (s)
Could not write to '/mnt/ipod/iPod_Control/.gnupod/GNUtunesDB.xml_tmp_1111931619' : Read-only file system

Any ideas as to what the feck is going on would be much appreciated.
Fascination is offline     Reply With Quote
Old 03-27-2005, 11:51 PM   #27
R00ts
Member
 
Registered: Mar 2004
Location: Austin TX, USA
Distribution: Debian unstable, Ubuntu Dapper
Posts: 479
Thanked: 0
Re: details Please....

Quote:
Originally posted by phxguy
I have read through the posts and looked at the readme's and can't get my ipod to work under ubuntu using gnupod or gtkpod.

Can someone who has gotten there iipood shuffle to work successfully post all the steps taken to successful completion?

Sorry but Im a bit of a newbie here..

Thanks
Try reading like 10 posts up, near the top of the 2nd page. I posted a step by step guide to how I got it working under Debian, which is very similar to Ubuntu.


If that doesn't work for you, make sure that:

A) You are using gnupod version 0.98 or later

B) If this is your first time messing around in Linux with your ipod shuffle, don't forget to run this script: "gnupod_INIT" (make sure your $IPOD_MOUNTPOINT environmental variable is setup)
R00ts is offline     Reply With Quote
Old 03-29-2005, 11:45 AM   #28
giosue_c
Member
 
Registered: Mar 2004
Location: Kansas
Distribution: Debian!
Posts: 39
Thanked: 0
Thanks R00ts! Your instructions are right on. I have just one tiny correction:

Quote:
Originally posted by R00ts


7) Type "cat /proc/bus/usb/devices | grep ipod" and make sure you see that the device is plugged in properly. If you don't see it listed check your USB connection (the orange LED on the front of the ipod shuffle should be blinking when it's plugged in, but it might not if it's fully charged I think)
Nothing showed up for me here becuase of case sensitivity. "cat /proc/bus/usb/devices | grep -i ipod" Running that should work tho. As for the people having problems with read-only... make sure you have permissions to do what you are doing. try "ls -la /mnt/ipod". That will tell you which users and groups can write to the pod.

Mine looks like this:
drwxr--r-- 3 root root 4096 Mar 29 10:19 ipod

which means only root can write to it. So if yours looks like this you must be running as root in order for anything to work.

Last edited by giosue_c; 03-29-2005 at 11:47 AM..
giosue_c is offline     Reply With Quote
Old 03-30-2005, 04:59 AM   #29
Fascination
LQ Newbie
 
Registered: Jun 2004
Location: Jersey, Channel Islands
Distribution: Ubuntu 7.04
Posts: 16
Thanked: 0
Yes, I am running as root; the fact that it starts transferring files and occasionaly lets me run mktunes.pl if its only a handful of files shows this.
It seems like I have tried everything, and I just really am at loss as to what could be the problem.
Fascination is offline     Reply With Quote
Old 04-17-2005, 02:20 AM   #30
pld
Member
 
Registered: Jun 2003
Location: Southern US
Distribution: Ubuntu 5.10
Posts: 206
Thanked: 0
Thought i would post another link that might be helpful to everyone.

I just got my ipod shuffle this morning, and have only actually played with it on my work win laptop. I came across this site while trying to find a way to rebuild the database without actually using itunes ( yuck ).

http://www-user.tu-chemnitz.de/~mfie...?software=ipod

Seems he has also written a small python script for those of us on *nix!

Just use the ipod as any other flash usb mass storage device, run the python script, unplug and go!

Im going to try this on my box a little later this evening, i'll post back my results!
pld is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ipod Shuffle using GTKPod notregistered Linux - General 4 08-12-2005 10:19 AM
ipod shuffle speel *BSD 2 06-10-2005 07:09 PM
ipod shuffle, again. JoeUser11 Linux - Newbie 8 05-17-2005 08:58 PM
ipod/ipod shuffle woes (lack of permissions to edit files) Lechium Linux - Software 1 04-13-2005 04:14 PM
Does Apple's iPod Shuffle work with linux? dr_zayus69 Linux - Hardware 5 04-09-2005 09:49 AM


All times are GMT -5. The time now is 12:22 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration