does not ship /etc/udev/scripts/removable.sh any more

Bug #19762 reported by Patrice Vetsel
34
Affects Status Importance Assigned to Milestone
udev (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

breezy up to date.
gnome-volume-manager 1.3.2-0ubuntu8
pmount 0.9.4-1

I'v tested :
a cfcard on a usb card reader
a usb2 key 128Mo (KEY1)
a usb1 key 512Mo (KEY2)

Result :
cfcard don't auto-mount
with pmount /dev/sda1 the device is well mounted on /media/sda1 but no icon
appeared on desktop,nor on menus

key1 don't auto-mount
with pmount /dev/sdb1 the device is well mounted on /media/sdb1 but no icon
appeared on desktop,nor on menus

key2 auto-mount with icon on desktop and in menus -> but bad mounted (look
key2.png attached to this bug report)
with pmount /dev/sdc1 the device is well mounted on /media/sdc1 but no icon
appeared on desktop,nor on menus

I attach logs and fdisk -l for each devices

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Created an attachment (id=3233)
cfcard logs

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Created an attachment (id=3234)
fdisk -l on cfcard

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Created an attachment (id=3235)
usb2 key logs

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Created an attachment (id=3236)
fdisk -l on usb2 key

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Created an attachment (id=3237)
screenshot of usb1 key mounted

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Created an attachment (id=3238)
usb1 key logs

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Created an attachment (id=3239)
fdisk -l on usb1 key

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

I must add that under hoary, all is working.
cfcard plugged, icon appear, window allowing importing photos pop-up
The 2 usb keys are well mounted, icons appear, as nautilus open on them.

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Created an attachment (id=3240)
cfcard

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Created an attachment (id=3241)
cfcard

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Created an attachment (id=3242)
cfcard

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Created an attachment (id=3243)
cfcard

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Created an attachment (id=3244)
usb2 key

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Created an attachment (id=3245)
usb2 key

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Created an attachment (id=3246)
usb2 key

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Created an attachment (id=3247)
usb2 key

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Created an attachment (id=3248)
usb1 key bad mounted (see screenshot)

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Created an attachment (id=3249)
usb1 key bad mounted (see screenshot)

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Created an attachment (id=3250)
usb1 key bad mounted (see screenshot)

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

Created an attachment (id=3251)
usb1 key bad mounted (see screenshot)

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

It's seems that it's an hal bug !
http://bugzilla.ubuntu.com/show_bug.cgi?id=12443
http://bugzilla.ubuntu.com/show_bug.cgi?id=13126

you can see in my /var/log/messages attached that /dev/sda is trying to be
mounted instead of /dev/sda1

In hal-device-manager under hoary my usb stick is block device string /dev/sda1
In hal-device-manager under breezy my usb stick is block device string /dev/sda

Revision history for this message
Martin Pitt (pitti) wrote :

Thanks for the great debugging. For the record, we just debugged this via IRC,
and the reason is that the devices have the wrong group.

The cause is that /etc/udev/scripts/removable.sh is not present.

It is present on my system, but recent udev versions don't seem to ship it any more.

Revision history for this message
Patrice Vetsel (vetsel-patrice) wrote :

pitti seems to have found the bug.
kagou kagou kagou@achille:~$ ls -l /dev/sda*
kagou kagou brw-rw---- 1 root floppy 8, 0 2005-08-16 22:16 /dev/sda
kagou kagou brw-rw---- 1 root disk 8, 1 2005-08-16 22:16 /dev/sda1
kagou pitti hah
kagou pitti I expected this
kagou pitti both devices should be group plugdev

script removable.sh for udev is missing.
Waiting for confirmation :)

Revision history for this message
Martin Pitt (pitti) wrote :

*** Bug 19376 has been marked as a duplicate of this bug. ***

Revision history for this message
Martin Pitt (pitti) wrote :

 udev (0.060-1ubuntu6) breezy; urgency=low
 .
   * debian/rules: Ship /etc/udev/scripts/removable.sh again, the absence of
     this broke automounting on half the machines out there. (Ubuntu #13520)

Revision history for this message
Martin Pitt (pitti) wrote :

*** Bug 19103 has been marked as a duplicate of this bug. ***

Revision history for this message
Ernst Persson (ernstp) wrote :

Yes, now things are automounted again!

Gnome volume manager is set to nautilus %h when I plug in my iPod, which gives
the following error message:
"Can not display location"
Counldn't find "/org/freedesktop/Hal/devices/volume_uuid_354F_0BB6".

Eject from nautilus works, but gives this error message:
"Could not eject"
eject: Unable to eject, last error: Invalid argument
The iPod still says I shouldn't disconnect it, but it's not mounted anymore.

Should these two be filed as separate bugs?

(error's translated from swedish)

Revision history for this message
Martin Pitt (pitti) wrote :

(In reply to comment #27)
> Yes, now things are automounted again!

Cool!

> Gnome volume manager is set to nautilus %h when I plug in my iPod, which gives
> the following error message:
> "Can not display location"
> Counldn't find "/org/freedesktop/Hal/devices/volume_uuid_354F_0BB6".

That seems to be #13176.

> Eject from nautilus works, but gives this error message:
> "Could not eject"
> eject: Unable to eject, last error: Invalid argument

That's #5049.

> The iPod still says I shouldn't disconnect it, but it's not mounted anymore.

Right, unmount works ok, but on i386 eject fails.

> Should these two be filed as separate bugs?

No need to, see above. :-) Feel free to subscribe to these bugs.

Revision history for this message
Martin Pitt (pitti) wrote :

*** Bug 19215 has been marked as a duplicate of this bug. ***

Revision history for this message
Ernst Persson (ernstp) wrote :

> > The iPod still says I shouldn't disconnect it, but it's not mounted anymore.
> Right, unmount works ok, but on i386 eject fails.

Is this a result of 5049 or is it separate?
Will 5049 be fixed for breezy?

Revision history for this message
Martin Pitt (pitti) wrote :

(In reply to comment #30)

> Is this a result of 5049 or is it separate?

It's indeed #5049.

> Will 5049 be fixed for breezy?

I hope so, but I didn't get it any more recently, so it at least gets better...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.