Comment 221 for bug 441835

Revision history for this message
Arrigo Marchiori (ardovm) wrote :

Hi, I can confirm that this bug still exists in Lucid, using udisks 1.0.1-1ubuntu1
I have tried two scenarios: with and without an entry in /etc/fstab for the floppy drive, and I found a funny thing.
I kept the command 'udisks --monitor' running in a separate terminal.

1- without entry in /etc/fstab
  As an user with administrator right, I run the command:
$ sudo mount /dev/fd0 /mnt
  udisks says:
> changed: /org/freedesktop/UDisks/devices/fd0
  and the floppy is correctly mounted into /mnt. Then I run the command:
$ sudo umount /mnt
  udisk says:
> changed: /org/freedesktop/UDisks/devices/fd0
  and the floppy is correctly unmounted.

2- with entry in /etc/fstab
/dev/fd0 /media/floppy0 vfat user,noauto 0 0
  As the same user, I run the command (notice I am not using sudo):
$ mount /media/floppy0
  The mount command returns zero, BUT the disk is immediately, automagically unmounted! udisk says:
> changed: /org/freedesktop/UDisks/devices/fd0
> job-changed: /org/freedesktop/UDisks/devices/fd0
> changed: /org/freedesktop/UDisks/devices/fd0
> job-changed: /org/freedesktop/UDisks/devices/fd0
  The same things happens if I use mount with sudo.

Summary: it is not possible to mount a floppy disk in current Lucid, either double-clicking its icon, or using the mount command inside a terminal.
The only way I can mount the floppy disk is _not_ having it in /etc/fstab and using 'sudo mount'.
Otherwise, the floppy disk is unmounted right after I mount it! See below:

$ mount /media/floppy0 && mount | grep floppy
/dev/fd0 on /media/floppy0 type vfat (rw,noexec,nosuid,nodev,user=amministratore)
$

$ mount /media/floppy0 && sleep 2 && mount | grep floppy
$

The floppy disk is unmounted before 2 seconds!

HTH