You are not logged in.

#1 2004-09-19 00:17:31

hugelmopf
Member
Registered: 2004-08-06
Posts: 71

INIT cannot execute "/sbin/agetty"

I am not able to boot into my Archlinux, because in the init process, i get a lot of these error messages and then it just stays there:

INIT cannot execute "/sbin/agetty "
INIT cannot execute "/sbin/agetty "

INIT:ld: "1" respawning to fast: disabled for 5 minutes

When I rebooted before that (out of my working Arch), it also errored out with something like "cannot execute /sbin/shutdown". This also happens on Ctrl-Alt-Del now, whenever the Init comes to a stop.

I have looked at my Arch partition from a Gentoo installation, and everything looks fine: "agetty" is 755 and executable, /etc/inittab looks fine and everything else seems ok.

I have upgraded quite a few packages before this error came up, e.g.:

[09/18/04 21:08] upgraded arts (1.3.0-1 -> 1.3.0-3)
[09/18/04 21:08] upgraded automake (1.9-1 -> 1.9.1-1)
[09/18/04 21:08] upgraded fam (2.6.10-3 -> 2.6.10-4)
[09/18/04 21:08] upgraded filesystem (0.7-2 -> 0.7-3)
[09/18/04 21:08] upgraded groff (1.19.1-2 -> 1.19.1-3)
[09/18/04 21:08] upgraded initscripts (0.7-5 -> 0.7-6)
[09/18/04 21:08] upgraded libxml2 (2.6.11-1 -> 2.6.13-2)
[09/18/04 21:08] upgraded libxslt (1.1.8-1 -> 1.1.10-1)
[09/18/04 21:08] upgraded lilo (22.5.9-1 -> 22.6-1)
[09/18/04 21:08] upgraded taglib (1.2-1 -> 1.3-1)
[09/18/04 21:09] upgraded tunepimp (0.3.0-1 -> 0.3.0-2)
[09/18/04 21:09] upgraded xine-lib (1rc5-3 -> 1rc6a-1)
[09/18/04 21:09] upgraded zlib (1.2.1-1 -> 1.2.1-2)
[09/19/04 01:37] upgraded gcc (3.4.1-2 -> 3.4.2-1)  (after reboot started to fail)

I would be really glad if somebody could help me, because I don't really have another operating system, that is running as updated and nice :-)

Frank

Offline

#2 2004-09-19 00:47:01

kakabaratruskia
Member
From: Santiago, Chile
Registered: 2003-08-24
Posts: 596

Re: INIT cannot execute "/sbin/agetty"

you could try this:

#pacman -S util-linux


And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.

Offline

#3 2004-09-19 08:02:24

hugelmopf
Member
Registered: 2004-08-06
Posts: 71

Re: INIT cannot execute "/sbin/agetty"

OK, I have tried this, but it doesn't help.

The strange thing is, everything seems in place.
Has anything changed from "initscripts-0.7.5" to "initscripts-0.7.6"?
Should I try to remove 0.7.6 and add 0.7.5 with Pacman?


As addition, here is my inittab:

#
# /etc/inittab
#

#  Runlevels:
#    0    Halt
#    1(S)    Single-user
#    2    Not used
#    3    Multi-user
#    4    Not used
#    5    X11
#    6    Reboot

id:3:initdefault:

rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p

c1:2345:respawn:/sbin/agetty 38400 vc/1 linux
c2:2345:respawn:/sbin/agetty 38400 vc/2 linux
c3:2345:respawn:/sbin/agetty 38400 vc/3 linux
c4:2345:respawn:/sbin/agetty 38400 vc/4 linux
c5:2345:respawn:/sbin/agetty 38400 vc/5 linux
c6:2345:respawn:/sbin/agetty 38400 vc/6 linux

ca::ctrlaltdel:/sbin/shutdown -t3 -r now

x:5:respawn:/usr/X11R6/bin/xdm -nodaemon

# End of file

Offline

#4 2004-09-20 21:17:29

hugelmopf
Member
Registered: 2004-08-06
Posts: 71

Re: INIT cannot execute "/sbin/agetty"

Well, I have not found a solution yet. But a few updates:

- I removed (pacman -R) initscripts-0.7-6 and added (pacman -A) initscripts-0.7.5, but nothing changed
- I checked the file system, but everything seems alright:
   

    root@frank / # fsck.ext3 /dev/hda7
    e2fsck 1.34 (25-Jul-2003)
    /dev/hda7: clean, 99005/2445984 files, 873112/4882432 blocks
    

   
Is there anything else I could check regarding file corruption?

If I don't find a solution, I'll just wait til 0.7 is released and reinstall then. But that means I have to use my old Gentoo til then, and I have to admit, that I like Arch better so far :-) Especially with the brand new Pacman features (like file sizes!)

Thanks, Frank

Offline

#5 2004-09-21 11:29:56

zezaz
Member
From: Bordeaux, France
Registered: 2004-04-26
Posts: 80
Website

Re: INIT cannot execute "/sbin/agetty"

hugelmopf wrote:

Well, I have not found a solution yet.

Hi hugelmopf,

Just a guess: how is your /dev/vc tree?

Mine looks like this:

$ ls -l /dev/vc/
total 0
crw-rw----  1 root tty  4,  0 2004-09-09 17:52 0
crw-rw----  1 root tty  4,  1 2004-09-09 17:52 1
crw-rw----  1 root tty  4, 10 2004-09-09 17:52 10
crw-rw----  1 root tty  4, 11 2004-09-09 17:52 11
crw-rw----  1 root tty  4, 12 2004-09-09 17:52 12
crw-rw----  1 root tty  4, 13 2004-09-09 17:52 13
crw-rw----  1 root tty  4, 14 2004-09-09 17:52 14
crw-rw----  1 root tty  4, 15 2004-09-09 17:52 15
crw-rw----  1 root tty  4, 16 2004-09-09 17:52 16
crw-rw----  1 root tty  4, 17 2004-09-09 17:52 17
crw-rw----  1 root tty  4, 18 2004-09-09 17:52 18
crw-rw----  1 root tty  4, 19 2004-09-09 17:52 19
crw-------  1 root root 4,  2 2004-09-20 12:59 2
crw-rw----  1 root tty  4, 20 2004-09-09 17:52 20
crw-rw----  1 root tty  4, 21 2004-09-09 17:52 21
crw-rw----  1 root tty  4, 22 2004-09-09 17:52 22
(etc...)

You should check the permissions on theses files, root should be able to read/write them.

Offline

#6 2004-09-21 11:34:24

hugelmopf
Member
Registered: 2004-08-06
Posts: 71

Re: INIT cannot execute "/sbin/agetty"

Well, if I look at my Arch partition from Gentoo, the /arch/dev folder is empty, except for a "null" device (same if I chroot)

But I supposed, that the /dev gets filled, when Arch starts and the devfs daemon fills it up? I don't really know much about devfs vs. udev and maybe that's the problem, I have?

If you could give me some guidance regarding that, I would be very grateful.

Frank

Offline

#7 2004-09-21 12:08:46

zezaz
Member
From: Bordeaux, France
Registered: 2004-04-26
Posts: 80
Website

Re: INIT cannot execute "/sbin/agetty"

hugelmopf wrote:

But I supposed, that the /dev gets filled, when Arch starts and the devfs daemon fills it up?

Yes, the /dev tree is genarated by the device daemon, either devfs or udev.

hugelmopf wrote:

If you could give me some guidance regarding that, I would be very grateful.

There is a nicely written wiki entry on udev:

http://wiki.archlinux.org/index.php/UdevHowTo

I am sorry do not have a good link for you on devfs at the moment.

A last question : did you compile your own custom kernel ? If yes, check this entry of the FAQ:

http://www.archlinux.org/docs/en/guide/ … .html#faq2

Offline

#8 2004-09-21 12:11:32

hugelmopf
Member
Registered: 2004-08-06
Posts: 71

Re: INIT cannot execute "/sbin/agetty"

No, I did not compile my own kernel.

I will look a bit further into the Udev How To, maybe this really is my problem.

