Re: iPod / Amarok / Buffer I/O Issues




Continuing to respond to my own query...



I see the following article at Linux Magazine... it seems a 2.6 kernel,
by adding support for EFI partition support, breaks compatibility with
the iPOD hard drive. I'm reluctant to recompile my kernel, as I've
already done this to include specific changes for my ATI Remote Wonder
- is there any alternative to this? Article follows :



If you?re running a pre- 2.6 kernel, using the iPod can be as easy as
plugging it in, mounting it, and downloading an application such as
gtkpod( http://gtkpod.sourceforge.net/) to upload songs and playlists,
and edit ID3 tags, among other tasks. In fact, if you really like
Apple's iTunes, you can also try the latest beta release of
CodeWeavers? CrossOver Office( http://www.codeweavers.com), which may
allow you to run the Microsoft Windows version of iTunes on Linux.

However ? and this is the caveat ? if you run Fedora Core 2 or another
2.6.x- based Linux distribution, you?ll notice that your system
recognizes the iPod when you plug it in, but otherwise fails to mount
the device. Specifically, you should notice something similar to the
following in /var/log/messages when you plug the iPod in:



sda:end_request: I/O error, dev sda, sector 39063016

Buffer I/O error on device sda, logical block 4882877

end_request: I/O error, dev sda, sector 39063016

Buffer I/O error on device sda, logical block 4882877



So what?s the problem? To Linux, the iPod looks like a removable disk
drive. Regardless of whether you use USB or Firewire to connect the
iPod to your computer, Linux uses SCSI emulation to access it. The
first part of the problem is that the iPod reports that it has slightly
more sectors than it actually has. This alone wouldn?t cause the errors
shown above, but the iPod rejects all additional I/O requests if an
attempt is made to access a sector that is greater than the actual
number of sectors but less than the reported number of sectors. So,
your machine ?locks? the iPod simply by accessing a disk sector that
the iPod reports as being there.( To reset the iPod, you have to unplug
it.)

You may be asking yourself why are only 2.6.x based kernels affected?
When you attempt to mount the iPod, the Linux kernel tries to find its
partition table. For most file systems, the partition table is on the
first sector of the partition. 2.6- based kernels, however, support a
new type of partition table called EFI( part of the extensible firmware
initiative) that's located in the last few sectors of a partition. On
the iPod, unfortunately, these last few sectors are in the space that
causes the iPod to lock if accessed.

The easiest fix is to remove EFI partition support from the kernel, as
you probably don't need the feature. To disable EFI, de-select the
CONFIG_EFI_PARTITION option( File systems, Partition Types, EFI GUID
Partition support) and then recompile your kernel. Once you boot into
this kernel, you can access and enjoy your iPod.

While detailed kernel compilations instructions are beyond the scope of
this article, you can find many guides on the web, including the Kernel
Building HOWTO at
http://www.digitalhermit.com/linux/Kernel-Build-HOWTO.html. You can
also find modified kernel RPMs for FC2 at
http://mirror.linuxquestions.org/pub/lq/iPod/.


--
scoultas

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: 48-bit LBA "upgrade" - is a complete repartition required?
    ... A browser of the kernel development mailing list archives seems ... > controllers can have issues even if Linux is bypassing the BIOS. ... > I'm really just wondering if the existing partition table is still going ... filesystem on the partition, too, the way resize2fs does. ...
    (comp.os.linux.hardware)
  • Re: Is FREEDOS a real time OS?
    ... Every OS has an API. ... What is the relation of the Linux API to the ... Or, if the API is a part of the kernel, is there a more ... to boot the new partition. ...
    (comp.sys.ibm.pc.hardware.misc)
  • Re: Linux cuts costs - users
    ... Upgrading to a newer kernel made it even ... > Solaris to understand the problem on Linux. ... Assuming you didn't report it, people like you are causing and/or ... at midnight, turned off the swap partition, then turned the partition ...
    (comp.unix.solaris)
  • Re: Partition magic error 116
    ... > No partition manipulations should be made to this disc using this product ... Because when I boot back inte Linux the partitiontable is still the ... > same as it was when I made the backup of it. ... dunno about the kernel. ...
    (comp.os.linux.misc)
  • Re: iPod 4G with SUSE?
    ... > Has anybody got an iPod 4G working with SuSE? ... The "EFI" partition table is a new type of partition table that is part ... The kernel looks for an EFI partition before looking for an old ...
    (alt.os.linux.suse)