After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 564985 - "No devices found" even when SD card is listed in /proc/partitions on Linux
"No devices found" even when SD card is listed in /proc/partitions on Linux
Status: RESOLVED FIXED
Product: gparted
Classification: Other
Component: application
0.3.8
Other All
: Normal major
: ---
Assigned To: gparted maintainers alias
gparted maintainers alias
: 573682 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-12-18 11:28 UTC by John Gilmore
Modified: 2009-03-02 21:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
strace output from process cloned when "Rescan Devices" is done on OLPC 8.2 (Fedora 9) OS. (4.81 KB, text/plain)
2008-12-18 19:18 UTC, John Gilmore
Details

Description John Gilmore 2008-12-18 11:28:46 UTC
Please describe the problem:
I ran gparted on two OLPC XO laptops, both containing plugged-in SD cards.  One was using the standard Fedora-based OLPC 8.2.0 release (plus "yum install gparted parted") and the other was using DebXO 0.4 (plus "apt-get install gparted parted").  Both are using libparted 1.8.8.

When gparted is run without arguments, it didn't detect the SD card, which is /dev/mmcblk0 and is listed in /proc/partitions with major number 179.  Gparted reports "No devices detected".  However, the command-line GNU Parted *does* detect the device, and uses it by default.

Gparted also provides no GUI way to open a device that it can't find.  You can specify such a device on the command line, but you can't do that from the GUI (e.g. by picking "Partition Editor" out of the Gnome System>Administration menu).  It should have an "Open Device..." dialog under the GParted menu item,
that would let users enter a device name.  That would allow an easy workaround when problems like this crop up.


Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:
Its device scan should find the /dev/mmcblk0 device, and let me examine it and partition it.

Does this happen every time?
Yes.

Other information:
Comment 1 John Gilmore 2008-12-18 19:18:57 UTC
Created attachment 124949 [details]
strace output from process cloned when "Rescan Devices" is done on OLPC 8.2 (Fedora 9) OS.
Comment 2 Curtis Gedak 2008-12-18 19:31:36 UTC
Hi John,

Thank you for reporting this problem.

Starting with GParted 0.3.8, the library libparted is not used for automatic device detection.  This is due to the following floppy device problem with libparted:
http://parted.alioth.debian.org/cgi-bin/trac.cgi/ticket/194

You can read about the impact it has on GParted at the following link:
http://bugzilla.gnome.org/show_bug.cgi?id=351753

When the libparted bug is fixed, the plan is to change GParted back to using libparted for automatic device detection.

In the meantime, would you be able to attach a copy of your /proc/partitions file?

That way I can re-work the GParted automatic device detection parser to detect your SD devices.


In terms of passing a device to the GParted GUI, I have done this by dragging a device name from a file manager, such as nautilus, and dropping it on a GParted icon on the desktop.
Comment 3 Curtis Gedak 2009-02-25 20:50:30 UTC
Recognition of /dev/mmcblk* SD/MMC devices that are listed within /proc/partitions has been added to GParted.

This enhancement has been committed to the Gnome SVN repository for inclusion in the next release of GParted (0.4.4).  Closing this bug.
Comment 4 Curtis Gedak 2009-03-02 21:23:37 UTC
*** Bug 573682 has been marked as a duplicate of this bug. ***