LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-04-2004, 02:43 AM   #1
shazam75
Member
 
Registered: Oct 2004
Location: Australia, Brisbane
Distribution: Gentoo
Posts: 296

Rep: Reputation: 30
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
 
Old 11-04-2004, 03:13 AM   #2
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
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.
 
Old 11-04-2004, 03:23 AM   #3
shazam75
Member
 
Registered: Oct 2004
Location: Australia, Brisbane
Distribution: Gentoo
Posts: 296

Original Poster
Rep: Reputation: 30
This is what I got

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

Does not look good
 
Old 11-04-2004, 05:39 AM   #4
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
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?
 
Old 11-05-2004, 05:06 AM   #5
shazam75
Member
 
Registered: Oct 2004
Location: Australia, Brisbane
Distribution: Gentoo
Posts: 296

Original Poster
Rep: Reputation: 30
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
 
Old 11-05-2004, 05:14 AM   #6
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
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.
 
Old 11-05-2004, 10:07 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,749

Rep: Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928Reputation: 5928
Does the drive still work via windows?

Does linux recognize the drive:
dmesg | grep fd0
 
Old 11-05-2004, 08:11 PM   #8
shazam75
Member
 
Registered: Oct 2004
Location: Australia, Brisbane
Distribution: Gentoo
Posts: 296

Original Poster
Rep: Reputation: 30
when I dmesg I get the following:

Floppy drive(s): fd0 is 1.44M
 
Old 11-05-2004, 08:16 PM   #9
shazam75
Member
 
Registered: Oct 2004
Location: Australia, Brisbane
Distribution: Gentoo
Posts: 296

Original Poster
Rep: Reputation: 30
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
 
Old 11-05-2004, 10:01 PM   #10
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
you need to search the whole tree:

find /lib/modules/`uname -r` -name '*fd*.o'
 
Old 11-06-2004, 02:51 AM   #11
shazam75
Member
 
Registered: Oct 2004
Location: Australia, Brisbane
Distribution: Gentoo
Posts: 296

Original Poster
Rep: Reputation: 30
It returned nothing
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
formatting floppy so windows can read Lleb_KCir Linux - General 2 05-11-2005 03:44 PM
Can't read msdos floppy Oh Cisco Debian 7 01-18-2005 03:07 PM
Floppy disk read-only?? halo14 Debian 3 08-20-2004 05:44 PM
Can't read /mnt/floppy Michael2003 Mandriva 4 06-03-2004 05:55 PM
read floppy athenerx Linux - Newbie 1 03-29-2002 06:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration