LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-26-2004, 05:56 PM   #1
Steerpike
LQ Newbie
 
Registered: Nov 2004
Location: Walnut Creek, CA
Posts: 29

Rep: Reputation: 15
/dev/tty1 no longer exists


After successfully installing SuSE 9.2 pro on my dell latitude laptop last week, I played around with 'suspend to disk' yesterday fand tested it a few times and it worked - was able to suspend, and recover. Great.

Then I decided to do my first 'YOU' (YaST Online Update). Seemed to go well, in that all messages were fine.

However, on reboot, I had all kinds of issues with the file system - reiserfs, reporting bad blocks, etc. With help from this forum, I was able to 'fix' this and reboot (ran reiserfsck with the --rebuild-tree option).

Now, my 'only' problem is that tty1 does not work. After booting successfully all the way into the gui, when I ctrl-alt-F1 to tty1, it shows the tail-end of the boot process, but is non-responsive, and there is a message that appears every 5 mins or so - INIT: Id "1" respawning too fast: disabled for 5 minutes'.

Doing a grep on messages, I see a lot of 'linux mingetty [xxx]: /dev/tty1: No such file or directory' lines.

looking in /dev, there are tty0, tty2, tty3, etc but no tty1 ...

So somehow /dev/tty1 is gone ... how do I recover it?

Is this likely to be a consequence of the suspend to disk experiments, the online update, or some random failure in my filesystem ...?

Thanks!
 
Old 11-26-2004, 10:28 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,114

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
It can be re-created with 'mknod /dev/tty1 c 4 1' (creates a character device, major number 4, minor 1. The ownership should be root:root, permission 0600. If your dev files are created by an auto-system like udev, this won't survive a reboot. You'll need to check your udev config (/etc/udev directory) if that's the case.

Edit to add: Suspend to disk may be the culprit here -- I've heard of it doing wacky things, and it's not fully bug-free yet.
 
Old 11-27-2004, 01:40 AM   #3
Steerpike
LQ Newbie
 
Registered: Nov 2004
Location: Walnut Creek, CA
Posts: 29

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by btmiller
It can be re-created with 'mknod /dev/tty1 c 4 1' (creates a character device, major number 4, minor 1. The ownership should be root:root, permission 0600.
Thanks a lot! I ran the mknod command, and re-created the device. I want to double-check your instructions on ownership and permissions ...

Right after creating the device (mknod...), ls -l tty? showed this (first three devices only shown):
Code:
crw--w----  1 root       root 4, 0 Nov 20 10:01 tty0
crw-rw----  1 root       tty  4, 1 Nov 26 22:35 tty1
crw--w----  1 root       tty  4, 2 Nov 26 22:44 tty2
Then I issue 'chmod tty1 0600', and the files look like this:

Code:
crw--w----  1 root       root 4, 0 Nov 20 10:01 tty0
crw-------  1 root       tty  4, 1 Nov 26 22:35 tty1
crw--w----  1 root       tty  4, 2 Nov 26 22:44 tty2
So my first verification is, should tty1 really be different from tty0 and tty2?

Next, I issue 'chown .root tty1', and the files look like this:

Code:
crw--w----  1 root       root 4, 0 Nov 20 10:01 tty0
crw-------  1 root       root 4, 1 Nov 26 22:35 tty1
crw--w----  1 root       tty  4, 2 Nov 26 22:55 tty2
So ownership on tty0 and tty1 is different from tty2 and above?

THanks again!
 
Old 11-27-2004, 11:16 AM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,114

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
The way I usually see it is that terminals with no one logged in have permission 600. Those with a user logged in have permissions 640 root:tty so that anyone in the tty group can write tpo the terminal (this is for the write or wall programs). Ithink getty or login sets that all up when you login, but I'm not 100% certain.
 
  


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
/dev/lp0 doesn't exists conio Linux - Hardware 26 01-12-2013 11:28 AM
logs sent to /dev/console appear on /dev/tty1 lfur Linux - General 3 01-08-2008 01:19 PM
Terminal Questions? "cat /dev/tty1" Why Not? chris318 Linux - Newbie 3 02-24-2005 10:59 PM
.bashrc No longer exists Maurice Arthur Mandriva 4 04-23-2004 05:36 PM
unable to change tty /dev/tty1 Read-only filesystem behmjose Linux From Scratch 1 01-02-2004 08:55 PM


All times are GMT -5. The time now is 08:07 PM.

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