Click to See Complete Forum and Search --> : Someone erased my FD0
mpayette
03-29-2001, 10:37 AM
I am pretty new to Linux and I leave my system running overnight.
Last night someone decided to erase FD0 so that when I try to mount /mnt/floppy I get a nasty message. I there a way to recreate this???
I am running RH7, with all the patches.
TIA
Lend273
03-29-2001, 10:55 AM
You need to add a line in your /etc/fstab
file, something like:
/dev/fd0 /mnt/floppy auto noauto,users 0 0
Look up the man page for /etc/fstab and you'll find the proper syntax to remount your floppy.
Len
bdg1983
03-29-2001, 11:42 AM
I believe you need to recreate the device fd0. makedev ?
Try the man page 'man makedev'. May have an example for fd0.
bdg1983
03-29-2001, 11:46 AM
Of course that's if the someone deleted /dev/fd0 and not something else.
Is that it or is it the mount directory for floppy or the entry in /etc/fstab that was deleted?
Have you looked in /dev to see whether or not you have an entry for fd0?
If /dev/fd0 did indeed get hosed, here's a thread from the archives with a couple of ways to restore it: http://www.linuxnewbie.org/cgi-bin/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=1&t=016382. If you have the MAKEDEV script installed (mine's in /dev), "MAKEDEV fd0" should recreate the device entry for you.
If, as mdwatts suggests, the mount point got deleted, you'll have to recreate it by doing mkdir /mnt/floppy (assuming /mnt/floppy is the mount point you want to create).
MBMarduk
03-30-2001, 04:56 PM
Sorry couldn't resist. :D
bdg1983
03-31-2001, 12:21 PM
That helped me to find it. Didn't even have to use 'search'.