LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 03-27-2005, 10:38 PM   #1
Greg Haynes
Member
 
Registered: Oct 2004
Location: Houston, TX
Distribution: Gentoo
Posts: 30

Rep: Reputation: 15
ipod with udev on gentoo


i have an ipod mini and ive been trying to get it to work at all for quite a while now. Im connecting it using usb2 (and when i do dmesg with it plugged in it shows up). My distro is gentoo and im using udev. Its pc formatted so im assuming thats VFAT. i have the vfat modules installed and i added a line into the udev rules that makes it show up under /dev/ipod whenever its plugged in. When i try to mount it i get the whole wrong fs type, bad superblock.... (mount -t vfat /dev/ipod /mnt/ipod). If anyone knows how to make it work or knows of any reasonable tutorial where i can learn how that would be greatly appreciated.
 
Old 03-28-2005, 05:14 AM   #2
huibert.alblas
Member
 
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
What deivice is shown up as /dev/ipod?

You should mount the second parition with vfat like /dev/sda2
The other is the system partition and should not be touched.
 
Old 03-30-2005, 03:29 PM   #3
Greg Haynes
Member
 
Registered: Oct 2004
Location: Houston, TX
Distribution: Gentoo
Posts: 30

Original Poster
Rep: Reputation: 15
...i wish...

/dev/ipod is /dev/sdb2 (i have an sata hard drive so its b). when i try to mount that or mount -t vfat /dev/sdb2 /mnt/ipod i get the whole wrong fs type, bad option, bad superblock... error.
 
Old 03-31-2005, 03:14 AM   #4
huibert.alblas
Member
 
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
Can you do a:
Code:
fdisk -l /dev/sdb
this should list the ipod partition table
Maybe your ipod is partitioned differently.

If the ipod is pc formatted it should use vfat.
Are you sure the vfat moudels are loaded by the kernel.
Can you try mounting another vfat partition, without using the ipod?
 
Old 03-31-2005, 07:48 PM   #5
Greg Haynes
Member
 
Registered: Oct 2004
Location: Houston, TX
Distribution: Gentoo
Posts: 30

Original Poster
Rep: Reputation: 15
Disk /dev/sdb: 4095 MB, 4095737856 bytes
255 heads, 63 sectors/track, 497 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 5 40131 0 Empty
/dev/sdb2 * 6 497 3951990 b W95 FAT32

i have a 64 bit proc if that could be causing this.
 
Old 04-01-2005, 06:48 AM   #6
huibert.alblas
Member
 
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
I have gentoo_x64 too, so that should not be a problem.

Here I will show you how I use the iPod...
(Typing off of my head, don't take it accurate to the letter, I have a german iPod, I don't know the exact iPod messages)

First off all, in /etc/modules.autoload.d/kernel-2.6
Code:
ohci1394
ieee1394
Then, to mount my iPod, I connect my iPod to the firewire cable, the iPod shows the "you can disconnect your iPod now" (!!)

Then (as root) i do
Code:
/sbin/modprobe sbp2
This should change the iPod to displaying:
"Do not disconnect" (!!, finaly)

Now, if I'm at work I'm still using Kernel 2.4.X, I need to rescan the SCSI bus,
there is a script for this www.garloff.de/kurt/linux/rescan-scsi-bus.sh
At home (kernel 2.6.X) this is not nesecary.

Now, if I do a "fdisk -l /dev/sda" I get the same partition table, you have.

If I do
Code:
mount -t vfat /dev/sda2 /mnt/IPOD
My iPod is mounted correctly.

After I'm done with the iPod, before phisicaly disconnecting I do the following:
Code:
umount /mnt/IPOD
/sbin/rmmod sbp2
After the "rmmod" the iPod should display "ok to disconnect"

Can you do these steps, and comment if something is different at your side?

[Things to ponder..]
Are you sure that you have not shredded the iPod filesystem, sometime while trying to get it to run.
Is the iPod accesible from windows/mac (maybe some friend of you still has windows in use :-))

I don't work with "udev", maybe it is getting in your way??

Don't stop trying.
(runnig out of ideas myself, ....)
 
  


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
Udev upgrade breaks automounting memory cards on Gentoo FreeThinkerJim Linux - Hardware 2 05-27-2006 11:41 AM
Gentoo update udev = no more X for users teek Linux - Distributions 8 03-14-2006 10:22 PM
iPod not mounting with sbp2 / udev / autofs / hotplug nakko Linux - Hardware 3 06-13-2005 06:50 PM
ipod/ipod shuffle woes (lack of permissions to edit files) Lechium Linux - Software 1 04-13-2005 04:14 PM
ipod detected and added by kudzu but no files in /mnt/ipod gtan Linux - Hardware 5 08-31-2004 10:19 AM


All times are GMT -5. The time now is 06:46 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