Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/dev/sd?2 or /dev/ipod is not created with udev
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 535
Location: Sweden

PostPosted: Sun Feb 13, 2011 6:54 pm    Post subject: /dev/sd?2 or /dev/ipod is not created with udev Reply with quote

I am trying to get my ipod touch 8GB to be recognized by my system.

It gets discovered by usb:

Code:
# lsusb
Bus 001 Device 006: ID 05ac:129e Apple, Inc.
Bus 001 Device 003: ID 1307:0330 Transcend Information, Inc.
Bus 001 Device 004: ID 0409:005a NEC Corp. HighSpeed Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 047d:1013 Kensington Mouse*in*a*Box Optical Pro
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


I use 05ac as vendor ID and 129e as product ID in my /etc/udev/rules.d/60-ipod.rules file

Code:
# cat /etc/udev/rules.d/60-ipod.rules
SUBSYSTEM=="usb", ATTRS{idVendor}=="05ac", ATTRS{idProduct}=="129e",KERNEL=="sd?2", SYMLINK+="ipod", MODE=="0664", GROUP=="plugdev"


But the device node or its symlink is never created by udev:

Code:
# ls /dev/i*
/dev/initctl

/dev/input:
by-id  by-path  event0  event1  event2  event3  event4  mice  mouse0


and

Code:
ls /dev/sd*
/dev/sda  /dev/sda1  /dev/sdb  /dev/sdc  /dev/sdd  /dev/sde


If anyone has a clue what could be wrong, please give me some advice
_________________
/Phil
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sun Feb 13, 2011 7:30 pm    Post subject: Reply with quote

Minor note: 'plugdev' group serves no purpose unless you're using hal.

Also, your rule shouldn't really affect creation of a sd* node, if one should be created.

So:
- are you sure that 8GB can actually be seen as a block device ? perhaps it's accesible only indirectly
- what's your kernel config in regard of usb_storage ?
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 535
Location: Sweden

PostPosted: Sun Feb 13, 2011 9:53 pm    Post subject: Reply with quote

Can I remove GROUP=="plugdev" and KERNEL=="sd?2" then? Or should there be any other value for KERNEL==?

VoidMage wrote:
- are you sure that 8GB can actually be seen as a block device ? perhaps it's accesible only indirectly

No, I am not sure about this actually.

Regarding usb_storage:

Code:
cat /usr/src/linux/.config | grep STORAGE
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
# may also be needed; see USB_STORAGE Help for more information
CONFIG_USB_STORAGE=y
# CONFIG_USB_STORAGE_DEBUG is not set
# CONFIG_USB_STORAGE_DATAFAB is not set
# CONFIG_USB_STORAGE_FREECOM is not set
# CONFIG_USB_STORAGE_ISD200 is not set
# CONFIG_USB_STORAGE_DPCM is not set
# CONFIG_USB_STORAGE_USBAT is not set
CONFIG_USB_STORAGE_SDDR09=y
CONFIG_USB_STORAGE_SDDR55=y
# CONFIG_USB_STORAGE_JUMPSHOT is not set
# CONFIG_USB_STORAGE_ALAUDA is not set
# CONFIG_USB_STORAGE_ONETOUCH is not set
# CONFIG_USB_STORAGE_KARMA is not set
# CONFIG_USB_STORAGE_CYPRESS_ATACB is not set


By the way, I do have hal installed:

Code:
# emerge --search hal
Searching...   
[ Results for search key : hal ]
[ Applications found : 12 ]

...........

*  app-misc/hal-info
      Latest version available: 20090716
      Latest version installed: 20090716
      Size of files: 135 kB
      Homepage:      http://hal.freedesktop.org/
      Description:   The fdi scripts that HAL uses
      License:       GPL-2

*  sys-apps/hal
      Latest version available: 0.5.14-r4
      Latest version installed: 0.5.14-r4
      Size of files: 926 kB
      Homepage:      http://www.freedesktop.org/wiki/Software/hal
      Description:   Hardware Abstraction Layer
      License:       || ( GPL-2 AFL-2.0 )

_________________
/Phil
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Sun Feb 13, 2011 11:39 pm    Post subject: Reply with quote

What messages appear in syslog upon attaching that ipod ?
Any chance it's hps, not vfat and you simply lack the correct partition type/filesystem support ?
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 535
Location: Sweden

PostPosted: Mon Feb 14, 2011 7:25 pm    Post subject: Reply with quote

I do have support for hfs and hfs+ in my kernel (version 2.6.27-gentoo-r8)

