Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-19-2004, 10:30 AM   #1
LQ Newbie
Registered: Feb 2004
Location: Kansas City, Mo
Distribution: Redhat 9.0
Posts: 2

Rep: Reputation: 0
I have overwritten /dev/fd0! How do I recreate /dev/fd0 to access my floppy?

I am a Linux newbie. Just installed Redhat 9.0 and dual boot with Windows 2000. My goal is to play and learn but I made the mistake of playing too much with root login authority and now I have accidentally overwritten the device file for my floppy /dev/fd0. I'm looking for help to recover that device file. Thanks for any suggestions! I will play with a non-root login from now on!
Old 02-19-2004, 10:57 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979Reputation: 1979
it sholdn't be possible to overwrite it, as you should be running on devfs, which means that the file entires you have in /dev/ are not actually real files at all, and will be created each time you boot based on /etc/devfsd.conf or a similar configuration file.

if you are not running it then try "mknod /dev/fd0 b 2 0". a reboot should be the first route though
Old 02-19-2004, 01:37 PM   #3
LQ Newbie
Registered: Feb 2004
Location: Kansas City, Mo
Distribution: Redhat 9.0
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks, but rebooting was already attempted with no change. I tried the mknod /dev/fd0 b 2 0 and the result was file already exists so I deleted it and retried the command at which point it recreated it. Attempting the command fdformat /dev/fd0 after that resulted in /dev/fd0:No such device or address. Here's a little overview of how I ended up with this situation. I was attempting to copy a file to diskette after formatting the diskette. I was using the mv command(wrong choice) in the attempt to get the file to diskette. It looked like "mv /dump /dev/fd0". I responded with yes when it asked if I wanted to overwrite this so I wiped out whatever used to be in /dev/fd0. Immediately after that big mistake, fdformat /dev/fd0 resulted in "/dev/fd0:not a block device". So I need to find a way to restore whatever used to reside in /dev/fd0.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
/dev/fd0 not mounting linetnew Linux - Newbie 3 05-24-2008 01:14 PM
/dev/fd0 gone! I can't mount floppy! robbow52 Debian 7 08-06-2004 05:35 PM
Floppy at /dev/fd0 won't mount Borg Swarm Linux - Hardware 4 01-20-2004 07:48 PM
saving to floppy: overwrote /dev/fd0 davey Linux - General 2 11-28-2003 04:47 PM
Problem with /dev/fd0 sonenberk Linux - Hardware 0 09-29-2003 06:35 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:21 PM.

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