Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152
Rep:
is the ipod hfs+ or fat32?
also are you using the stock kernel?
i had to recompile my kernel without EFI partition support but now my 4th gen HFS+ (Mac) iPod works great with SuSE 9.2 Pro. and you have to use gtkpod to add songs to your ipod or the ipod can't see them(because the itunes DB needs to be updated
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152
Rep:
you're going have to recompile your kernel without EFI patition support. this type of patition is stored at the end of the patition and the ipod reports it's size as larger then it actualy is. When you try to read the part that doesn't exist the ipod locks up and reports errors from then on so it won't mount properly. And you probably have it configured with subfs (because it's the default setting. you can check in your /etc/fstab file.) and thats why you can't enter the directory
I reinstalled suse 9.1 for other reasons and now when I plug it in it does nothing, but the ipod has the "Do not disconnect thing".
And how do I recompile my kernel ?
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152
Rep:
My ipod always says that when i plug it in. I use:
eject /dev/sda
or shutdown your computer to get rid of that warning before you unplug it or bad things will happen (my ipod locked up and i had to wait like 2 days before the batt. went dead before i could charge it and use it again. and sda might be different for you depending on your system.)
These are the steps I use when recompiling a kernel. They work well with 9.0 & 9.2 but 9.1 might be slightly different.
1. go to /boot/ and make copies of your kernel (vmlinuz-2.6.<blah probably something default>) and your initrd (initrd-<she same as the kernel>) and change the names a little to have something like failsafe in them. (you only need these if something goes wrong but it good to be safe.) then go to /lib/modules/ and copy your modules dir (the name should match the kernel) and change it's name also. you should now have a second copy of the kernel, initrd, and your kernel modules directory with something like failsafe appended to the name. (it doesn't matter what you change the names to as long as they match.)
2. now go into yast and install the kernel source package. (make sure you have the development stuff installed, too.)
3. now boot off the install cd and goto install, repair existing system, expert tools, reinstall bootloader. Click "edit configuration files." now you can edit your menu.1st file. change the failsafe selection so that the instead of just saying vmlinuz for the kernel and initrd for the initial ram disk to have the full names of your backup files (vmlinuz and initrd are symbolic links to your kernel and initrd but you want the failsafe selection to load your backups so that if your new kernel crashes you can just choose failsafe at the boot menu and try again) then finish reinstalling grub.
4. you don't have to do this but I always copy the kernel source to my home directory so that i always have a clean copy laying around. the kernel source is in /usr/src its a directory called linux-<your kernel version>
5. now for the fun part. get yourself into the kernel source directory and try:
make xconfig
(this worked fine for me with 9.0 but not 9.2 so it may or may not work for you)
if that doesn't work you have to use:
make config
(but this takes alot longer because you have to anwer every option. enter will use the default setting for any of these options if you aren't sure)
the setting you must change is in filesystems, partition types and is EFI PARTITION it must be set to No (if you're feeling brave you can change the processor type to match your chip and get the kind of optimized performance windoze users can only dream of. but you are more likely to succeed if you only change the one option.)
now try:
make
(get a sandwitch take a nap or something this takes a while) now if this works you must as root:
make install
it should say something like "useing grub reinstalation of bootloader not necessary." now it's time for the modules:
make modules
and as root:
make modules_install
if you make it this far you have compiled and installed your kernel and modules reboot and give it a whirl if it doesn't work chose failsafe and try it again
6. It should be all downhill from here. Running your modified (not stock) kernel try to mount it (as root):
mount -t vfat /dev/sda3 /mnt/iPod/
the ipod will be /dev/sda only if you have no scsi disks and no other usb mass storage devices pluged in. if this is not the case run dmesg it will tell you what device the ipod is. your music is on the 3rd partition. /mnt/iPod is where I mount my ipod use whatever you want here. If it mounts ok go to the directory where you mounted it and see if anythings there mine says:
steve@Node01:/mnt/iPod> ls
Calendars Contacts iPod_Control Notes
steve@Node01:/mnt/iPod>
if this works you can add a line to your /etc/fstab file so that any user can mount the ipod mine looks like this:
/dev/sda3 /mnt/iPod/ hfsplus rw,users,noauto 0 0
you want to change hfsplus to vfat and the mount point to whatever you use. now reboot and you should be able to mount the ipod as any user with:
mount /mnt/iPod/
or whatever you use as a mount point.
7. now that you can mount it you should know that the ipod has a weird directory structure. (mine has the music in 49 different directories with no apparent order) and it only sees the songs in it's iTunesDB file so you have to use either gnupod (command line) or gtkpod (nice gui kinda like itunes) to add files. I wrote a small bash script that mounts my ipod, runs gtkpod, and then unmounts it because i got errors when i tried to let gtkpod handle the mounting and unmounting.
8. might not apply to you but SuSE 9.2 uses subfs for removeable media by default but for some reason the source is not in with the other modules. so at this point i couldn't use my cdrom drives. if this is the case get the latest source for subfs from sourceforge and compile and install it. (if you made it this far this should be a snap.)
Ok, before I go and do your tutorial thing, I would like to ask one more of you
I just reinstalled Suse again because after a Yast online update I could no longer configure my network adapter, so I reinstalled
Now when I plug in my ipod, I get:
Count not enter
folder /media/usb-storage-000000B9A9DC:0:0p1
the error again.
==============
So should I go and do that huge long thing again? And in this part:
""
now boot off the install cd and goto install, repair existing system, expert tools, reinstall bootloader. Click "edit configuration file
""
I can"t do that because my Cd is a free version iso off of linuxiso.org, and I can only do a fresh installation, I can't repair existing system.
What can I do otherwise?
Can I do this through YAST?
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152
Rep:
those are the same errors i got with my ipod before i recompiled my kernel. My 9.2 is the free dvd .iso off the novell ftp site and it has the repair utility. I'll mail you a copy if you pay for the shipping and you can boot from the dvd (novell won't give out the cd .iso anymore) but you can reinstall grub from the command line. just edit the /boot/grub/menu.1st file manualy with your favorite text editor then as root:
Since you reinstalled Suse and probably didn't already put stuff on it, I would recommend installing the new Suse 9.3 wich has native support for Ipods and ITunes.
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152
Rep:
no the dvd won't boot off a cd drive i had to buy a dvd drive to install it and 9.3 is suposed to support the ipod out of the box but i've heard that it only plays mp3s with the included real player. xmms amarok and all the other media players have been compiled without the ability to play mp3s. and i doubt novell makes the cd .iso availible. if you pay them you get cds and the dvd but if you want it free you either have to get a dvd drive or do a ftp install (and that means downloading like 2.5 gig every time you want to intall it) i heard that slackwares 2.6 kernels come without the EFI support. but i think most other distros you have to recompile the kernel. I don't think that this is a bug in the ipod either. I think that it's to try to make it only compatible with their software
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.