Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

oops! I erased the file /dev/st0...

2 views
Skip to first unread message

Robert Anderson

unread,
Jun 5, 2000, 3:00:00 AM6/5/00
to
Oops! I inadvertantly erased the file /dev/st0 Any ideas on how I might
reinstall that? Is there an RPM that contains all the devices or
something? I'm usind RedHat 6.1 Thanks in advance.

--
Robert Anderson
Systems Administrator
The Ant Farm
323-850-0700

David C.

unread,
Jun 5, 2000, 3:00:00 AM6/5/00
to
Robert Anderson <r...@theantfarm.net> writes:
>
> Oops! I inadvertantly erased the file /dev/st0 Any ideas on how I
> might reinstall that? Is there an RPM that contains all the devices or
> something? I'm usind RedHat 6.1 Thanks in advance.

The mknod program will create special files.

My RH6.1 box uses device 9,0 for /dev/st0. If yours does too, this
command should work:

mknod -m660 /dev/st0 c 9 0

This, however, is a very low-level call. You may prefer to use the
MAKEDEV script that your system should have installed already:

cd /dev
./MAKEDEV st0

-- David

Bob Martin

unread,
Jun 5, 2000, 3:00:00 AM6/5/00
to
Robert Anderson wrote:
>
> Oops! I inadvertantly erased the file /dev/st0 Any ideas on how I might
> reinstall that? Is there an RPM that contains all the devices or
> something? I'm usind RedHat 6.1 Thanks in advance.
>

Device files are created with the mknod command. The device information
can be found in /usr/src/linux/Documentation/devices.txt
--

Bob Martin

0 new messages