13/August/2004

iPod

I finally falled into the Apple’s trap and bought an iPod. I have been looking at
other choices for a long time, but really, here in Spain at least, iPod is the
only one worthy (you can get nice players but with only 256/512 MB, which sucks).
Ok, so no more excuses, yes, I bought it, and it really rocks, and, the most important,
works pretty well on Linux, so here’s a mini-HOWTO on how things worked for me, in
case anyone is interested.

First of all, you need a Firewire port, which most modern computers have. I tried
to just mount the iPod directly from Linux for the first time, but since it comes
with the Macintosh format, it didn’t work (probably because I have missing Mac-related modules
in my kernel). So, I installed iTunes on a Windows machine
and formatted the iPod. Once that is done, when you plug the iPod to a Linux machine,
the partitions are recognized. In my case:


Aug 13 14:40:54 cerler kernel: ieee1394: Node resumed: ID:BUS[0-00:1023] GUID[000a270002601e5c]

Aug 13 14:40:54 cerler kernel: ieee1394: Node changed: 0-00:1023 -> 0-01:1023

Aug 13 14:40:54 cerler kernel: scsi3 : SCSI emulation for IEEE-1394 SBP-2 Devices

Aug 13 14:40:55 cerler kernel: ieee1394: sbp2: Logged into SBP-2 device

Aug 13 14:40:55 cerler kernel: ieee1394: Node 0-00:1023: Max speed [S400] - Max payload [2048]

Aug 13 14:40:55 cerler kernel: Vendor: Apple Model: iPod Rev: 1.50

Aug 13 14:40:55 cerler kernel: Type: Direct-Access ANSI SCSI revision: 02

Aug 13 14:40:58 cerler kernel: sda: Spinning up disk....ready

Aug 13 14:40:58 cerler kernel: SCSI device sda: 39063024 512-byte hdwr sectors (20000 MB)

Aug 13 14:40:58 cerler kernel: sda: test WP failed, assume Write Enabled

Aug 13 14:40:58 cerler kernel: sda: asking for cache data failed

Aug 13 14:40:58 cerler kernel: sda: assuming drive cache: write through

Aug 13 14:40:58 cerler kernel: sda: sda1 sda2

Aug 13 14:40:58 cerler kernel: Attached scsi removable disk sda at scsi3, channel 0, id 0, lun 0

Aug 13 14:40:58 cerler kernel: Attached scsi generic sg0 at scsi3, channel 0, id 0, lun 0, type 0



So, for further use, add the following to your /etc/fstab:


/dev/sda2 /mnt/ipod vfat noauto,user

Then, when you plug the iPod, just issue the mount /mnt/ipod
command. Now it’s ready for you to transfer songs to it. The best way I’ve found so far
is by using gtkpod,
which is a nice GTK2 GUI for the iPod. It works great, except that it does not seem to
work when updating files on the iPod. I always have to remove the files and then re-add
them again.

Easy, isn’t it? Must say though that this was on a SuSE 9.1 2.6 stock kernel, not sure
how it will work in other distros or with older kernels, but I guess all 2.6 kernels with
ieee1394 support should work.

Next thing is to test Rhythmbox’s
iPod support
.

Comments are closed.