LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 04-24-2005, 10:01 PM   #1
SuSE05
Member
 
Registered: Apr 2005
Posts: 46

Rep: Reputation: 15
Complete Guide for iPod on SuSE 9.2


First of all - many thanks for Abisko00. If it wasn't for his patients and guidance I wouldn't have gotten my iPod working.

** The below worked for an iPod mini (USB) device with FAT formatting.**
** Also remember to make backup's of the files you are going to change / configure**

The problem with the iPod mini is:

Quote:
Originally posted by jeffmock

The iPod looks like a removable disk drive to the host computer. When it is attached to the computer, the mini iPod reports a capacity of 7999488 512-byte sectors (or about 4GB). This turns out to be wrong for whatever reason. The mini iPod only really has 7999376 sectors and it exaggerates by 112 sectors. The other quality of the iPod is that if the computer attempts to read a sector greater than the actual capacity but less than the reported capacity, the iPod will dutifully report an I/O error, but it won't respond to any future requests until you unplug/plug the iPod.

This creates a fragile situation where the host computer can croak the iPod by reading one of these 112 tacitly illegal sectors. If you ask me, this is an Apple bug (or maybe a bug of their disk supplier or firewire/USB interface supplier), but a bug nonetheless.

So, when a new disk is presented to the linux kernel, linux first goes out and tries to find the partition table for the disk. Usually this is the first sectors of the disk (traditional microsoft partition table we've been using for 20 years), but there are also a number of other types of partition tables. The kernel uses a heuristic to look for different types of partition tables and the kernel configuration specifies which partition types are attempted.

The "EFI" partition table is a new type of partition table that is part of the "extensible firmware initiative", this is a good thing for the future. I don't know anything about EFI partition tables, except that as part of looking for an EFI table linux goes out and reads the last few sectors of the disk (sector 7999480 in the case of a mini iPod). The kernel looks for an EFI partition before looking for an old fashioned MSDOS partition table and this croaks the iPod. If you disable support for EFI partition tables (CONFIG_EFI_PARTITION) the mini iPod will work fine. I don't know of a quick fix short of rebuilding the kernel.

Of course, once it's working, previous advice about setting up hotplug correctly and having the right /etc/fstab entries and such apply, but the iPod is just great under linux and gtkpod is a fantastic program for managing the iPod.

I hope this helps.

jeff
To resolve this issue - you'll need the following installed on your computer - through YaST:

Kernel Sources
gcc package
glibc-devel

Once those are installed follow the steps outlined below (thanks Abisko00).

Open a Teminal and type the following commands (actuall commands are in italics)-

1. Check your kernel and kernel sources - ensure that they are exactly the same.

uname -r
rpm -q kernel-source


2. Switch to superuser mode.

su

3. Change ownership of the directory holding your kernel sources. Note that: (user) is your regular user profile name (who you are logged in as) and (uname-r) is the directory holding your kernel sources.

chown -R (user) /dev/src/linux-(uname-r)

4. Exit back to user mode.

exit

5. Change your working area to the directory of the kernel sources.

cd /dev/src/linux-(uname-r)

6. Remove .config

rm .config

7. Use zcat (zcat is identical to gunzip -c. (On some systems, zcat may be
installed as gzcat to preserve the original link to compress.) zcat
uncompresses either a list of files on the command line or its standard
input and writes the uncompressed data on standard output. zcat will
uncompress files that have the correct magic number whether they have a
.gz suffix or not.) - description from "man zcat" in the terminal.

zcat /proc/config.gz > .config

8. Run make menuconfig and deselect "EFI GUID Partion Support."

make menuconfig

Select "FILE TYPES" --> "PARTITION TYPES" --> "EFI GUID Partions Support" (remove the * so that you are left with an empty <> field). Exit, Exit --> Save (YES).

9. Compile the new kernel. This will take some time, so grab your favorite beverage and sit back.

make bzImage

10. Return to superuser mode.

su

11. Copy the newly made files to your /boot directory. They must be INDENTICAL. Note that vmlinuz is used instead of vmlinux. The "." in from the file paths indicates that the files are in the current location that are you in... thus you don't have to type /usr/src/linux-uname-r.

cp ./arch/i386/boot/bzImage /boot/vmlinuz-<uname -r>

cp ./System.map /boot/System.map-<uname -r>

12. Exit out of the terminal and reboot your computer.

13. Connect your iPod and you should see the icon for a mass storage device in your /drive:

___________________________________________________________________________________________________

Install GTKpod.

http://gtkpod.sourceforge.net/

____________________________________________________________________________________________________

Mounting the iPod:

Open a terminal and switch to superuser.

I made a directory for /mnt/ipod in my "/" directory.

As su type:

mount -t vfat /dev/sda2 /mnt/ipod

Exit the terminal.

____________________________________________________________________________________________________ _


Open GTKpod and choose syn - then choose read.


I want to say thanks again to Abisko00 and everyone else who helped a newbie over come this issue. It was a great learning experience.

Last edited by SuSE05; 04-25-2005 at 03:54 AM.
 
Old 04-25-2005, 03:40 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
Nice HowTo!

Last edited by abisko00; 04-25-2005 at 03:55 AM.
 
Old 04-25-2005, 03:53 AM   #3
SuSE05
Member
 
Registered: Apr 2005
Posts: 46

Original Poster
Rep: Reputation: 15
Corrections made - thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
complete guide for installing Canon i250 under FC3 djionel82 Linux - Newbie 5 12-22-2005 02:09 PM
O M G!!!!!!!! I FINALLY GOT MY iPOD WORKING IN LINUX!!!!!!! (Newbie Guide) Ausar LinuxQuestions.org Member Success Stories 31 06-13-2005 05:35 PM
Need complete guide to linux pleaseHi DaRKNeZz_Ogre Linux - Newbie 4 09-16-2004 09:15 PM
Is there a complete guide for Postfix for idiots? ziggie216 Linux - Software 1 11-12-2003 06:12 AM
complete Idiot's guide to Nvidia drivers Fingel LinuxQuestions.org Member Success Stories 16 10-17-2003 07:23 AM


All times are GMT -5. The time now is 02:21 AM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration