LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 12-24-2004, 08:01 PM   #1
lavitz
LQ Newbie
 
Registered: Nov 2004
Location: Norway
Distribution: Debian Sarge
Posts: 10

Rep: Reputation: 0
iPod and Debian


Well im trying to get my iPod to work under debian, and it's not an easy thing. The only thing i've done is write this in the fstab:

/dev/sda2 /media/ipod vfat noauto,users,rw 0 0

when i mount /media/ipod i can cd in to it but gtkpod cant find it and i can't umount /media/ipod, I can onle eject it but then after that i can't remount it again

Could someone please help me? I think theres something i havent done.
 
Old 12-24-2004, 08:06 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
What kernel are you running? 2.6?

Do you have udev, autofs, and hotplug set up?
 
Old 12-24-2004, 08:08 PM   #3
lavitz
LQ Newbie
 
Registered: Nov 2004
Location: Norway
Distribution: Debian Sarge
Posts: 10

Original Poster
Rep: Reputation: 0
I have Kernel 2.6.8. The udev, autofs, and hotplug i don't know. how do i check if it set up? or how do i set it up?
 
Old 12-24-2004, 08:10 PM   #4
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
apt-get install udev autofs hotplug

What else?
 
Old 12-24-2004, 08:17 PM   #5
lavitz
LQ Newbie
 
Registered: Nov 2004
Location: Norway
Distribution: Debian Sarge
Posts: 10

Original Poster
Rep: Reputation: 0
thanks that worked but i have a littel bit trubbel when i try to umount/eject the ipod, i get the following : umount: /media/ipod: device is busy
 
Old 12-24-2004, 08:53 PM   #6
haimeltjnfg
Member
 
Registered: May 2004
Distribution: debian
Posts: 235

Rep: Reputation: 30
trying remounting it read only (umount -r /media/ipod)
 
Old 12-24-2004, 09:21 PM   #7
lavitz
LQ Newbie
 
Registered: Nov 2004
Location: Norway
Distribution: Debian Sarge
Posts: 10

Original Poster
Rep: Reputation: 0
Sorry did not work. But when i put the iPod in the docker it auto connects to the pc but don't mount, I have to type "mount /media/ipod" but when i unmount it the ipod icon on the desktop goes away but one the ipod screen it says "please don't disconnect"
 
Old 12-25-2004, 08:25 AM   #8
1madstork
Member
 
Registered: Aug 2004
Location: Southaven, Mississippi, USA
Distribution: Debian Etch
Posts: 108

Rep: Reputation: 15
Mine tells me that the device is busy sometimes as well. You might want to try: rmmod sbp2 before you disconnect. Then when you start it again, if you're in the same session, just 'modprobe sbp2' and you're set.
If you still can't see into it try mounting it to /mnt/ipod. That's where gtkpod looks for it by default.
If you keep having trouble with it and you're just itching to mess with you're iPod, try GNUpod. It runs from the command line but it's pretty straitforward. There's a Debian package called gnupod-tools that you can get through apt.
I couldn't get mine to work properly with gtkpod either so I've been using GNUpod and so far no problems.
 
Old 12-25-2004, 10:24 AM   #9
1madstork
Member
 
Registered: Aug 2004
Location: Southaven, Mississippi, USA
Distribution: Debian Etch
Posts: 108

Rep: Reputation: 15
Okay, I just got gtkpod to work on mine so I'll say what I did and maybe it will help.
After installing it, I had to 'apt-get install udev autofs hotplug' like leonscape said. As a matter of fact, I think that was what I was missing. I had hotplug already but udev and autofs weren't present and everything worked after I installed them.
My fstab is this: /dev/sda2 /mnt/ipod vfat noauto,user 0 0
So I 'mount /mnt/ipod' and then start gtkpod.
I'm using firewire so all the needed modules are there. When I disconnect, like stated above, I enter 'umount /mnt/ipod' and then 'rmmod sbp2'. After the 'rmmod sbp2' command, my iPod screen says it's okay to disconnect.
Obviously, I have sbp2 loaded at boot. If you don't have it set that way just 'modprobe sbp2' before you mount.
I hope this helps.
 
Old 01-24-2005, 03:53 PM   #10
mehlkelm
Member
 
Registered: Apr 2003
Location: Basel, Switzerland
Distribution: Ubuntu, OS X
Posts: 77

Rep: Reputation: 15
rmmod or just umount

ipod and stuff is working great for me, but I have a question nevertheless:
After a while, using the iPod on debian, i started getting lazy and now I just do a umount /mnt/ipod and unplug it, without bothering su'ing to root and rmmod the sbp2.
Do you think this will somehow harm my system or the iPod, or ist the rmmod sbp2 only necessary if one is fond of the "ready to disconnect" picture appearing on the pod?
So far, my iPod works great...

Stefan
 
