LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Cant read my floppy (https://www.linuxquestions.org/questions/linux-hardware-18/cant-read-my-floppy-250945/)

shazam75 11-04-2004 02:43 AM

Cant read my floppy
 
Hi

When I try and mount my floppy drive I get the following error

mount: /dev/fd0: unknown device

my fstab looks like this:

/dev/hda6 / ext2 defaults 1 1
none /dev/pts devpts mode=0620 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdc /mnt/cdrom auto user,iocharset=iso8859-1,umask=0,exec,codepage=850,ro,noauto 0 0
/dev/scd0 /mnt/cdrom2 auto user,iocharset=iso8859-1,umask=0,exec,codepage=850,ro,noauto 0 0
/dev/hda1 /mnt/win_c vfat iocharset=iso8859-1,umask=0,codepage=850 0 0
/dev/hda5 /mnt/win_d vfat iocharset=iso8859-1,umask=0,codepage=850 0 0
none /proc proc defaults 0 0
/dev/hda7 swap swap defaults 0 0
/dev/fd0 /mnt/floppy auto user,iocharset=iso8859-1,umask=0,sync,exec,codepage=850,noauto 0 0

I am using Mandrake 8.1 - kernel 2.4

Thanks in advance

ugenn 11-04-2004 03:13 AM

firstly, can you read the device directly?
ie cat /dev/fd0 > /dev/null
if it complains of unknown device, you probably don't have floppy drive support in your kernel or lack the kernel modules.

shazam75 11-04-2004 03:23 AM

This is what I got

cat: /dev/fd0: No such device or address

Does not look good

ugenn 11-04-2004 05:39 AM

Type cat /proc/devices. Do you see something like:
Code:

Block devices:
2  fd

in the output?

What kernel version and distro are you using?

shazam75 11-05-2004 05:06 AM

This is my output:

1 mem
2 pty/m%d
3 pty/s%d
4 tts/%d
5 cua/%d
6 lp
7 vcs
10 misc
13 input
14 sound
29 fb
108 ppp
128 ptm
136 pts/%d
162 raw
180 usb

Block devices:
1 ramdisk
3 ide0
9 md
22 ide1


Using Mandrake 8.1 - Kernel 2.4

Regards

ugenn 11-05-2004 05:14 AM

Nope. no floppy. Try trawling thru your /lib/modules/`uname -r`/ directory for something like fd.o or floppy.o and modprobe that and see if the above tests work.

michaelk 11-05-2004 10:07 AM

Does the drive still work via windows?

Does linux recognize the drive:
dmesg | grep fd0

shazam75 11-05-2004 08:11 PM

when I dmesg I get the following:

Floppy drive(s): fd0 is 1.44M

shazam75 11-05-2004 08:16 PM

I ran /lib/modules/`uname -r`/

and this is my output

drwxr-xr-x 2 root root 4096 Oct 19 15:20 alsa/
lrwxrwxrwx 1 root root 20 Oct 19 15:20 build -> /usr/src/linux-2.4.8 (Flashing RED)
drwxr-xr-x 7 root root 4096 Oct 19 15:20 kernel/
-rw-r--r-- 1 root root 125969 Oct 20 07:26 modules.dep
-rw-r--r-- 1 root root 31 Oct 20 07:26 modules.generic_string
-rw-r--r-- 1 root root 7746 Oct 20 07:26 modules.isapnpmap
-rw-r--r-- 1 root root 29 Oct 20 07:26 modules.parportmap
-rw-r--r-- 1 root root 44297 Oct 20 07:26 modules.pcimap
-rw-r--r-- 1 root root 71817 Oct 20 07:26 modules.usbmap
drwxr-xr-x 2 root root 4096 Oct 19 15:20 pcmcia/

BTW what does `uname -r`/ do?

Regards

ugenn 11-05-2004 10:01 PM

you need to search the whole tree:

find /lib/modules/`uname -r` -name '*fd*.o'

shazam75 11-06-2004 02:51 AM

It returned nothing :(


All times are GMT -5. The time now is 04:39 AM.