Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
07-12-2003, 01:18 PM
|
#1
|
Member
Registered: May 2003
Location: Finland
Distribution: Debian Sarge
Posts: 75
Rep:
|
Text based login failed but no errors
When I type my name to the right side of login: and press enter nothing happens. Only new line appears to below the previous line. When I write to it and press enter the same repeats. This is really strange because I didn't do anything related to login managers and so on yesterday and I don't see any errors during the linux starting. What I have done wrong or is this something else that isn't my fault?
|
|
|
07-12-2003, 03:45 PM
|
#2
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,367
|
If you cannot get into your Linux system at all then you will have to use a rescue system. Boot into the rescue system and mount your / partition.
The first place I would look for problems is in /etc/passwd. Does your login id exist in /etc/passwd? Are the fields in /etc/passwd overwritten or scrambled?
Another place to look in /etc/inittab. Is /etc/inittab set up to start the correct runlevel and to start mingetty?
|
|
|
07-13-2003, 02:54 PM
|
#3
|
Member
Registered: May 2003
Location: Finland
Distribution: Debian Sarge
Posts: 75
Original Poster
Rep:
|
I haven't tought to /etc/passwd file and /etc/inittab but I can look and post results here in wednesday because I'm at home then.
|
|
|
08-03-2003, 12:32 PM
|
#4
|
Member
Registered: May 2003
Location: Finland
Distribution: Debian Sarge
Posts: 75
Original Poster
Rep:
|
I booted using rescue system:
rescue root=/dev/hdb3 and all were going fine until Kernel panic: VFS: Unable to mount root fs on 03:43 error appeared. I decided to use:
rescbf24 root=/dev/hdb3 then because I have 2.4 kernel. The Beginning looked promising because that error doesn't appeared. But rescue system doesn't helped because Linux booted exactly the same way as before and I still have to type my username and password. I don't know what is my correct runlevel but it was 2 when I looked it at the same time I looked other booting logs. What is mingetty How can I fix /etc/passwd and /etc/inittab
|
|
|
08-03-2003, 02:51 PM
|
#5
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,367
|
" I don't know what is my correct runlevel but it was 2 when I looked it at the same time I looked other booting logs. What is mingetty How can I fix /etc/passwd and /etc/inittab"
Runlevel 2 is probably the wrong runlevel. The runlevel is set in /etc/inittab. You need some way to edit /etc/inittab, probably from a rescue system.
In /etc/inittab the line to change will say:
id:2:initdefault:
if you are booting into runlevel 2
The runlevels that you should choose are:
id:3:initdefault:
if you want to boot to the command line.
or:
id:5:initdefault:
if you want to boot to the graphic login screen (either kdm or gdm)
mingetty is the program that gives you the login prompt. Somewhere in /etc/inittab there should be a table of when mingetty is called. Don't mess with mingetty before you get runlevel straightened out.
/etc/passwd has a table of passwords and authority. The first line is for root and should look like this:
root:x:0:0:root:/root:/bin/bash
|
|
|
08-03-2003, 03:00 PM
|
#6
|
Member
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446
Rep:
|
The default run levels explained above apply to SuSE, RedHat and numerous others distributions.
However on Debian (as with a number of other things) things are sometimes different.
On Debian, the default run level for virtual console terminal login is run level 2, and for graphical display manager login (ie X is started) is in run level 3.
Set the value appropriate to your needs in the /etc/inittab default run level field.
Last edited by Corin; 08-03-2003 at 03:04 PM.
|
|
|
08-04-2003, 04:47 AM
|
#7
|
Member
Registered: May 2003
Location: Finland
Distribution: Debian Sarge
Posts: 75
Original Poster
Rep:
|
Thanks. Now I know what I supposed to do but I don't know how. I have to type my details (username and password) to mingetty before I can edit any files even in rescue system.
|
|
|
08-04-2003, 10:52 AM
|
#8
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,367
|
There are two possible approaches to getting into your system:
1. You have several virtual consols, each with its own mingetty. You access these consoles with Alt F1 through alt F8. Use the rescue system to boot into your system, then see if you can get any of the virtual consoles to give you a login prompt.
2. Boot into the rescue system but do not use root=/dev/hdb3. Instead make a directory (say rescue) and then mount /dev/hdb3 on that directory. Then you can access your editor and other programs as /rescue/usr/local/editor or whatever.
|
|
|
08-06-2003, 01:52 PM
|
#9
|
Member
Registered: May 2003
Location: Finland
Distribution: Debian Sarge
Posts: 75
Original Poster
Rep:
|
Number 1. It doesn't work
Number 2. If I type only rescue I can't do anything because this error appears Kernel panic: VFS: Unable to mount root fs on 03:43. It appears also when I write rescue root=/dev/hdb3 and rescbf24. I can only get to mingetty if I type rescbf24 root=/dev/hdb3 and mingetty doesn't work. Do I have any possibility to use rescue system to fix mingetty or do I have to reinstall whole distribution?
|
|
|
08-06-2003, 02:52 PM
|
#10
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,367
|
I am out of ideas on how to find a working login prompt by booting into the broken system and somehow skirting around the lack of a login prompt.
I don't think that you can fix your problem with the rescue system that you are using. You need a rescue system that will run completely on its own without needing working components on your broken system.
You could try a different rescue system. I recommend either knoppix or tomsrtbt if you have them available. Boot knoppix or tomsrtbt. Then you will be running a working Linux system. Then mount your broken system and work on it from the rescue system.
You can run working components, like an editor, from your rescue system and fix broken files, such as perhaps /etc/inittab or /etc/passwd.
If you can't scare up a good rescue system then you will probably have to reinstall.
Last edited by jailbait; 08-06-2003 at 02:53 PM.
|
|
|
08-06-2003, 03:52 PM
|
#11
|
Member
Registered: May 2003
Location: Finland
Distribution: Debian Sarge
Posts: 75
Original Poster
Rep:
|
Thanks! I will try to rescue with knoppix or tomsrtbt. See you later
|
|
|
08-22-2003, 09:32 AM
|
#12
|
Member
Registered: May 2003
Location: Finland
Distribution: Debian Sarge
Posts: 75
Original Poster
Rep:
|
I didn't use Knoppix or tomsrtbt because I got a new idea. I checked my system by booting from bootdisk and typing:
linux.bin init=/bin/bash/ rw
Then I got a command line (init<version number>) where I can write what I want. Both /etc/passwd and /etc/inittab seemed to be allright. There are id:2:initdefault: line in /etc/inittab which propably means that I'm running runlevel 2. Should it be 3 just as jailbait said? My friend which is also using Debian said that both runlevel 2 and 3 are recommended runlevels.
|
|
|
08-22-2003, 03:51 PM
|
#13
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,367
|
" I checked my system by booting from bootdisk and typing:
linux.bin init=/bin/bash/ rw"
Great
"I'm running runlevel 2. Should it be 3 just as jailbait said?"
No. When I said that the runlevel should be 3 I did not know that Debian uses non standard run levels.
"Both /etc/passwd and /etc/inittab seemed to be allright."
Good. The boot logic seems to be OK up through /etc/inittab. In /etc/inittab there is a table of which script to run based on what runlevel that you want to run. Find the script that is run for runlevel 2 and take a look at that script to see if you can find errors. What you should do is follow the startup logic from /etc/inittab to where a login prompt is issued. This logic varies a lot from one distribution to another and I do not know how Debian does it.
Another, completely different possibility, is that your bootloader has an error in it. Check /etc/lilo.conf and make sure that it is right. Then issue lilo so that you have a fresh lilo bootloader on your MBR.
You could also try different run levels. Look at the comments in /etc/inittab and it should tell you what each run level means. Find the runlevel that boots to a GUI login screen and try that. If it works then you know for sure that the problem is somewhere in your run level 2 scripts.
Last edited by jailbait; 08-22-2003 at 03:59 PM.
|
|
|
08-23-2003, 08:20 AM
|
#14
|
Member
Registered: May 2003
Location: Finland
Distribution: Debian Sarge
Posts: 75
Original Poster
Rep:
|
Sorry but I can't do anything to fix my system anymore. It is totally in chaos because I check /dev/hdb3 with e2fsck although there was a warning that checking mounted partitions isn't advisable. All files are now with wrong inode numbers or something and I can't see them. If anyone knows a simple way to fix it and tell it to me I would be very grateful! In other case it would be much easier to reinstall whole system because I don't have any important files in my hd.
|
|
|
08-23-2003, 06:56 PM
|
#15
|
Member
Registered: Jul 2003
Location: Jette, Brussels Hoofstedelijk Gewest
Distribution: Debian sid, RedHat 9, Suse 8.2
Posts: 446
Rep:
|
If you run fsck on a mounted file system, then usually you will completely trash your file system. Unless you have a backup of your file system somewhere to restore, after remaking the file system with mke2fs, then you have no alternative but to re-install the system. But before doing that, see if you can save any customizations you have done to a separate partition such as /home or /usr/local which will not be overwritten during the reinstallation.
Last edited by Corin; 08-23-2003 at 06:57 PM.
|
|
|
All times are GMT -5. The time now is 12:11 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|