Udisks sometimes fails to mount loop devices

Bug #1321923 reported by Brendan
6
This bug affects 1 person
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
ProcVersionSignature: Ubuntu 3.13.0-24.47-generic 3.13.9
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=/boot/vmlinuz-3.13.0-24-generic root=UUID=e6c94cb4-2ac4-4282-bcd2-a7d6c10bd27e ro quiet splash vt.handoff=7
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:bvnPhoenixTechnologies,LTD:bvrP01-A2:bd11/06/2009:svnAcer:pnAspireX1301:pvr:rvnAcer:rnWMCP78M:rvr:cvnAcer:ct3:cvr:
dmi.product.name: Aspire X1301
dmi.sys.vendor: Acer

Revision history for this message
Brendan (bhenryj0117) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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