fd0 no longer recognized

Questions about hardware, drivers and peripherals.
In the Original Post please also include the output of inxi -Fzx
JSladek
Posts: 142
Joined: 19 Jun 2014 23:15
Location: Suffolk VA

fd0 no longer recognized

Postby JSladek » 16 Jun 2015 22:56

I use TBIView on a DOS diskette and whenever I update the program, I do a "dd if=/dev/fd0 of=filename.img" to keep a backup copy of the program. When I made my update today (last update a couple of weeks ago), I got the error "/dev/fd0: no such file or directory" error. I also found that kfloppy no longer worked and gave an "internal error: device not correctly defined".

This, BTW, does not have any impact on viewing the diskette files via nautilus or altering them with a text editor.

I noticed that within the past week, kfloppy was updated. Could the update have redefined the device name of the drive? I seem to recall a similar occurence some years back with a Mepis 11 update. Any ideas?
Jim
  • inxi -FNzxx
    System: Host: jim Kernel: 3.16.0-4-amd64 x86_64 (64 bit gcc: 4.8.4)
    Desktop: KDE 4.14.2 (Qt 4.8.6) dm: lightdm
    Distro: SolydXK 1 solydxk
    Machine: System: O.E.M product: O.E.M Chassis: type: 3
    Mobo: FOXCONN model: G41AP/G41AP-S v: 1.0
    Bios: American Megatrends v: 080015 date: 04/18/2011
    CPU: Dual core Intel Core2 Duo E8400 (-MCP-) cache: 6144 KB
    flags: (lm nx sse sse2 sse3 sse4_1 ssse3 vmx) bmips: 11997
    Clock Speeds: 1: 2003 MHz 2: 2003 MHz
    Graphics: Card: NVIDIA G98 [GeForce 8400 GS Rev. 2]
    bus-ID: 01:00.0 chip-ID: 10de:06e4
    Display Server: X.Org 1.16.4 driver: nvidia
    Resolution: 1024x768@60.00hz, 1024x768@60.00hz
    GLX Renderer: GeForce 8400 GS/PCIe/SSE2
    GLX Version: 3.3.0 NVIDIA 340.65 Direct Rendering: Yes
    Audio: Card Intel NM10/ICH7 Family High Definition Audio Controller
    driver: snd_hda_intel bus-ID: 00:1b.0 chip-ID: 8086:27d8
    Sound: Advanced Linux Sound Architecture v: k3.16.0-4-amd64
    Network: Card: Realtek RTL-8100/8101L/8139 PCI Fast Ethernet Adapter
    driver: 8139too v: 0.9.28 port: e800
    bus-ID: 04:04.0 chip-ID: 10ec:8139
    IF: eth1 state: unknown speed: 100 Mbps duplex: full mac: <filter>
    Drives: HDD Total Size: 370.1GB (8.9% used)
    ID-1: /dev/sda model: WDC_WD2500AAJS size: 250.1GB serial: WD-WCAT15525379
    ID-2: /dev/sdb model: SSD2SC120G1CS175 size: 120.0GB serial: PNY08150000718750908
    ID-3: USB /dev/sdc model: USB size: 0.0GB serial: Drive
    Partition: ID-1: / size: 31G used: 5.6G (20%) fs: ext4 dev: /dev/sdb1
    ID-2: /home size: 60G used: 4.0G (7%) fs: ext4 dev: /dev/sdb2
    ID-3: /var size: 15G used: 2.7G (19%) fs: ext4 dev: /dev/sda11
    ID-4: swap-1 size: 3.15GB used: 0.00GB (0%) fs: swap dev: /dev/sda5
    Sensors: System Temperatures: cpu: 40.0C mobo: N/A gpu: 0.0:54C
    Fan Speeds (in rpm): cpu: N/A
    Info: Processes: 160 Uptime: 3:10 Memory: 899.8/3963.3MB
    Init: systemd v: 215 runlevel: 5 default: 2
    Gcc sys: 4.9.2 alt: 4.4/4.6/4.7/4.8
    Client: Shell (bash 4.3.301 running in konsole) inxi: 2.1.28

rokytnji
Posts: 713
Joined: 02 Oct 2013 01:51

Re: fd0 no longer recognized

Postby rokytnji » 16 Jun 2015 23:58

Might want to cd into /dev in a terminal and do a ls to see what is listed in /dev.

Code: Select all

cd /dev
Hit enter/return key

Code: Select all

ls
hit enter/return key.

JSladek
Posts: 142
Joined: 19 Jun 2014 23:15
Location: Suffolk VA

Re: fd0 no longer recognized

Postby JSladek » 17 Jun 2015 00:52

The list is pretty extensive. But when I plug the floppy drive in (adapter via usb port), /dev/sdc and /dev/sg4 is added to the list. I can create the image file if I use "if=/dev/sdc", but there are no command line options for kfloppy. Also, /dev/sdc is used when my external backup harddrive is turned on (when the floppy drive is not plugged in), so the floppy drive would then use /dev/sdd if it were activated after the harddrive.

fd0 does exist in the dev listing as "0" in the "fd" subdirectory, but the linking of the floppy drive is not being done to permit the use of /dev/fd0 and that may be the way kfloppy is configured to function (via /dev/fd0).

