Re: Recreating /dev character special file?
John Hillman wrote:
> Our Oracle DBA is doing some DR testing and has rm'd /dev/r**** which
> was the character special file (raw volume). The other, matching /dev/
> entries are there, but that one is gone. Any way to recreate it? I've
> never had to create just the character file, usually a whole LV which
> makes it automagically.
>
So he just remvoe ONE entry and not executed /dev/r****.
Solution
Get the major and minor number of the device
Example: ( /dev/rsuselv ) was deleted
$ ls -l /dev/*suse*
# crw-rw---- 1 root system 10, 20 Jul 06 15:28 /dev/rsuselv
brw-rw---- 1 root system 10, 20 Aug 16 13:45 /dev/suselv
Recreate device ( man mknod Name { b | c } Major Minor )
$ mknod /dev/rsuselv c 10 20
hth
Hajo |