LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-16-2006, 01:13 AM   #1
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,285

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
iPod mounting: dmesg says sde, but no /dev/sde


Any help in analyzing my iPod mounting problem would be much appreciated. It's already formated FAT, since it's been used exclusively with a Windows computer previously.

The (edited) terminal capture below leads me to believe I should find this thing on /dev/sde1 and /dev/sde2, but no such luck. Am I reading things wrong or assuming something incorrectly? Sorry for the length of the post, but I hope it's pretty descriptive.

Thanks!

Code:
###############################################################################
# echo no ipod plugged in
no ipod plugged in


# ls /dev/sd*
/dev/sda  /dev/sdb  /dev/sdc  /dev/sdd


# cat /proc/scsi/scsi
Attached devices:
Host: scsi2 Channel: 00 Id: 00 Lun: 00
  Vendor: IC       Model: USB Storage-CFC  Rev: 322E
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 00 Lun: 01
  Vendor: IC       Model: USB Storage-SMC  Rev: 322E
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 00 Lun: 02
  Vendor: IC       Model: USB Storage-MMC  Rev: 322E
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 00 Lun: 03
  Vendor: IC       Model: USB Storage-MSC  Rev: 322E
  Type:   Direct-Access                    ANSI SCSI revision: 02

### The above devices are my built in 4-in-1 card reader ###


###############################################################################
# echo plug in the ipod USB
plug in the ipod USB


# tail /var/log/messages
Dec 15 23:45:14 familyroom kernel: usb 3-3: new high speed USB device using ehci_hcd and address 8
Dec 15 23:45:14 familyroom kernel: scsi5 : SCSI emulation for USB Mass Storage devices
Dec 15 23:45:19 familyroom kernel:   Vendor: Apple     Model: iPod Rev: 1.62
Dec 15 23:45:19 familyroom kernel:   Type:   Direct-Access ANSI SCSI revision: 00
Dec 15 23:45:19 familyroom kernel: SCSI device sde: 39063023 512-byte hdwr sectors (20000 MB)
Dec 15 23:45:19 familyroom kernel: sde: Write Protect is off
Dec 15 23:45:19 familyroom kernel: SCSI device sde: 39063023 512-byte hdwr sectors (20000 MB)
Dec 15 23:45:19 familyroom kernel: sde: Write Protect is off
Dec 15 23:45:19 familyroom kernel:  sde: sde1 sde2
Dec 15 23:45:19 familyroom kernel: Attached scsi removable disk sde at scsi5, channel 0, id 0, lun 0
Dec 15 23:45:19 familyroom kernel: Attached scsi generic sg4 at scsi5, channel 0, id 0, lun 0,  type 0



# cat /proc/scsi/scsi
Attached devices:
Host: scsi2 Channel: 00 Id: 00 Lun: 00
  Vendor: IC       Model: USB Storage-CFC  Rev: 322E
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 00 Lun: 01
  Vendor: IC       Model: USB Storage-SMC  Rev: 322E
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 00 Lun: 02
  Vendor: IC       Model: USB Storage-MMC  Rev: 322E
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 00 Lun: 03
  Vendor: IC       Model: USB Storage-MSC  Rev: 322E
  Type:   Direct-Access                    ANSI SCSI revision: 02
Host: scsi5 Channel: 00 Id: 00 Lun: 00
  Vendor: Apple    Model: iPod             Rev: 1.62
  Type:   Direct-Access                    ANSI SCSI revision: 02


# ls /dev/sd*
/dev/sda  /dev/sdb  /dev/sdc  /dev/sdd

### Where's the iPod??? I was expecting a /dev/sde, but none was found ###
### Was also expecting to see two iPod partitions, sde1 and sde2 ###
### iPod's "Do Not Disconnect" message was flashing ###


###############################################################################
# lsmod | grep hcd
ehci_hcd               35944  0
ohci_hcd               21444  0
usbcore               124608  7 usbhid,yealink,usb_storage,ehci_hcd,ohci_hcd
# modprobe -r ohci_hcd
# lsmod | grep hcd
ehci_hcd               35944  0
usbcore               124608  5 usbhid,yealink,usb_storage,ehci_hcd
# modprobe -r ehci_hcd
# lsmod | grep hcd

Broadcast Message from root@familyroom
        (somewhere) at 23:47 ...

Warning communications lost with UPS familyroom

### At this point, the iPod's "Do Not Disconnect" message went away ###
### Unplugged the iPod ###


###############################################################################
# modprobe ehci_hcd
# modprobe ohci_hcd
# lsmod | grep hcd
ohci_hcd               21444  0
ehci_hcd               35944  0
usbcore               124608  6 ohci_hcd,ehci_hcd,usbhid,yealink,usb_storage

Broadcast Message from root@familyroom
        (somewhere) at 23:47 ...

Communications restored with UPS familyroom


###############################################################################
 
Old 12-16-2006, 06:03 AM   #2
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,055

Rep: Reputation: 57
Weird problem....Have you checked sde is not under /dev/scsi or similar? Sometime some devices are not in /dev root directory, but on a subdirectory.
It's even more strange because I have the same config as you and my iPod is mounted at /dev/sda, not /dev/sde

