?
Solved

Can't use floppy lost /dev/rfd0135ds18

Posted on 2000-04-17
4
Medium Priority
?
380 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 400 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses
Course of the Month15 days, 8 hours left to enroll

741 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