Thanks for the hint, Frank

Offline

#9 2004-09-21 12:50:56

hugelmopf
Member
Registered: 2004-08-06
Posts: 71

Re: INIT cannot execute "/sbin/agetty"

I have followed the Udev-Howto now and still got the same problem.
My current init process:
- Udev starts [Done]
- Activating Swap [Done]
- after the third step, which I can't recognize before it's gone, it starts to say "cannot execute /sbin/agetty" on many lines.

Unfortunately, like this I cannot check, whether udev creates the correct tty devices. Or does anybody have an idea how I could check this?

Thanks, Frank

Offline

#10 2004-09-21 13:07:33

zezaz
Member
From: Bordeaux, France
Registered: 2004-04-26
Posts: 80
Website

Re: INIT cannot execute "/sbin/agetty"

hugelmopf wrote:

Unfortunately, like this I cannot check, whether udev creates the correct tty devices. Or does anybody have an idea how I could check this?

Someone already had the same problem on Linux From Scratch:

http://linuxfromscratch.org/pipermail/l … 11524.html

at the LILO prompt type:

LILO: lfs init=/bin/bash

when you are at the shell run /sbin/agetty tty2 9600
it should now tell you why it failed.

Changes:
- if you are using lilo, you should type "arch init=/bin/bash"
- run /sbin/agetty 38400 vc/1 linux after that. And check the status of your /dev/vc entries smile

Offline

#11 2004-09-21 21:05:46

hugelmopf
Member
Registered: 2004-08-06
Posts: 71

Re: INIT cannot execute "/sbin/agetty"

I have interesting news, as I have now finally figured out, how I can scroll up in the messages on the screen :-)
This is the way, the errors arise:

Starting UDev Daemon                [Done]
Activating Swap                    [Done]
Mounting Root Read-Only            [Done]
Checking Filesystems
    /etc/rc.sysinit: line 57: /sbin/fsck: Permission denied
                            [Fail]    
    ***************************************************
    *        FILESYSTEMCHECK FAILED              *
    * Please repair manually and reboot. If you leave *
    * the bash prompt, it will automatically reboot   *
    ***************************************************
    
    /etc/rc.sysinit: line 71: /sbin/sulogin: Permission denied
    Automatic reboot in progress
    /etc/rc.sysinit: line 73: /sbin/umount: Permission denied
    /etc/rc.sysinit: line 74: /sbin/mount: Permission denied
    /etc/rc.sysinit: line 75: /sbin/reboot: Permission denied
INIT: Entering runlevel: 3
INIT: cannot execute /etc/rc.multi
INIT: cannot execute /sbin/agetty
...

I checked fsck Permissions, but they seem alright, don't they?

-rwxr-xr-x  1 root root 18384 Feb 29  2004 /arch/sbin/fsck

It's possible to boot a bash prompt from Grub (init=/bin/bash), but that doesn't help. If I want runlevel one (root=(hd0,6) 1), above errors arise.

Maybe now somebody has another idea?

Thanks so far, Frank

Offline

#12 2005-03-02 20:09:55

ganja_guru
Member
Registered: 2005-02-14
Posts: 464

Re: INIT cannot execute "/sbin/agetty"

hi im having the exact same problem youre having...did you figure it out? (sorry about the highjack)

Offline

#13 2005-03-02 20:13:55

hugelmopf
Member
Registered: 2004-08-06
Posts: 71

Re: INIT cannot execute "/sbin/agetty"

I am sorry, that I have to disappoint you, but I never found a solution.
Maybe it's something small and easy, but who knows... I went for a fresh install.

Offline

#14 2005-03-02 20:19:26

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: INIT cannot execute "/sbin/agetty"

ganja_guru wrote:

hi im having the exact same problem youre having...did you figure it out? (sorry about the highjack)

hmmm well, is /sbin on another partition? can you run (by booting some other way) /sbin/fsck ?

Offline

#15 2005-03-02 20:22:16

hugelmopf
Member
Registered: 2004-08-06
Posts: 71

Re: INIT cannot execute "/sbin/agetty"

