Operating System - HP-UX
1830898 Members
3020 Online
110017 Solutions
New Discussion

Re: How to restore /dev/pts

 
3k3a
New Member

How to restore /dev/pts

I removed all files in directory /dev/pts. Now I need to restore them, but I don't know how to do that. Could someone help me?
6 REPLIES 6
A. Clay Stephenson
Acclaimed Contributor

Re: How to restore /dev/pts

You need to run insf. Man insf for details.
If it ain't broke, I can fix that.
AwadheshPandey
Honored Contributor

Re: How to restore /dev/pts

mknod name b|c major minor

for example:
mknod /dev/pts/14 c 157 0x00000e

chmod 666 /dev/pts/14

Cheers,

Awadhesh
It's kind of fun to do the impossible
Dennis Handly
Acclaimed Contributor

Re: How to restore /dev/pts

You might be able to use SAM to recreate them. Possibly you may have to increase the number of ttys?
TY 007
Honored Contributor

Re: How to restore /dev/pts

Hi,

Issue command: # /sbin/insf -e
______________________________________________________________

# man insf

NAME
insf - install special (device) files

-e Reinstall the special files for pseudo-drivers and
existing devices. This is useful for restoring
special files if one or more have been removed.
______________________________________________________________

Thanks
Bill Hassell
Honored Contributor

Re: How to restore /dev/pts

insf will replace missing pts device files but I don't know if it will create the missing directory. Do it in this order:

umask 022
mkdir /dev/pts
insf -e

That should restore the missing directory and device files.


Bill Hassell, sysadmin
3k3a
New Member

Re: How to restore /dev/pts

Got it. Thanks all!