LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 07-03-2003, 12:06 PM   #1
DAChristen29
Member
 
Registered: Dec 2002
Location: Johnstown, Co
Distribution: Mint (debian edition)
Posts: 541

Rep: Reputation: 30
accidentaly deleted /dev/ttyS4


HELP !!!! PLEASE !!!!

im sual booting windows and linux, and im trying to get linux up and running with internet so i can dump windows. problem is, when i inseted my PCMCIA modem, YasT2 detected it as /dev/ttyS4, but KPPP only detects ttyS3, S2, and S1, and when i went to creat a symlink (ln -s /dev/ttyS4 /dev/ttyS3) instead of deleting ttyS3, i accidentally deleted ttyS4...OOPS !!!

and i did this with root (ill never underestimate root again)

how do i get ttyS4 back, or, how can i change what /dev the pcmcia modem is detected at ? yast2 automatically deteted it as ttyS4, if i can change this, how ?
 
Old 07-03-2003, 12:19 PM   #2
LogicG8
Member
 
Registered: Jun 2003
Location: Long Island, NY
Distribution: Gentoo Unstable (what a misnomer)
Posts: 380

Rep: Reputation: 30
To re-create ttyS4 is easy, all you have to do is:

cd /dev
mknod ttyS4 c 4 68

mknod creates special files
ttyS4 is the name you want
c means it's a character device
4 is the Major number
and 68 is the Minor number
You can find the device numbers in
the Documentation folder of the
kernel source in the file devices.txt

And for kppp I'd link ttyS4 to /dev/modem
while still in /dev

ln -s ttyS4 modem

Last edited by LogicG8; 07-03-2003 at 12:25 PM.
 
Old 07-03-2003, 04:34 PM   #3
DAChristen29
Member
 
Registered: Dec 2002
Location: Johnstown, Co
Distribution: Mint (debian edition)
Posts: 541

Original Poster
Rep: Reputation: 30
wow, thanks a lot. you really saved my life, lol. thanks for the help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Accidentaly deleted fsatb file jychin Linux - Newbie 6 05-11-2006 01:34 AM
I accidentaly deleted my files...Help Please LinuxSeeker Linux - General 4 09-13-2005 03:26 PM
Simple question: i deleted accidentaly the /dev/mixer0 entry. how can i restore it ? Hell255 Linux - Software 3 06-18-2004 08:43 AM
/dev/ttyS4 setting for modem sourlinux Linux - Newbie 3 10-19-2003 12:55 PM
setserial /dev/ttyS4 (settings) bmike1 Linux - Software 1 08-07-2003 04:07 PM


All times are GMT -5. The time now is 07:14 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration