LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 02-19-2004, 09:30 AM   #1
drscott1
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, 09:57 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
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, 12:37 PM   #3
drscott1
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.
 
  


Reply


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


All times are GMT -5. The time now is 06:35 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration