[Bug 306288] New: device mapper grabs my USB disk and prevents mounting it
https://bugzilla.novell.com/show_bug.cgi?id=306288 Summary: device mapper grabs my USB disk and prevents mounting it Product: openSUSE 10.3 Version: Beta 2 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: seife@novell.com QAContact: qa@suse.de CC: dkukawka@novell.com Found By: Component Test In my past-Beta2 system, after plugging in my USB drive, it cannot be mounted by the KDE mediamanager and by halmount ("device is busy"). During investigation of this issue i found out, that devicemapper grabs the device and subsequently it can no longer be used. root@strolchi:~# l /dev/mapper/* lrwxrwxrwx 1 root root 16 30. Aug 10:22 /dev/mapper/control -> ./device-mapper brw------- 1 root root 253, 0 30. Aug 10:22 /dev/mapper/cryptotab_loop0 brw------- 1 root root 253, 1 30. Aug 12:57 /dev/mapper/linear-usb-ST980829_A_??????????-0:0 brw------- 1 root root 253, 2 30. Aug 12:57 /dev/mapper/linear-usb-ST980829_A_??????????-0:0_part1 brw------- 1 root root 253, 3 30. Aug 12:57 /dev/mapper/linear-usb-ST980829_A_??????????-0:0_part2 seife@strolchi:~> halmount /dev/sdc2 -> external type ext3 /dev/sdc1 -> vfat_ext type vfat /dev/sda7 on /local type ext3 /dev/sda5 on / type ext3 /dev/sda2 on /boot type ext2 /dev/sda1 -> ? type ntfs seife@strolchi:~> halmount /dev/sdc2 /dev/sdc2: org.freedesktop.Hal.Device.Volume.UnknownFailure: mount: /dev/sdc2 already mounted or /media/external busy root@strolchi:~# dmsetup remove /dev/mapper/linear-usb-ST980829_A_\?\?\?\?\?\?\?\?\?\?-0\:0_part1 root@strolchi:~# dmsetup remove /dev/mapper/linear-usb-ST980829_A_\?\?\?\?\?\?\?\?\?\?-0\:0_part2 root@strolchi:~# dmsetup remove /dev/mapper/linear-usb-ST980829_A_\?\?\?\?\?\?\?\?\?\?-0\:0 root@strolchi:~# l /dev/mapper/ total 0 drwxr-xr-x 2 root root 80 30. Aug 13:02 ./ drwxr-xr-x 11 root root 7720 30. Aug 13:02 ../ lrwxrwxrwx 1 root root 16 30. Aug 10:22 control -> ../device-mapper brw------- 1 root root 253, 0 30. Aug 10:22 cryptotab_loop0 root@strolchi:~# seife@strolchi:~> halmount /dev/sdc2 /dev/sdc2 mounted on /media/external -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=306288#c1
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=306288
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=306288#c2
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=306288#c3
--- Comment #3 from Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=306288#c4
Dirk Mueller
https://bugzilla.novell.com/show_bug.cgi?id=306288#c5
--- Comment #5 from Stefan Seyfried
https://bugzilla.novell.com/show_bug.cgi?id=306288#c6
Thomas Fehr
From the names they look as if they were created by a call to kpartx.
Why kpartx is called for your USB device I do not know, I would suspect this is done by either hal or udev. Reassigning to Hannes, maybe he knows why apparently kpartx is called when a USB stick is inserted. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=306288#c7
Thomas Fehr
https://bugzilla.novell.com/show_bug.cgi?id=306288#c8
Hannes Reinecke
https://bugzilla.novell.com/show_bug.cgi?id=306288#c9
Dirk Mueller
participants (1)
-
bugzilla_noreply@novell.com