Udisks sometimes fails to mount loop devices
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
udisks (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I can produce the bug by running this script:
#!/bin/bash
sleep=""
# Create a FAT filesystem image
# (-C makes it create the file - 2048 is the number of blocks)
ls test.img && rm test.img
$sleep
mkfs.msdos -C test.img 2048
$sleep
loopdev=$(losetup -f --show test.img)
$sleep
udisks --mount $loopdev
$sleep
udisks --unmount $loopdev
$sleep
losetup -d $loopdev
"udisks --mount" says: Cannot find device with major:minor 7:1: No such device
If the "sleep" variable in the script above is set to "sleep 2" (so that there's a 2 second delay between each command), the problem doesn't appear (and accordingly I haven't reproduced it by typing commands at an interactive prompt - presumably because of the delay between commands).
Sorry, not too sure what other info I can add. I haven't done any custom configuration relating to Udev, Udisks or systemd in general. I am running this script as a normal user, after running "sudo chmod a+rw /dev/loop*".
ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: udisks 1.0.5-1
ProcVersionSign
Uname: Linux 3.13.0-24-generic x86_64
ApportVersion: 2.14.1-0ubuntu3
Architecture: amd64
Date: Wed May 21 21:53:08 2014
InstallationDate: Installed on 2014-05-15 (6 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
MachineType: Acer Aspire X1301
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: udisks
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/06/2009
dmi.bios.vendor: Phoenix Technologies, LTD
dmi.bios.version: P01-A2
dmi.board.name: WMCP78M
dmi.board.vendor: Acer
dmi.chassis.type: 3
dmi.chassis.vendor: Acer
dmi.modalias: dmi:bvnPhoenixT
dmi.product.name: Aspire X1301
dmi.sys.vendor: Acer