LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-21-2006, 12:22 AM   #1
Travis86
Member
 
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399

Rep: Reputation: 31
Can't mount floppy. "fd0 is not a block device" Strange.


When I go to mount a floppy on my new Gentoo install, it says:
Code:
gentoo ~ # mount /dev/fd0 /mnt/floppy/
mount: /dev/fd0 is not a valid block device
However, /dev/fd0 should be a block device:
Code:
gentoo ~ # ls -l /dev/fd0
brw-rw---- 1 root root 2, 0 Dec 20 23:52 /dev/fd0
Here's my fstab if that helps:
Code:
/dev/hda1               /boot           reiserfs                noauto,noatime  1 2
/dev/hda3               /               reiserfs                noatime         0 1
/dev/hda2               none            swap            sw              0 0
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro       0 0
/dev/fd0                /mnt/floppy     auto            noauto          0 0
proc                    /proc           proc            defaults        0 0
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0
Why can't I mount a floppy?
 
Old 12-21-2006, 05:05 AM   #2
diilbert
Member
 
Registered: Nov 2003
Location: North of the Border
Distribution: Gentoo & Debian
Posts: 155

Rep: Reputation: 30
Is there a floppy in the drive ?
 
Old 12-21-2006, 08:54 AM   #3
alexander_bosakov
Member
 
Registered: Mar 2006
Location: Plovdiv, Bulgaria
Distribution: OpenSuse 11.3
Posts: 55

Rep: Reputation: 15
Quote:
Is there a floppy in the drive ?
And if there is, are you shure it is in a good condition - the diskettes are prety unreliable media?
 
Old 12-21-2006, 08:59 AM   #4
sheryco
Member
 
Registered: Feb 2003
Location: FTWorth, TX
Distribution: Gentoo, Debian, CentOS, FreeBSD, NetBSD & OpenBSD
Posts: 55

Rep: Reputation: 15
What kind of file system is in the floppy ? msdos, ntfs, ext2 or ext3
 
Old 12-21-2006, 02:38 PM   #5
Travis86
Member
 
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399

Original Poster
Rep: Reputation: 31
Yes, there's a floppy in the drive. It's a floppy I formatted with Windows. I've compiled the kernel with Windows filesystem support. I can read the floppy on my Windows computer, but I've also tried another floppy, too.

Last edited by Travis86; 12-21-2006 at 02:40 PM.
 
Old 12-21-2006, 03:48 PM   #6
sheryco
Member
 
Registered: Feb 2003
Location: FTWorth, TX
Distribution: Gentoo, Debian, CentOS, FreeBSD, NetBSD & OpenBSD
Posts: 55

Rep: Reputation: 15
if you have formatted this floppy with windows most probably the file system is msdos or ntfs
so try #mount -t msdos /dev/fd0 /mnt/floppy
or #mount -t ntfs /dev/fd0 /mnt/floppy
 
Old 12-21-2006, 08:35 PM   #7
diilbert
Member
 
Registered: Nov 2003
Location: North of the Border
Distribution: Gentoo & Debian
Posts: 155

Rep: Reputation: 30
Code:
# mount -t auto /dev/fd0 /mnt/floppy
will work as well.
 
Old 12-21-2006, 11:15 PM   #8
Travis86
Member
 
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399

Original Poster
Rep: Reputation: 31
It does the same thing:
Code:
gentoo ~ # mount -t auto /dev/fd0 /mnt/floppy/
mount: /dev/fd0 is not a valid block device
But it never even checks to see if there's anything in the drive.

I am pretty certain that it checks the floppy when it boots, so the drive is connected.
 
Old 12-21-2006, 11:25 PM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by Travis86
It does the same thing:
Code:
gentoo ~ # mount -t auto /dev/fd0 /mnt/floppy/
mount: /dev/fd0 is not a valid block device
But it never even checks to see if there's anything in the drive.

I am pretty certain that it checks the floppy when it boots, so the drive is connected.
Do we know that /dev/fd0 is actually the floppy?? Do this to check:
dmesg|grep fd

Here is the relevant dmesg entry on my machine (Mepis):
[17179598.444000] Floppy drive(s): fd0 is 1.44M
 
Old 12-22-2006, 12:15 PM   #10
Travis86
Member
 
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399

Original Poster
Rep: Reputation: 31
I looked through the entire output of dmesg, but there's no mention of a floppy drive. Is that a problem?
 
Old 12-22-2006, 01:50 PM   #11
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by Travis86
I looked through the entire output of dmesg, but there's no mention of a floppy drive. Is that a problem?
Yes!!
Is this a regular old floppy floppy, or maybe a usb floppy? Give us a description of your hardware?
Do you have any other OS on the machine? Does the floppy work there?
 
Old 12-22-2006, 05:59 PM   #12
Travis86
Member
 
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399

Original Poster
Rep: Reputation: 31
It's a normal floppy drive. I checked the BIOS, and it's set up properly there. I checked inside the case, and everything looks good. I rebooted with a DOS bootdisk in the drive, and it booted on it. I tried dmesg again, but there's still no floppy. Have I missed some kind of kernel configuration?
 
Old 12-22-2006, 06:09 PM   #13
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
You just hit the shallow end of my knowledge pool
 
Old 12-23-2006, 03:27 PM   #14
Travis86
Member
 
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399

Original Poster
Rep: Reputation: 31
Something was really messed up with my kernel config. Fortunately, I hadn't gotten around to deleting my config from two kernels ago.

For one thing, I found a little option that wasn't set:
Device Drivers -> Block devices -> Normal floppy disk support

And when I rebooted, I found that ReiserFS support wasn't enabled and it went into kernel panic. Fortunately, I also had a Beyond4 kernel set up, so I booted off of that. (Beyond4 is an experimental patchset.)

It's one of those problems that I don't know how it happened, and can't figure it out, but now I *think* it's set up right. The only thing I can think is that when I backed up the config, I moved the file instead of copying it.

Oh, and not only does it boot again, but the floppy works, too.

Anyway, thanks for your help. I didn't know about that dmesg stuff before.
 
  


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
mount:/dev/fd0 is not a valid block device yat Linux - General 2 11-26-2010 11:45 AM
mount: /dev/fd0 is not a valid block device mwade Linux - Hardware 1 08-30-2006 01:40 PM
mount: /dev/fd0 is not a valid block device natsudarshan Linux - Newbie 5 09-23-2004 03:13 PM
Fedora Core 1 SCSI CD-ROM Won't Mount (always get "is not a valid block device") jerrykuch Linux - Hardware 2 04-18-2004 01:02 PM
mount /dev/fd0 is not a valid block device jolly_good2000 Linux - Hardware 12 07-31-2003 06:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:20 PM.

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