[Bug 1321923] [NEW] Udisks sometimes fails to mount loop devices
Brendan
bhenryj0117 at gmail.com
Wed May 21 21:02:06 UTC 2014
Public bug reported:
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
** Affects: udisks (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug trusty
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to udisks in Ubuntu.
https://bugs.launchpad.net/bugs/1321923
Title:
Udisks sometimes fails to mount loop devices
Status in “udisks” package in Ubuntu:
New
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/udisks/+bug/1321923/+subscriptions
More information about the foundations-bugs
mailing list