phrakture wrote:

hmmm well, is /sbin on another partition? can you run (by booting some other way) /sbin/fsck ?

Don't you dare to find a solution now!  wink

Offline

#16 2005-03-02 20:48:48

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: INIT cannot execute "/sbin/agetty"

hugelmopf wrote:

Don't you dare to find a solution now!  wink

heh, I never saw this post before... I'll see what I can do, but I promise nothing  :?

Offline

#17 2005-03-02 20:55:18

hugelmopf
Member
Registered: 2004-08-06
Posts: 71

Re: INIT cannot execute "/sbin/agetty"

phrakture wrote:
hugelmopf wrote:

Don't you dare to find a solution now!  wink

heh, I never saw this post before... I'll see what I can do, but I promise nothing  :?

Hehe... it's just because your solution won't help me anymore. But I'll be glad for ganja_guru if you did find a solution.

Offline

#18 2005-03-02 21:01:42

ganja_guru
Member
Registered: 2005-02-14
Posts: 464

Re: INIT cannot execute "/sbin/agetty"

oh so i presume you didnt....did u reinstall? this is the third time its happening to me..

phrakture: i dont know why i get permission denied on fsck even though ive tried 755 and 777 ...../sbin is on the same partition

Offline

#19 2005-03-03 06:09:06

ganja_guru
Member
Registered: 2005-02-14
Posts: 464

Re: INIT cannot execute "/sbin/agetty"

i did : )

i added defaults,user to the root partition in fstab , like a dumbass tongue...removed the 'user' option and now everything is ok!

Offline

#20 2005-03-03 12:58:28

hugelmopf
Member
Registered: 2004-08-06
Posts: 71

Re: INIT cannot execute "/sbin/agetty"

That's good news for you :-)
I wish I had a copy of my old fstab and could check whether this was the same problem. I don't remember changing anything in my fstab back then, though.

Offline

#21 2007-08-27 12:17:35

ahaslam
Member
Registered: 2007-05-11
Posts: 119

Re: INIT cannot execute "/sbin/agetty"

I've had this exact problem on Don't Panic x86_64. It doesn't happen often, but I also get more frequent random crashes where I get the same 'cannot execute/sbin/agetty' along with 'Id "c3" respawning too fast'. Simple things such as running mplayer,inserting a usb drive or playing NWN have caused lockups, later displaying these messages & requiring a power-down.

I've ran 'fsck.xfs' and Seagate's bookable diagnostic disk, both showing a clean bill of health. My fstab doesn't have the user option for /, which is where /sbin is located.

Some guidance would be greatly appreciated, I can't reproduce the crashes & the boot problem is very rare. It's all very random, running smooth for 24 hours at times, on other occasions it struggles with 24 mins hmm

Offline

#22 2007-08-27 15:23:47

test1000
Member
Registered: 2005-04-03
Posts: 834

Re: INIT cannot execute "/sbin/agetty"

are you using slim?


KISS = "It can scarcely be denied that the supreme goal of all theory is to make the irreducible basic elements as simple and as few as possible without having to surrender the adequate representation of a single datum of experience." - Albert Einstein

Offline

#23 2007-08-27 18:34:40

ahaslam
Member
Registered: 2007-05-11
Posts: 119

Re: INIT cannot execute "/sbin/agetty"

No login manager here.

Offline

#24 2007-08-27 18:48:47

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: INIT cannot execute "/sbin/agetty"

fsck.xfs doesn't do anything. If you really want to check your FS, use xfs_repair.

Did you check the logs for interesting output?

Offline

#25 2007-08-27 20:04:29

ahaslam
Member
Registered: 2007-05-11
Posts: 119

Re: INIT cannot execute "/sbin/agetty"

Sorry, it was actually xfs_check that I'd used, which I believe does more than 'nothing successfully' wink

Yes, I checked the logs in /var/logs & strangly found nothing of relevance hmm

EDIT: Things have been fine for a few days... No updates or tinkering either, just hope it lasts hmm

Last edited by ahaslam (2007-09-01 19:16:00)

Offline

Board footer

Powered by FluxBB