* udev fails to create sda* for usb pendrive
@ 2006-03-01 19:31 Ricardo Biloti
2006-03-01 21:00 ` Greg KH
2006-03-01 22:16 ` Ricardo Biloti
0 siblings, 2 replies; 3+ messages in thread
From: Ricardo Biloti @ 2006-03-01 19:31 UTC (permalink / raw)
To: linux-hotplug
Hy guys.
I'm experiencing a curious problem. I'm using Debian sarge (upgraded
from a woody installation), with kernel 2.6.13, udev 0.56 (from my
distro).
I was trying that my pendrive was recognized and mounted automatically
when inserted. I installed then hal, udev, pmount and
gnome-volume-manager. The last one at least seems to work since my USB
camera is recognized and an application pops up to handle it
correctly. It is a hole different situation when the pendrive is
inserted.
Take a look at syslog just after it is inserted:
Mar 1 07:30:02 caruara kernel: usb 1-2: new full speed USB device
using uhci_hcd and address 2
Mar 1 07:30:02 caruara kernel: scsi0 : SCSI emulation for USB Mass
Storage devices
Mar 1 07:30:02 caruara kernel: usb-storage: device found at 2
Mar 1 07:30:02 caruara kernel: usb-storage: waiting for device to
settle before scanning
Mar 1 07:30:02 caruara usb.agent[4256]: usb-storage: already loaded
Mar 1 07:30:07 caruara kernel: Vendor: Kingston Model:
DataTraveler 2.0 Rev: 4.10
Mar 1 07:30:07 caruara kernel: Type: Direct-Access
ANSI SCSI revision: 02
Mar 1 07:30:07 caruara kernel: usb-storage: device scan complete
I expected that /dev/sda (and its partitions) were created by udev,
but the curious is that they were not. In fact, nothing happens. After
many hours I found a work around to get udev partially working. I
manually create /dev/sda1 (mknod /dev/sda1 8 0) and mounting it. This
seems to "wake-up" udev, which starts working. It then creates devices
and partitions (/dev/sda and /dev/sda2). Unplugging the pendrive, udev
removes the device (sda) and the two partitions (sda1 and sda2), as
expected. The rule used by udev is the one provided by hal. Just to be
complete, the syslog entries when the pendrive is plugged after the
described work around become like this:
Mar 1 11:39:28 caruara kernel: usb 1-1: new full speed USB device
using uhci_hcd and address 5
Mar 1 11:39:28 caruara kernel: scsi3 : SCSI emulation for USB Mass
Storage devices
Mar 1 11:39:28 caruara kernel: usb-storage: device found at 5
Mar 1 11:39:28 caruara kernel: usb-storage: waiting for device to
settle before scanning
Mar 1 11:39:28 caruara usb.agent[4500]: usb-storage: already loaded
Mar 1 11:39:33 caruara kernel: Vendor: Kingston Model:
DataTraveler 2.0 Rev: 4.10
Mar 1 11:39:33 caruara kernel: Type: Direct-Access
ANSI SCSI revision: 02
Mar 1 11:39:33 caruara kernel: SCSI device sda: 503808 512-byte hdwr
sectors (258 MB)
Mar 1 11:39:33 caruara kernel: sda: Write Protect is off
Mar 1 11:39:33 caruara kernel: sda: Mode Sense: 0b 00 00 08
Mar 1 11:39:33 caruara kernel: sda: assuming drive cache: write through
Mar 1 11:39:33 caruara kernel: SCSI device sda: 503808 512-byte hdwr
sectors (258 MB)
Mar 1 11:39:33 caruara kernel: sda: Write Protect is off
Mar 1 11:39:33 caruara kernel: sda: Mode Sense: 0b 00 00 08
Mar 1 11:39:33 caruara kernel: sda: assuming drive cache: write through
Mar 1 11:39:33 caruara kernel: sda: sda1 sda2
Mar 1 11:39:33 caruara kernel: Attached scsi removable disk sda at
scsi3, channel 0, id 0, lun 0
Mar 1 11:39:33 caruara kernel: usb-storage: device scan complete
Mar 1 11:39:33 caruara udev[4548]: configured rule in
'/etc/udev/rules.d/z_hal-plugdev.rules[2]' applied, 'sda' becomes '%k'
Mar 1 11:39:33 caruara udev[4548]: creating device node '/dev/sda'
Mar 1 11:39:33 caruara udev[4563]: configured rule in
'/etc/udev/rules.d/z_hal-plugdev.rules[2]' applied, 'sda1' becomes
'%k'
Mar 1 11:39:33 caruara udev[4563]: creating device node '/dev/sda1'
Mar 1 11:39:33 caruara udev[4564]: configured rule in
'/etc/udev/rules.d/z_hal-plugdev.rules[2]' applied, 'sda2' becomes
'%k'
Mar 1 11:39:33 caruara udev[4564]: creating device node '/dev/sda2'
Unfortunately, this does not solve the problem, since each time I
boot, udev isn't working again and the above trick must be employed
once.
Another problem (I'm not sure if it concerns udev) is that
gnome-volume-manager mounts the partitions wrongly. Instead of
mounting /dev/sda1 and /dev/sda2, it mounts /dev/sda as vfat! Below is
the gvm report:
manager.c/818: New Device: /org/freedesktop/Hal/devices/block_8_0
manager.c/818: New Device: /org/freedesktop/Hal/devices/block_416E-89DC
manager.c/854: Changed: /dev/sda
manager.c/797: Added: /dev/sda
manager.c/818: New Device: /org/freedesktop/Hal/devices/block_436F-F048
manager.c/854: Changed: /dev/sda1
manager.c/797: Added: /dev/sda1
mount: /dev/sda1 already mounted or /media/usbdisk-1 busy
manager.c/818: New Device:
/org/freedesktop/Hal/devices/block_76760abe-50e0-4f9b-9abd-ca2e4962e4ce
manager.c/854: Changed: /dev/sda2
manager.c/797: Added: /dev/sda2
mount: /dev/sda2 already mounted or /media/usbdisk-1 busy
manager.c/949: Mounted: /org/freedesktop/Hal/devices/block_416E-89DC
I have spend many hours in google, reading man pages, udev docs, etc
and I can't figure out what is going on. I can provide any futher
information needed. Any help is welcome.
Thanks,
Ricardo Biloti.
--
Ricardo Biloti
Department of Applied Mathematics
IMECC/UNICAMP
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: udev fails to create sda* for usb pendrive
2006-03-01 19:31 udev fails to create sda* for usb pendrive Ricardo Biloti
@ 2006-03-01 21:00 ` Greg KH
2006-03-01 22:16 ` Ricardo Biloti
1 sibling, 0 replies; 3+ messages in thread
From: Greg KH @ 2006-03-01 21:00 UTC (permalink / raw)
To: linux-hotplug
On Wed, Mar 01, 2006 at 04:31:41PM -0300, Ricardo Biloti wrote:
> Hy guys.
>
> I'm experiencing a curious problem. I'm using Debian sarge (upgraded
> from a woody installation), with kernel 2.6.13, udev 0.56 (from my
> distro).
I'd really recommend upgrading both your kernel and your version of udev
if you wish to get help here. There's not much we can do about very old
kernel and udev versions, sorry.
I also see that you already filed this as a bug with debian. Why not
wait to see how it works out there first?
> I was trying that my pendrive was recognized and mounted automatically
> when inserted. I installed then hal, udev, pmount and
> gnome-volume-manager. The last one at least seems to work since my USB
> camera is recognized and an application pops up to handle it
> correctly. It is a hole different situation when the pendrive is
> inserted.
>
> Take a look at syslog just after it is inserted:
>
> Mar 1 07:30:02 caruara kernel: usb 1-2: new full speed USB device
> using uhci_hcd and address 2
> Mar 1 07:30:02 caruara kernel: scsi0 : SCSI emulation for USB Mass
> Storage devices
> Mar 1 07:30:02 caruara kernel: usb-storage: device found at 2
> Mar 1 07:30:02 caruara kernel: usb-storage: waiting for device to
> settle before scanning
> Mar 1 07:30:02 caruara usb.agent[4256]: usb-storage: already loaded
> Mar 1 07:30:07 caruara kernel: Vendor: Kingston Model:
> DataTraveler 2.0 Rev: 4.10
> Mar 1 07:30:07 caruara kernel: Type: Direct-Access
> ANSI SCSI revision: 02
> Mar 1 07:30:07 caruara kernel: usb-storage: device scan complete
>
> I expected that /dev/sda (and its partitions) were created by udev,
> but the curious is that they were not.
That's because you probably don't have sd_mod loaded, right? If you do
that, do your partitions show up?
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid\x110944&bid$1720&dat\x121642
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: udev fails to create sda* for usb pendrive
2006-03-01 19:31 udev fails to create sda* for usb pendrive Ricardo Biloti
2006-03-01 21:00 ` Greg KH
@ 2006-03-01 22:16 ` Ricardo Biloti
1 sibling, 0 replies; 3+ messages in thread
From: Ricardo Biloti @ 2006-03-01 22:16 UTC (permalink / raw)
To: linux-hotplug
On 3/1/06, Greg KH <greg@kroah.com> wrote:
> On Wed, Mar 01, 2006 at 04:31:41PM -0300, Ricardo Biloti wrote:
> > Hy guys.
> >
> > I'm experiencing a curious problem. I'm using Debian sarge (upgraded
> > from a woody installation), with kernel 2.6.13, udev 0.56 (from my
> > distro).
>
> I'd really recommend upgrading both your kernel and your version of udev
> if you wish to get help here. There's not much we can do about very old
> kernel and udev versions, sorry.
That's because I'm running udev from my distro. Updating it means
migrating from stable to unstable debian, which is more than what I
want to do.
>
> I also see that you already filed this as a bug with debian. Why not
> wait to see how it works out there first?
You are right. I apologize for that.
>
> > I was trying that my pendrive was recognized and mounted automatically
> > when inserted. I installed then hal, udev, pmount and
> > gnome-volume-manager. The last one at least seems to work since my USB
> > camera is recognized and an application pops up to handle it
> > correctly. It is a hole different situation when the pendrive is
> > inserted.
> >
> > Take a look at syslog just after it is inserted:
> >
> > Mar 1 07:30:02 caruara kernel: usb 1-2: new full speed USB device
> > using uhci_hcd and address 2
> > Mar 1 07:30:02 caruara kernel: scsi0 : SCSI emulation for USB Mass
> > Storage devices
> > Mar 1 07:30:02 caruara kernel: usb-storage: device found at 2
> > Mar 1 07:30:02 caruara kernel: usb-storage: waiting for device to
> > settle before scanning
> > Mar 1 07:30:02 caruara usb.agent[4256]: usb-storage: already loaded
> > Mar 1 07:30:07 caruara kernel: Vendor: Kingston Model:
> > DataTraveler 2.0 Rev: 4.10
> > Mar 1 07:30:07 caruara kernel: Type: Direct-Access
> > ANSI SCSI revision: 02
> > Mar 1 07:30:07 caruara kernel: usb-storage: device scan complete
> >
> > I expected that /dev/sda (and its partitions) were created by udev,
> > but the curious is that they were not.
>
> That's because you probably don't have sd_mod loaded, right? If you do
> that, do your partitions show up?
Exactly. That was a hole-in-one answer. Thanks!
Regards,
--
Ricardo Biloti
Department of Applied Mathematics
IMECC/UNICAMP
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-03-01 22:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-01 19:31 udev fails to create sda* for usb pendrive Ricardo Biloti
2006-03-01 21:00 ` Greg KH
2006-03-01 22:16 ` Ricardo Biloti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).