Another approach to your problem if you're using udev is to create an udev rule and a symbolic link to sde. For example, in /etc/udev/rules.d/ directory, create a file such as 60-ipod.rules with the following inside
Code:
BUS=="scsi", SYSFS{vendor}=="Apple*", SYSFS{model}=="iPod*", KERNEL=="sd?2", SYMLINK+="ipod", MODE="0755"
So, you say to udev to mount second partition of your iPod (where music is stored, 1st partition is the OS) not under /dev/sde2 but under /dev/ipod with permissions 0755.
This could help you find your iPod because no matter when you plug in, it will always be /dev/ipod

I hope this helps you out, let me know.
 
Old 12-16-2006, 07:54 AM   #3
lebabyg
Member
 
Registered: Mar 2006
Location: UK
Distribution: Ubuntu Feisty
Posts: 272

Rep: Reputation: 30
Have you tried adding /dev/sde to your /mnt/fstab. I had similar trouble on Fedora with my ipod. I added something like
/dev/sde /mnt/ipod/ vfat,defaults,uid=500 0 0
(not exactly that, i can't remember 100%)
Then when i plugged my ipod in i did mount /mnt/ipod
This worked for me as i had a similar problem with the iPod assigning itself all sorts of numbers and letters depending when i plugged it in. Good luck.
 
Old 12-16-2006, 12:24 PM   #4
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,285

Original Poster
Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
OK, I found the silly thing. It was under /dev/.static/dev/sde2. I was also able to mount it and see all my music.

Hammett - I will definitely look into that udev rule you mentioned. A heck of a lot cleaner than me searching this thing out under /dev each time (find /dev -name "sde*" -print is what I used to locate it this time). I know a little about udev, but I'm no master, so I want to do a little research and learning about what each field in that rule does. I don't like blindly cut/pasting someone's suggestion without knowing exactly what it does. It appears pretty obvious looking at your example, but I like the feeling that I could come up with the same (or equivalent) rule on my own without cheating off of your knowledge. Thanks for pointing me in this direction. I always like learning.

lebabyg - now that I've successfully mounted it manually, I will add the appropriate instructions in fstab. Probably with mount options of "noauto,umask=0000"

Next step for me will be searching for some cleaner way to get rid of the iPod's "Do Not Disconnect" message. Unloading the ehci_hcd module certainly works, but that seems a bit harsh. Maybe that's just the way it has to be. I'll research some more.

Thanks all!
 
Old 12-16-2006, 03:38 PM   #5
Hammett
Senior Member
 
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,055

Rep: Reputation: 57
Quote:
Originally Posted by haertig
Next step for me will be searching for some cleaner way to get rid of the iPod's "Do Not Disconnect" message. Unloading the ehci_hcd module certainly works, but that seems a bit harsh. Maybe that's just the way it has to be. I'll research some more.
Thanks all!
You'll never get rid of it. I don't know why, but just plugin in the iPod appears the "Do Not Disconnect" messange. As long as the iPod is not mounted, you can safely unplug it from your PC
 
Old 12-16-2006, 06:45 PM   #6
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,285

Original Poster
Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Yeah, I figured after unmounting the device, who cares about a "Do Not Disconnect" message?! The problem they're trying to solve is they don't want you to disconnect when the disk write is not complete (some data may not have been flushed to disk yet). But when you unmount a device, you guarrantee that there are no more pending writes.

The only other thing I can think of is that iPods can be switched into "disk mode" which is a little different than their normal mode. They can go into disk mode when accidently unplugged prematurely (like if they were still mounted). It's easy enough to reset the iPod and get out of disk mode though, ... assuming you didn't create any filesystem corruption when you prematurely yanked the connection. I think you hold MENU and SELECT together for 8 seconds or something like that. I've done it a few times, but always have to go search the web to refresh my memory on what the key sequence is.

p.s. - I misspoke earlier when I said unloading the ehci_hcd module was enough to make the iPod's "Do Not Disconnect" message go away. Actually I needed to unload both the ehci_hcd and ohci_hcd modules. Unloading either one by itself was not enough.
 
Old 12-16-2006, 07:56 PM   #7
lebabyg
Member
 
Registered: Mar 2006
Location: UK
Distribution: Ubuntu Feisty
Posts: 272

Rep: Reputation: 30
You can get rid of it. Do as root:
eject /dev/sd* (where * is the corresponding letter) or eject /mnt/ipod. It will then say safe to disconnect. . Linux is surprisingly good with iPod's. I like the fact you can transfer music to and from them, unlike windows. A little of topic, but i would suggest using GTKpod or Yamipod for iPod song management, i found them better than using Amarok or similar music software. Good Luck.
 
  


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
USB drive... /dev/sda1 doesn't show unless I try mounting /dev/sda as vfat finite Linux - Hardware 8 03-10-2009 12:52 AM
USB drive detected (dmesg) but no entry in /dev ?! demoman Ubuntu 8 05-11-2006 07:51 AM
usb ipod issues (dmesg readout) drummerdan Slackware 2 03-05-2006 01:32 AM
mounting CD, CDRW... /dev/cdrom -> /dev/hda kersten78 Slackware 9 09-23-2004 11:53 PM
mounting 2 ide-scsi devices /dev/cdrom and /dev/cdrom1 issue penguin123 Linux - Hardware 3 09-26-2003 08:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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