How to use an iPod with Ubuntu

Prerequisites
You need an iPod already formatted in Windows through iTunes, before you can proceed with this Howto. My iPod nano was already formatted with a Windows filesystem (fat32) as a factory default, but you may have one which uses the Mac filesystem.

Installing GTKPod
I'm using the program GTKPod for synchronizing my songs to the iPod. So first of all, you should install GTKPod.

If you want AAC support for GTKPod, type the following command in in the terminal:
sudo apt-get install gtkpod-aac
killall gnome-panel

without ACC support, the command would be: sudo apt-get install gtkpod
You can't have both installed at the same time.

Mounting the iPod
Now we're creating a mount point. You can skip this step, if Gnome created already one for you in the /media directory automatically.

First create the corresponding directory as a mount point for your iPod:
sudo mkdir /media/iPod

Let GEdit open the file fstab:
sudo gedit /etc/fstab

Add at the bottom:

/dev/sdc2 /media/iPod vfat nosuid,noauto,nodev,rw,umask=077,gid=1000,uid=1000,user,defaults,noatime,iocharset=utf8 0 0

Configuring GTKPod
When you go into GTKPod, go to Edit -> Preferences, Input/Output tab. I personally didn't get the auto mount/unmount thing working, so I left it unchecked.

However, the most important field in that entire preferences window is the iPod mount point field in the Input/Output tab. Fill in the mount point field with the appropriate folder (in this example /media/iPod).

Restart the program. It will automatically fill the GTKPod database with all of the songs and playlists that you have stored on your iPod prior to setting up GTKPod.

When problems occur
However, here is the rub: GTKPod seems to work randomly for different people. It will work on one synchronization, yet it will stop working for subsequent synchronizations. Others will find that it will not work, period. There's a simple solution to that, actually; just type the following command in into your console app:

sudo dosfsck -a /dev/sdc2

sdc2 being the partition where your iPod data resides. Be sure to check out /etc/mtab with gedit in order to confirm which /dev/ node is being used for your iPod.

The above command will execute dosfsck, and automatically fix any errors encountered in the vfat partition.

Have fun!
After that, GTKPod should work flawlessly without your system automatically mounting your iPod as read only. Now you can also write on your iPod and therefore synchronize your MP3 and AAC files.

no dice

when I run sudo dosfsck -a /dev/sdc2 I get: dosfsck 2.11, 12 Mar 2005, FAT32, LFN open /dev/sdc2:No such file or directory I have no idea what I'm doing wrong...total noob here.

Your iPod could use a

Your iPod probably uses a different device name on your system.

sdc2 being the partition where your iPod data resides. Be sure to check out /etc/mtab with gedit in order to confirm which /dev/ node is being used for your iPod.

Once you have done that, you should now whether it's sdc1, sdc2 or something else on your system.

new ipod shuffle

With my brand new ipod shuffle, i get this in dmesg

[17179695.348000] SCSI device sda: 495616 2048-byte hdwr sectors (1015 MB) [17179695.352000] sda: Write Protect is off [17179695.352000] sda: Mode Sense: 64 00 00 08 [17179695.352000] sda: assuming drive cache: write through [17179695.352000] sda: unknown partition table
I cannot mount any of the partition contained in sda, but the command mount /dev/sda on /media/ipod (note the DEVICE sda not the partition) does the job.
Weird, isn't it ?

Easy Podcasts on your IPOD

Hi,If you're looking to setup an automated way of  downloading new podcasts and synchronising them to your IPOD, then try Perlpod http://sourceforge.net/projects/perlpod/.It's great for putting in a crontab and having your IPOD kept upto date with all the new podcasts you like.

Good result

Excellent article leading to a great result. Thanks!

my ipod is still silent!

Hi!

Thanks a lot for your explanation.
Everything worked fine...
I can now see the content of my iPOd nano 4GB (which I hadn't seen for months since my ubuntu 9.04 stopped reading it!) but unfortunately when I click to play the songs nothing happens except for a message at the bottom of the window that says "could not find command 'xmms' specified for 'Play now'....

Any ideas?

best,
sara

Unable to do a few steps

Hi,

Firstly, its an awesome post. I could get a lot of things using that. I am a newbie hence I am facing a few problems :

1. There is no input/output tab in preferences. Hence I went into repositories and created a new repository for the ipod and added the mount point. Is it the same? If not, please let me know how to get to it.

2. I checked up /etc/mtab, I dont know how to check which dev node is being used. Can you let me know how to find it. Presently mtab file looks like :
/dev/sda3 / ext4 rw,errors=remount-ro 0 0
proc /proc proc rw 0 0
none /sys sysfs rw,noexec,nosuid,nodev 0 0
none /sys/fs/fuse/connections fusectl rw 0 0
none /sys/kernel/debug debugfs rw 0 0
none /sys/kernel/security securityfs rw 0 0
udev /dev tmpfs rw,mode=0755 0 0
none /dev/pts devpts rw,noexec,nosuid,gid=5,mode=0620 0 0
none /dev/shm tmpfs rw,nosuid,nodev 0 0
none /var/run tmpfs rw,nosuid,mode=0755 0 0
none /var/lock tmpfs rw,noexec,nosuid,nodev 0 0
none /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,noexec,nosuid,nodev 0 0
/home/chandu/.Private /home/chandu ecryptfs ecryptfs_sig=dc98584edef3f8f4,ecryptfs_fnek_sig=37c868f74d816a7d,ecryptfs_cipher=aes,ecryptfs_key_bytes=16 0 0
gvfs-fuse-daemon /home/chandu/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,user=chandu 0 0
/dev/sda8 /media/221030EC1030C915 fuseblk rw,nosuid,nodev,allow_other,default_permissions,blksize=4096 0 0

3. I could only see 8gb,16gb for touch. couldnt find an option for ipod Touch 32gb (Its 4g, if required). Please let me know how to proceed.

Thanks