Code:
# cat /usr/src/linux/.config | grep HFS
CONFIG_HFS_FS=y
CONFIG_HFSPLUS_FS=y
# CONFIG_SQUASHFS is not set


My kernel version is:

Code:
# uname -a
Linux phils_pc 2.6.27-gentoo-r8 #3 SMP PREEMPT Sat Dec 5 17:05:24 CET 2009 i686 AMD Phenom(tm) 9550 Quad-Core Processor AuthenticAMD GNU/Linux


This is the messages from /var/log/messages when I connect the ipod

Code:
# tail /var/log/messages
......
Feb 14 20:23:14 localhost kernel: usb 1-5.3: new high speed USB device using ehci_hcd and address 5
Feb 14 20:23:15 localhost kernel: usb 1-5.3: configuration #1 chosen from 4 choices


Here may be a clue. Should'nt there be a message something like DaNe got with dmesg here:
https://forums.gentoo.org/viewtopic-t-692263-highlight-ipod+dmesg.html

In other words shouldn'nt dmesg (or /var/log/messages) report that the kernel has assigned a name, like sdb: sdb1 sdb2 (as in DaNe's case) to the ipod disk. There is no such information in my output from dmesg (/var/log/messages).

The strange thing is that if I connect e.g. a usb memory stick, dmesg reports

Code:
Feb 14 20:36:36 localhost kernel: usb 1-5.1: new high speed USB device using ehci_hcd and address 6
Feb 14 20:36:36 localhost kernel: usb 1-5.1: configuration #1 chosen from 1 choice
Feb 14 20:36:36 localhost kernel: scsi10 : SCSI emulation for USB Mass Storage devices
Feb 14 20:36:36 localhost kernel: usb-storage: device found at 6
Feb 14 20:36:36 localhost kernel: usb-storage: waiting for device to settle before scanning
Feb 14 20:36:41 localhost kernel: scsi 10:0:0:0: Direct-Access     SanDisk  Cruzer Micro     0.1  PQ: 0 ANSI: 2
Feb 14 20:36:41 localhost kernel: sd 10:0:0:0: [sdf] 1000944 512-byte hardware sectors (512 MB)
Feb 14 20:36:41 localhost kernel: sd 10:0:0:0: [sdf] Write Protect is off
Feb 14 20:36:41 localhost kernel: sd 10:0:0:0: [sdf] Mode Sense: 03 00 00 00
Feb 14 20:36:41 localhost kernel: sd 10:0:0:0: [sdf] Assuming drive cache: write through
Feb 14 20:36:41 localhost kernel: sd 10:0:0:0: [sdf] 1000944 512-byte hardware sectors (512 MB)
Feb 14 20:36:41 localhost kernel: sd 10:0:0:0: [sdf] Write Protect is off
Feb 14 20:36:41 localhost kernel: sd 10:0:0:0: [sdf] Mode Sense: 03 00 00 00
Feb 14 20:36:41 localhost kernel: sd 10:0:0:0: [sdf] Assuming drive cache: write through
Feb 14 20:36:41 localhost kernel: sdf: sdf1
Feb 14 20:36:41 localhost kernel: sd 10:0:0:0: [sdf] Attached SCSI removable disk
Feb 14 20:36:41 localhost kernel: sd 10:0:0:0: Attached scsi generic sg6 type 0
Feb 14 20:36:41 localhost kernel: usb-storage: device scan complete


That is, the kernel assigns the name sdf1 to my usb memory stick. But nothing for the ipod.............
_________________
/Phil
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Mon Feb 14, 2011 9:02 pm    Post subject: Reply with quote

Is CONFIG_MAC_PARTITION also on ?
Though your kernel is surprisingly old.
Back to top
View user's profile Send private message
philip
Guru
Guru


Joined: 10 Jun 2003
Posts: 535
Location: Sweden

PostPosted: Mon Feb 14, 2011 9:39 pm    Post subject: Reply with quote

It may be that there is no choice for CONFIG_MAC_PARTITION in my old kernel

Code:
# cat /usr/src/linux/.config | grep CONFIG_MAC_PARTITION
#


...... gives nothing...

From which version of the kernel is CONFIG_MAC_PARTITION included? Is it needed for sure, to be able to mount the ipod?
_________________
/Phil
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Mon Feb 14, 2011 10:39 pm    Post subject: Reply with quote

Well, I don't know when it was added, but it should be inside "Partition Types" menu.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum