Solved

Can't use floppy lost /dev/rfd0135ds18

Posted on 2000-04-17
4
344 Views
Last Modified: 2008-03-06
I can not use tar, cpio or even format a diskette anymore, since I lost the file

/dev/rfd0135ds18 (Now I have a plain text file)

How can I reconstruct it? or how can I use the /dev/rfd1135ds18 with the floppy?
0
Comment
Question by:dsuarez1
4 Comments
 
LVL 2

Expert Comment

by:jonke
ID: 2725982
I have a feeling that this file was probably manually put there, but you can do a reconfiguration boot to try and rebuild it. Or:

#drvconfig
#devlinks

If this doesn't work then:

#reboot -- -r

This rebuilds the device tree in /devices and the links to these in /dev. The problem is that if the file was put there manually, then it will not be rebuilt, and if you have no backups to restore from then we have a problem.

What platform are you using?
0
 
LVL 2

Expert Comment

by:festive
ID: 2726527
the device looks like a SCO device:
if so then you can use
mkdev fd

(I think it is fd) to recreate the device.

alternatively ---wizardry follows:
you could use mknod to manually create the device again.
by looking at the major/minor device node numbers before and after the device it is usually simple to ascertain the major/minor node numbers and recreate it.

failing that (which should work):
If your backups are done using cpio then news is good, you can restore the device file from tape.

0
 
LVL 1

Accepted Solution

by:
deana080698 earned 100 total points
ID: 2727386
if the device is a SCO device, then try one of the following methods: -

1. look at the major/minor device numbers for /dev/fd0135ds18.  Then execute the following command as root: -

mknod /dev/rfd0135ds18 c <major_no> <minor_no>

This will recreate the file for you.  

2. If the above file does not exist, try this command: -

mknod /dev/rfd0135ds18 c 2 60

as I think the major/minor numbers are always the same.

3. Relink the kernel by going to /etc/conf/cf.d and typing ./link_unix -y and then rebooting the server (small hint - backup /etc/inittab in case the shadow files haven't been kept up to date).

Good luck!!
0
 
LVL 1

Author Comment

by:dsuarez1
ID: 2731426
Thanks to all of you for your help.

I will give the points to deana, since he (or she) provide the exact solution to my problem.

One last comment, after recreating /dev/rfd0135ds18 I had to

chown bin /dev/rfd0135ds18
chgrp bin /dev/rfd0135ds18

to restore the right group and owner.

chmod a+w /dev/rfd0135ds18

to restore permissions.

The original device seemed to have more links, but I didn't try to recover that, since everything works OK now.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now