Old 02-21-2005, 02:34 AM   #11
nakko
Member
 
Registered: Oct 2004
Location: Austin, TX
Distribution: Ubuntu Dapper Drake
Posts: 39

Rep: Reputation: 15
udev, autofs, hotplug -- still no ipod

I've read this, and I've wracked my brain (and wracked Google) and I still get no iPod showing up as connected to /dev/sd*. I am running SATA drives, and those show up already as /dev/sda & /dev/sdb -- so it follows that if the iPod were connected properly to the firewire cable, I would see a /dev/sdc (/dev/sdc1, /dev/sdc2, etc etc) -- right?

If I do an `lsmod | grep sbp2` and `dmesg` I get the following handy info:
Code:
# lsmod | grep sbp2
sbp2                   24392  0
ieee1394              111512  3 eth1394,ohci1394,sbp2
scsi_mod              125228  5 sbp2,sr_mod,sd_mod,usb_storage,libata
# dmesg
ieee1394: Node added: ID:BUS[0-01:1023]  GUID[000a2700025b6621]
ieee1394: The root node is not cycle master capable; selecting a new root node and resetting...
ohci1394: fw-host0: SelfID received outside of bus reset sequence
ieee1394: Node changed: 0-01:1023 -> 0-00:1023
ieee1394: Node changed: 0-00:1023 -> 0-01:1023
Am I missing a module? Do I need to apt-get anything else? I just want my FAT32 3G iPod to work via firewire with gtkpod! (And um, JHymn... maybe...)

Last edited by nakko; 02-21-2005 at 02:43 AM.
 
Old 02-21-2005, 05:56 PM   #12
mehlkelm
Member
 
Registered: Apr 2003
Location: Basel, Switzerland
Distribution: Ubuntu, OS X
Posts: 77

Rep: Reputation: 15
did you run the rescan-scsi-bus script after plugin it in?
if you dont have it, google for it.
after running it I can see my iPod.
Now, hotplug runs the script for my everytime I plug or unplug the iPod. See also in the Readme of gtkpod, there is a section at the end about it.

hope this helps

stefan
 
Old 02-22-2005, 10:56 PM   #13
nakko
Member
 
Registered: Oct 2004
Location: Austin, TX
Distribution: Ubuntu Dapper Drake
Posts: 39

Rep: Reputation: 15
rescan didn't locate it!

I downloaded the rescan script, ran it, and it still only found my two SATA drives, /dev/sda & /dev/sdb -- still no /dev/sdc!
Code:
# sh ./rescan-scsi-bus.sh
Host adapter 0 (sata_sil) found.
Host adapter 1 (sata_sil) found.
Scanning hosts  0 1 channels 0 for
 SCSI target IDs  0 1 2 3 4 5 6 7 , LUNs  0
Scanning for device 0 0 0 0 ...
OLD: Host: scsi0 Channel: 00 Id: 00 Lun: 00
      Vendor: ATA      Model: WDC WD740GD-32FL Rev: 21.0
      Type:   Direct-Access                    ANSI SCSI revision: 05
Scanning for device 1 0 0 0 ...
OLD: Host: scsi1 Channel: 00 Id: 00 Lun: 00
      Vendor: ATA      Model: WDC WD2000JD-00F Rev: 02.0
      Type:   Direct-Access                    ANSI SCSI revision: 05
0 new device(s) found.
0 device(s) removed.
# dmesg
ieee1394: Node changed: 0-01:1023 -> 0-00:1023
ieee1394: Node suspended: ID:BUS[0-00:1023]  GUID[000a2700025b6621]
ieee1394: Node resumed: ID:BUS[0-00:1023]  GUID[000a2700025b6621]
ieee1394: Node changed: 0-00:1023 -> 0-01:1023
I checked out the gtkpod readme, and I looked into the URL's it provided, like the FAQ section on linux1394.org, especially the part to do with hotplug. Most of these instructions seem to have info and tips for a 2.4.x kernel -- I am running Debian Sarge with kernel 2.6.8. Supposedly, I shouldn't have to do anything to get hotplug & sbp2 to work properly? What am I missing? My dmesg shows that my machine clearly notices something going on when I plug the iPod in, but it doesn't recognize it properly.
 
  


Reply



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
ipod/ipod shuffle woes (lack of permissions to edit files) Lechium Linux - Software 1 04-13-2005 03:14 PM
mini Ipod patch usb (the mini iPOD thread) Phyrexicaid Linux - Hardware 6 03-22-2005 01:07 AM
Mount error with Ipod on Debian ncsuapex Linux - Hardware 0 02-12-2005 01:50 PM
Install Suse on Ipod and boot from Ipod??? lemuel Linux - Newbie 4 12-27-2004 07:04 AM
ipod detected and added by kudzu but no files in /mnt/ipod gtan Linux - Hardware 5 08-31-2004 09:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:06 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration