IO Error's in /dev/fd0. I don't have a floppy disk.

Bug #59470 reported by Michael Fletcher
14
Affects Status Importance Assigned to Milestone
gparted (Ubuntu)
Fix Released
Undecided
Colin Watson

Bug Description

Binary package hint: gparted

I am trying to install Edgy Knot 2 using the live cd onto an intel machine. When GParted runs as part of the installation it gets stuck waiting for disks. I looked at the log and it seems that its trying to read a floppy disk that I do not have. I see many errors attempting to read sector 0 of /dev/fd0.

Output of dmesg is attached.

Revision history for this message
Michael Fletcher (mikefletcher) wrote :
Revision history for this message
Sebastien PONS (sebastien-pons) wrote :

I have the same problem.

Gparted freez on "Scanning all devices..." if floppy module is loaded. This modules is loaded on bootup, even if I do not have any floppy device pluged. (tested on the liveCD and on a fresh edgy install)
If I unload floppy module before launching gparted (sudo modprobe -r floppy), everythig goes well :)

I do not have this problem with dapper. It is also fixed if I downgrade to gparted 0.1 on edgy.

The bug seems to be known: http://bugzilla.gnome.org/show_bug.cgi?id=351753

I also attach the output of dmesg.

Revision history for this message
Sebastien PONS (sebastien-pons) wrote :

I just adapted a patch sent by Bart Hakvoort <email address hidden> to upstream version cvs. This patch fix the bug for me.

I used the followings:
http://cvs.gnome.org/viewcvs/gparted/src/GParted_Core.cc?r1=1.171&r2=1.172
http://cvs.gnome.org/viewcvs/gparted/include/GParted_Core.h?r1=1.80&r2=1.81

Revision history for this message
Colin Watson (cjwatson) wrote :

Hmm. Bart said that a parted patch was forthcoming to make it not probe CDs or floppies. However, that patch doesn't seem to be available yet, and I don't know exactly what its interface would be so I'm reluctant to try to guess at it myself.

Furthermore, the attached patch does not really seem to be correct either: it doesn't have the code in parted to skip dm-*, loop*, and ram* devices, which I expect will produce some weirdness in a live session.

Changing parted's interface in a way that will potentially be incompatible with future upstream releases makes me uncomfortable, so I guess the best answer for now is to fix up the gparted patch. I'll work on this.

Revision history for this message
Colin Watson (cjwatson) wrote :

gparted (0.2.5-1.1ubuntu5) edgy; urgency=low

  * Patch from upstream CVS (Bart Hakvoort) to suppress probing of floppy
    and CD devices, modified to avoid dm-*, loop*, and ram* as well (closes:
    Malone #33252, Malone #59470):
    - Parse /proc/partitions to find devices instead of using
      ped_device_probe_all().
    This patch was later withdrawn upstream on the grounds that libparted is
    going to be changed to avoid probing floppies and CDs, but this code is
    not available yet and I'm reluctant to change libparted's interface in a
    way that might turn out to be incompatible with upstream.

 -- Colin Watson <email address hidden> Mon, 11 Sep 2006 13:21:49 +0100

Changed in gparted:
assignee: nobody → kamion
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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