/dev/floppy does not exist.

JSladek
Posts: 142
Joined: 19 Jun 2014 23:15
Location: Suffolk VA

Re: fd0 no longer recognized

Postby JSladek » 17 Jun 2015 11:59

My last post caused me to rethink the problem. It appears that the floppy drive is not being detected as a floppy and instead is "marked" as another harddrive. The floppy drive is a Sony USB Floppy Disk Drive Model MPF82E and when plugged into the USB port is identified as /dev/sdc or /dev/sdd depending on whether there is another USB drive in the system.

The drive was properly detected when last used probably about a month ago.

JSladek
Posts: 142
Joined: 19 Jun 2014 23:15
Location: Suffolk VA

Re: fd0 no longer recognized

Postby JSladek » 18 Jun 2015 00:16

I tried the same process (dd command line and kfloppy) with solydk64-201506 and solydk64-201506 live disks and NEITHER of them worked. The only thing that I can now conclude is that at some time in the past, the symlink or whatever that tied /dev/fd0 to the USB Floppy Drive recognition was established. Since that time and until shortly after May 22nd that tie was not effected by any updates. Then it was disrupted most likely with one of the updates since May 22nd.

Unless anyone can come up with any solutions, I suppose I can use the dd command line with /dev/sdc or /dev/sdd - have to make sure I have the right one at the time and go to WinXP to format any floppy disks. Not really an ideal solution, but I have no other options at the moment. At least I can still access the disk data with Nautilus and alter ant text files with kwrite.

rokytnji
Posts: 713
Joined: 02 Oct 2013 01:51

Re: fd0 no longer recognized

Postby rokytnji » 21 Jun 2015 23:33

Code: Select all

ls -l /dev
will show symlinks in there. You might be on to something with a missing symlink. I have seen this happen before on ~/.config
hidden folder in /home/username.

I do not use KDE. Sorry. I am KDE dyslexic. More of a Windows Manager dude than a Desktop Environment dude.
:oops:

example line from mine

Code: Select all

ls -l /dev
<snip>
lrwxrwxrwx  1 root root           3 Jun 21 17:44 cdrom -> sr0
the ->sro is the symlink

I did a locate sro on my box. It seems it ties into the kernel. It makes me wonder if a kernel upgrade borked your symlink to floppy drive?

JSladek
Posts: 142
Joined: 19 Jun 2014 23:15
Location: Suffolk VA

Re: fd0 no longer recognized

Postby JSladek » 22 Jun 2015 00:57

I ran the list of /dev and got the symlinks and did see one "fd -> /proc/self/fd". Out of curiosity, I went to my mini-laptop with a very old Debian installation and found the same symlink AND the same problem - fd0 not recognized.

Even though the USB Floppy Drive can be used with Dolphin and can read/write files - I am starting to think that there is a hardware problem wherein the device can be addressed, but is not recognized by the OS as a floppy drive.

So - for now, I am going to go under that assumption and close out this item as a possible hardware issue.

JSladek
Posts: 142
Joined: 19 Jun 2014 23:15
Location: Suffolk VA

Re: fd0 no longer recognized

Postby JSladek » 22 Jun 2015 16:04

Disregard my last note .... it's not a hardware problem.

I tried to add a rule to /etc/udev/rules.d as such:
BUS=="usb", SYSFS{product}=="Y_E_DATA*", SYMLINK+="floppy fd0"

It did not work, but in /dev/fd1, I found the following messages repeated a number of times:
"/org/freedesktop/UDisks2/drives/Y_E_DATA_USB_Floppy_Drive_Y_E_DATA_USB_Floppy_Drive" has new interfaces: ("org.freedesktop.UDisks2.Drive")
"/org/freedesktop/UDisks2/block_devices/sdc" has new interfaces: ("org.freedesktop.UDisks2.Block", "org.freedesktop.UDisks2.Filesystem")

I am now way out of my comfort zone and need some expertise advice on where to go next.

rokytnji
Posts: 713
Joined: 02 Oct 2013 01:51

Re: fd0 no longer recognized

Postby rokytnji » 22 Jun 2015 19:35

I am no expert. But maybe try inserting a floppy disk

Code: Select all

sudo dmesg | tail
or

Code: Select all

sudo dmesg grep | sdc
the sdc is just a poke and hope guess from me. Might need another name.

JSladek
Posts: 142
Joined: 19 Jun 2014 23:15
Location: Suffolk VA

Re: fd0 no longer recognized

Postby JSladek » 22 Jun 2015 22:34

Yes, the "dmesg | tail" confirmed that sdc was the current dev. But it can also be sdd depending on what else is plugged into the ports and in what sequence. It appears (as best I can figure) that udev can't be used anymore to detect the USB Floppy Drive and it is now UDisks2 that I'm trying to get a handle on. I would still like to symlink to /dev/fd0 because it makes it consistent in doing my disk backup process and it may be an answer as to why kfloppy isn't working anymore.

It reminds me of the complexity that I saw with Grub2 vs Grub, but after I got to know it, Grub2 wasn't so bad afterall. I hope UDisks2 is the same.


Return to “Hardware”

Who is online

Users browsing this forum: No registered users and 2 guests