LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 08-20-2016, 02:12 PM   #1
A_FanaT_A
LQ Newbie
 
Registered: Aug 2016
Posts: 1

Rep: Reputation: Disabled
delete files in /dev/pts


Hi

I delete all files in directory /dev/pts

and now i not connected to server from SSH.

How can I fix this problem?
 
Old 08-20-2016, 07:47 PM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
They have to be recreated.

It has been a very long time since I worked with AIX, their MAY be a "MAKEDEV" script in the /dev directory. You will have to look up whether there is, and how to use it (if it exists).

It may be in lowercase - "makedev"

Otherwise you will have to look up the major/minor numbers and use mknod...

BTW, the "pts" devices are used for any networked terminal, and anywhere a terminal interface is simulated.

Last edited by jpollard; 08-20-2016 at 07:51 PM.
 
Old 08-22-2016, 03:20 AM   #3
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,856
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
Use command seq to generate these devices:

Code:
$ ls -l /dev/pts | sort -n -k10
crw-rw-rw- 1 root     system 25,   1 Oct  1  2012 1
crw-rw-rw- 1 root     system 25,   2 Oct  1  2012 2
...
crw-rw-rw- 1 root     system 25, 254 Oct  1  2012 254
crw-rw-rw- 1 root     system 25, 255 Oct  1  2012 255
Sg like this:
Code:
for i in $(seq 1 255); do mknod -m 0666 /dev/pts/$i c 25 $i; done
 
Old 08-22-2016, 03:31 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
if you deleted something else too (under /dev), probably a reboot would be better
 
1 members found this post helpful.
Old 08-25-2016, 05:57 AM   #5
Yordan
Member
 
Registered: Nov 2004
Posts: 57

Rep: Reputation: 15
By the way, why did you remove the /dev/pts devices?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Terminal Emulation & /dev/pts and /dev/shm Issues on Kernel 3.4.3 unassailable Gentoo 8 10-27-2012 11:03 PM
What creates /dev/pts, /dev/loopx, and other /dev devices - Fedora Core 2 rickpo12 Linux - General 5 02-11-2012 08:50 PM
pseudo terminals: /dev/ptmx <-> /dev/pts/ vs. /dev/ptyp <-> /dev/ttyp rtspitz Linux - Software 2 12-02-2011 02:07 PM
[SOLVED] Issues with /dev/pts & /dev/shm, when LFS boots zer0signal Linux From Scratch 2 12-21-2010 07:14 AM
Kernel config options (/dev, /dev/pts) jrdioko Slackware 5 08-22-2005 01:25 AM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 10:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration