Page 1 of 3 123 LastLast
Results 1 to 10 of 22

Thread: Can't write to /dev/fd0 (openSUSE 11.3 x86_64)

  1. #1

    Default Can't write to /dev/fd0 (openSUSE 11.3 x86_64)

    Good evening,

    I currently discovered a problem when using the floppy drive /dev/fd0: I can't use it.
    I can mount /dev/fd0 as normal, can create/write a file, but it is not written to the floppy disk. Instead of that the current program (eg vim) hangs (or is "uninterruptable") until I remove the floppy disk from the drive. Because of the removal I get several errors in /var/log/messages.

    What I'm doing:
    == snip ==
    mount /dev/fd0 /mnt
    echo "TEST" > /mnt/test
    sync [--> HANG until I remove the floppy disk]
    [sync "completes"/terminates, insert floppy disk]
    umount /mnt
    == snap ==
    (In this example I used echo instead of vim, because it behaves the same in this situation)

    The errors I get are as follows:
    # dmesg | tail
    [ 2999.432797] floppy0: disk absent or changed during operation
    [ 2999.432802] end_request: I/O error, dev fd0, sector 34
    [ 2999.432825] floppy0: disk absent or changed during operation
    [ 2999.432830] end_request: I/O error, dev fd0, sector 1
    [ 2999.432834] Buffer I/O error on device fd0, logical block 1
    [ 2999.432838] lost page write due to I/O error on fd0
    [ 2999.432938] floppy0: disk absent or changed during operation
    [ 2999.432948] end_request: I/O error, dev fd0, sector 19
    [ 2999.432956] Buffer I/O error on device fd0, logical block 19
    [ 2999.432961] lost page write due to I/O error on fd0

    /var/log/messages:
    May 2 00:14:36 hostname kernel: [ 2999.431039] floppy0: disk removed during i/o
    May 2 00:14:36 hostname kernel: [ 2999.431052] end_request: I/O error, dev fd0, sector 10
    May 2 00:14:36 hostname kernel: [ 2999.431060] quiet_error: 3 callbacks suppressed
    May 2 00:14:36 hostname kernel: [ 2999.431065] Buffer I/O error on device fd0, logical block 10
    May 2 00:14:36 hostname kernel: [ 2999.431070] lost page write due to I/O error on fd0
    May 2 00:14:36 hostname kernel: [ 2999.432739] floppy0: disk absent or changed during operation
    May 2 00:14:36 hostname kernel: [ 2999.432748] end_request: I/O error, dev fd0, sector 19
    May 2 00:14:36 hostname kernel: [ 2999.432755] Buffer I/O error on device fd0, logical block 19
    May 2 00:14:36 hostname kernel: [ 2999.432760] lost page write due to I/O error on fd0
    May 2 00:14:36 hostname kernel: [ 2999.432797] floppy0: disk absent or changed during operation
    May 2 00:14:36 hostname kernel: [ 2999.432802] end_request: I/O error, dev fd0, sector 34
    May 2 00:14:36 hostname kernel: [ 2999.432825] floppy0: disk absent or changed during operation
    May 2 00:14:36 hostname kernel: [ 2999.432830] end_request: I/O error, dev fd0, sector 1
    May 2 00:14:36 hostname kernel: [ 2999.432834] Buffer I/O error on device fd0, logical block 1
    May 2 00:14:36 hostname kernel: [ 2999.432838] lost page write due to I/O error on fd0
    May 2 00:14:36 hostname kernel: [ 2999.432938] floppy0: disk absent or changed during operation
    May 2 00:14:36 hostname kernel: [ 2999.432948] end_request: I/O error, dev fd0, sector 19
    May 2 00:14:36 hostname kernel: [ 2999.432956] Buffer I/O error on device fd0, logical block 19
    May 2 00:14:36 hostname kernel: [ 2999.432961] lost page write due to I/O error on fd0

    My system:
    # uname -a
    Linux hostname.site 2.6.34.7-0.5-desktop #1 SMP PREEMPT 2010-10-25 08:40:12 +0200 x86_64 x86_64 x86_64 GNU/Linux
    # modprobe floppy
    # lsmod|grep floppy
    floppy 68349 0
    # groups|grep --color floppy
    root floppy

    I think there's a problem with the write caches, that can't be flushed (-> sync). But that's all I can say...

    Suggestions would be appreciated,

    aristokrates

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: Can't write to /dev/fd0 (openSUSE 11.3 x86_64)

    Looks more like a floppy with bad blocks and hence a corrupted filesystem. Looks like you should reformat your floppy or toss it out.

  3. #3

    Default Re: Can't write to /dev/fd0 (openSUSE 11.3 x86_64)

    I tried several floppies (formatted and working under WinXP), so they're ok. I don't think that it's the filesystem, because I get the same errors when eg. trying to
    mkfs.vfat /dev/fd0.
    I can hear the "Clack" + light goes on, then ~2 times that there are operations on the floppy and then mkfs hangs as the other programs.
    When I use dd if=/dev/zero of=/dev/fd0 bs=512 count=2880 I can hear the ususal sound of a floppy beeing written (several times), until it comes to a point (I think: the end of the write process or the last blocks) and dd hangs.

    I already checked the cable and floppy drive (from 2nd PC, WinXP, there working) without changes.
    Legacy Floppy A is set to "1.44M, 3.5 in" in BIOS (MB: M4A87T-E, P: AMD Phenom II X4 945)
    I can backup the BIOS to floppy from BIOS, so the problem is on openSUSE's side.

  4. #4
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,683
    Blog Entries
    4

    Default Re: Can't write to /dev/fd0 (openSUSE 11.3 x86_64)

    Nonetheless I think you have hardware or floppy problems, the symptoms are typical of that. You should try it with the same hardware with a different OS. It's not a real test if you format the floppies on a different machine that has WinXP. It could be that your floppy drive on the Linux machine has bad alignment or just bad. Or maybe the floppy controller.

  5. #5

    Default Re: Can't write to /dev/fd0 (openSUSE 11.3 x86_64)

    Have several Linux partitions on the same desktop, and I start getting similar floppy problems with the newer kernels but not on older kernels:
    Floppy problems: SuSE 11.4 64-bit 2.6.37.6-0.5, Fedora 14 32-bit 2.6.35.12-88.fc14.i686.PAE, Kubuntu 11.04 64-bit 2.6.38-8-generic
    No floppy problem: Mandriva 2010.2 2.6.33.7-desktop-2mnb, Kubuntu 10.04 2.6.32-25-generic-pae
    Also the floppy drive works fine with Windows 7 and Windows XP on the the same PC

  6. #6
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Can't write to /dev/fd0 (openSUSE 11.3 x86_64)

    On 05/02/2011 09:06 AM, hallergard wrote:
    >
    > Have several Linux partitions on the same desktop, and I start getting
    > similar floppy problems with the newer kernels but not on older kernels:


    sounds like a bug to me, please do it here: http://tinyurl.com/nzhq7j

    --
    CAVEAT: http://is.gd/bpoMD
    [openSUSE 11.3 + KDE4.5.5 + Thunderbird3.1.8 via NNTP]
    HACK Everything -> http://www.youtube.com/watch?v=j5b4CCe9pS8&NR=1

  7. #7

    Default Re: Can't write to /dev/fd0 (openSUSE 11.3 x86_64)

    Hmm... I tried several systems (usb drive, live cd) with the same result (floppy problem):
    Knoppix 6.2.1, 2.6.32.6
    Scientific Linux 5.4 (i686), 2.6.18

    I will recheck my hardware...
    Thanks for your replies!

  8. #8

    Default Re: Can't write to /dev/fd0 (openSUSE 11.3 x86_64)

    My problem above was not identical, but was solved by changing the entry in /etc/fstab from /dev//fd0 to /dev/fd0u1440 After this change I can now mount floppies again

  9. #9

    Default Re: Can't write to /dev/fd0 (openSUSE 11.3 x86_64)

    ok. I exchanged the floppy drive, but I still can't write to the floppy.
    I think, it must be a linux problem: I created a Windows Boot Floppy (from WinXP) and could boot from it, create and read files on the floppy.
    Any ideas what I could try next/how to continue? I'm using openSUSE for some years now and it's the best OS I've been using, but with that thing I don't have further ideas and don't know how to localize the problem...

  10. #10
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Can't write to /dev/fd0 (openSUSE 11.3 x86_64)

    On 05/06/2011 08:36 PM, aristokrates wrote:
    >
    > I don't have further ideas and don't know how to localize the problem...


    did you try the work around /dev/fd0u1440 in fstab as mentioned in this
    thread??

    --
    CAVEAT: http://is.gd/bpoMD
    [openSUSE11.3 + KDE4.5.5 + Firefox3.6.17 + Thunderbird3.1.10 via NNTP]
    HACK Everything -> http://www.youtube.com/watch?v=j5b4CCe9pS8&NR=1

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •