Solved

How to create the one more terminal tty device  on the single user mode ???

Posted on 2008-06-09
6
857 Views
Last Modified: 2013-12-15
How to create the one more terminal tty device on the single user mode ..


Preferably I want create this device over the serial  usb...

such tty, ttyS0 device I able to create in other run level using the serial port(null modem cable). But whether it is possible to create it using usb

0
Comment
Question by:arulkumarabi
  • 3
  • 2
6 Comments
 
LVL 34

Accepted Solution

by:
Duncan Roe earned 500 total points
ID: 21750180
I assume from your Q that in multi-user mode, you can plug in the serial to USB adapter and an entry is created for it in /dev. Is that right?
Supposing the device in /dev/is called ttyUSB0 and is a symbolic link. To see where the link and any subsequent links point, use ls's -L option, e.g.

ls -lL /dev/ttyUSB0

You will see an entry similar to:

crw-rw----  1 root tty 3, 10 2008-06-11 06:50 /dev/ttypa

ttypa is not a USB device but I hope it gives you the idea. A simple "ls -l" of it gives:

lrwxrwxrwx  1 root root 7 2008-06-11 06:50 /dev/ttypa -> pty/s10

The important items to note from ls -Ll are the 2 numbers after the group (tty), and the fact that the entry starts with "c". "c" means it's a character device (the alternative being "b" for block) with major number 3 and minor number 10. In single-user mode, you could re-create this device (using whatever name you like, say ttyS0) with the mknod command:

mknod ttyS0 c 3 10
0
 
LVL 7

Expert Comment

by:stephenhoekstra
ID: 21774459
I'ld think because it says 'single user mode', it's only going to allow console access, not terminal connections of any type.
0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 21777337
Under 'single user mode', you can start what you like
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 5

Author Comment

by:arulkumarabi
ID: 21819407
We  will keep it in the runlevel 2 (multiuser without network )..

Using null modem cable (com port) it is possible to create tty terminal in the windows using hyper terminal,  putty etc., Whether it is possible to create same thing using the usb cable or usb device..




0
 
LVL 34

Expert Comment

by:Duncan Roe
ID: 21821487
Should be - as long as you have a USB to serial converter and have the modules that support it. Haven't actually tried it yet myself.
0
 
LVL 5

Author Comment

by:arulkumarabi
ID: 21828744
ok thanx - I will try and get back to you
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
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.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

815 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now