The file /dev/fd0

Seb -  
 Seb -
Hi,

I’m currently working on a UNIX box and I’d like to mount a floppy disk. I’m doing: mount /dev/fd0 /mnt/fd. Unfortunately, it says that the file fd0 is not found. Looking in the dev directory, I can see that the file has been deleted.

How can I recreate it?

Thanks,
Seb.

Configuration: USE IT

5 answers

  1. Seb
     
    Yes.

    The problem isn’t coming from there.

    I recreated the fd0 file by typing: chnod /dev/fd0 b 2 0

    Then I change the permissions to 0660, the user to bin and the group to bin, like the other readers.

    And when I want to mount my floppy by typing: mount /dev/fd0 /mnt/fd,

    I get an error message:

    mount: cannot get /dev/fd0 status: I/O error (error 5)

    So if someone understands, please respond.
    0
  2. kmf31 Posted messages 1564 Status Contributor 501
     
    The device /dev/fd0 is typical for certain Linux systems; possibly there are also other devices of the same kind like /dev/fd0h1440 or /dev/fd0h360, etc. If /dev/fd0 does not exist on your Unix system, it might be named differently. It’s up to you to find the correct name for your version of Unix. In general, in Linux you can create the devices with mknod plus the correct options (i.e., the correct major and minor numbers). That’s the hardest part if you don’t know them. However, for /dev/fd0 it indeed seems to be 2 and 0 as you wrote (to check in the file: /usr/src/linux/Documentation/devices.txt if you have installed the kernel sources on your system).

    Look in /dev/... for the other devices and see if there are other candidates. Maybe it’s a floppy on a SCSI controller (so more like /dev/sda or /dev/sdb, etc.). There are also floppy devices on IDE controllers.

    However, for a Unix version different from Linux, it may be different from /dev/fd0.

    Regarding Linux (and also other Unixes like BSD, etc.) you must also add: for /dev/fd0 to work the kernel must be compiled with the right drivers (e.g., "support floppy," etc.), either built-in or as a module. Normally this is fine in kernels provided by standard distributions, but if you compile your own you must ensure this driver is included.
    0
  3. Gordius Posted messages 267 Status Contributor 51
     
    Search for a MAKEDEV on your workstation and, if it exists, run it with the parameter floppy (on AIX and Linux it generally works).
    0
  4. Arno59 Posted messages 4603 Registration date   Status Contributor Last intervention   499
     
    Hello,

    Have you tried:

    su
    Password

    cd mnt
    ls

    /cdrom /fd0 or /floppy /removable (USB key)
    -1