Solved

Can't use floppy lost /dev/rfd0135ds18

Posted on 2000-04-17
4
335 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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 …
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

763 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

10 Experts available now in Live!

Get 1:1 Help Now