- Model Number: A1059
- 40GB Hard Drive
- 12 hours of playback on rechargeable lithium ion battery
- 6.2 ounces
- Plays AAC, MP3, Apple lossless, WAV, AIFF, and Audible formats
- Skip protection up to 25 minutes
- Includes iPod, dock, earphones, FireWire cable, USB 2.0 cable and AC adapter
I have seen quite a few reports of people being able to use the iPod on Linux, so I was thinking I would have good luck.
The model I bought is new as of this writing and is designed to be compatible with Mac and Windows platforms. From what I understood, the unit comes unformatted and is formatted when you plug it and run the installation software. I used my wife's Windows XP computer to do this initial setup, which formatted the disk with a FAT32 (vfat) file system.
At this point, Windows recognizes it as a removable drive under "my computer". Now, I'm thinking I should be able to plug it in my Linux box and mount it as /dev/sda something -- wrong!
dmesg shows that the device is recognized and driver loaded - but - there is a "Buffer I/O error" that prevents it from being accessed. Here's the text from dmesg:
----------------------------------------------------------------------------------------
usb 1-2: new high speed USB device using address 2
SCSI subsystem initialized
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Apple Model: iPod Rev: 1.63
Type: Direct-Access ANSI SCSI revision: 02
USB Mass Storage device found at 2
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
sda: Spinning up disk......ready
SCSI device sda: 78126048 512-byte hdwr sectors (40001 MB)
sda: assuming Write Enabled
sda: assuming drive cache: write through
sda:end_request: I/O error, dev sda, sector 78126040
Buffer I/O error on device sda, logical block 9765755
end_request: I/O error, dev sda, sector 78126040
Buffer I/O error on device sda, logical block 9765755
sda1 sda2
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
inserting floppy driver for 2.6.5-1.358
floppy0: no floppy controllers found
----------------------------------------------------------------------------------------
Trying to mount it produces nothing but 'can't read superblock' errors.
----------------------------------------------------------------------------------------
[root@localhost root]# mount /dev/sda /mnt
/dev/sda: Input/output error
mount: /dev/sda: can't read superblock
[root@localhost root]# mount /dev/sda1 /mnt
/dev/sda1: Input/output error
mount: /dev/sda1: can't read superblock
[root@localhost root]# mount /dev/sda2 /mnt
/dev/sda2: Input/output error
mount: /dev/sda2: can't read superblock
[root@localhost root]# mount -t vfat /dev/sda2 /mnt
mount: /dev/sda2: can't read superblock
----------------------------------------------------------------------------------------
Bottom line, this device does not work on Linux. (At least not for me, on Fedora Core 2).
Would you recommend the product? yes | Price you paid?: None indicated | Rating: 0
Kernel (uname -r):
Distribution:
Generation 4 ipod or ipod mini does work on linux!
This problems arise because the ipod mis-reports it's size and the EFI standard specifies a boot area at the end of the disk. The kernel dutifully goes and look for this end errors when it tries to read a non-existant cylinder.
It can be fixed by patching and recompiling the kernel. The elegant and simple patch (thanks Avi Kivity) is described here:
It works in both 2.6 and 2.4.22 and later kernels.
Once you have made this change, you the data area of the ipod should correspond to /dev/sda2. By default, this can only be mounted by root.. On fc1, I find that an entry is automagically put in /etc/fstab. If you edit this line, replace "owner" with "user" and remove the "kudzu" option, you will find that ordinary users can mount it.
Gtkpod has a handy feature that will attemt to mount the ipod on startup and umount it on exit. This is good, but it does not prevent the "do not disconnect" message from displaying on the ipod. To do this, you need to run "eject ipod" as root. However, if you put the following line in /etc/sudoers:
ALL ALL = NOPASSWD: /usr/bin/eject ipod
then any user can run the command sudo eject ipod.
You can then create a script ~/.gtkpod/gtkpod.out containing the single line:
/usr/bin/sudo /usr/bin/eject ipod
and gtkpod will also eject the ipod when it quits.
(if you dont know how to make a script, all you do is go to "~/.gtkpod" then right click and make a new text file, copy in the example (substituting "/dev/sda2" with whatever your ipod is labelled) into it and save it as "gtkpod.out".
also, if you repeat this step only make a script called "gtkpod.in" and put this in:
modprobe sbp2
it will make it load the module, so if it is in "do not disconnect" than it will switch it automatically when you open GTKpod.
so by using those two scripts, adding the appropriate line in "/etc/fstab" and setting the preferences in GTKpod to handle the mouting and un-mounting, you get the most out of using your ipod on linux.
Would you recommend the product? yes | Price you paid?: $299.00 | Rating: 10
Kernel (uname -r):
2.6.10-gentoo-r6
Distribution:
Gentoo
With the helpful instructions above, my Windows formatted 4G IPod (the 20GB version) works perfectly well in Gentoo (2.6.10-gentoo-r6) through a USB connection.
Would you recommend the product? yes | Price you paid?: None indicated | Rating: 9
Kernel (uname -r):
2.6.14 [anotherthingy]
Distribution:
SUSE 10.0 OSS
Bought myself a shiny fourth generation 40 gig iPod. I used Windows at that time. Then I decided to give SUSE a try. Install was quick and painless. One of my greatest surprises came when I plugged the iPod in. It just _worked_. (KIO-slaves, anyone? :P) Out of the box. Gtkpod recognized, everything worked. amaroK played my songs from it, not a cent of pain.
The only thing I ca think of is the inconvinience to have to open a terminal, log in as root and 'eject ipod'. Just that little step, and this God of Gadgets will get 10 points :D
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.