Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/sbin/init missing!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
RockCrusha
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2004
Posts: 91

PostPosted: Sat Aug 07, 2004 1:55 pm    Post subject: /sbin/init missing! Reply with quote

I have just noticed why computer boots straight to an sh prompt.... /sbin/init is totally gone. no idea where or how it became missing! ok, so what would i emerge to get it to come back? is init established in the bootstrapping process, or should i just decompress another stage?

also, if i go ahead decompressing another stage, will it cause problems with my currently emerged programs? will /home/users* files be affected?
Back to top
View user's profile Send private message
RockCrusha
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2004
Posts: 91

PostPosted: Sat Aug 07, 2004 2:15 pm    Post subject: Reply with quote

nevermind, the init missing, it's actually there.
it's just not being run at startup for some reason. no error messages, just an sh prompt after it checks reiserfs. no my /boot partition is ext3 and my / partition is reiser.

why is it booting to an sh prompt? why isn't init being run? dmesg produces no errors. this is totally strange. should i just uncompress another stage? will it cripple my previous install?
Back to top
View user's profile Send private message
Steven Robertson
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2003
Posts: 140
Location: Tampa, FL

PostPosted: Sat Aug 07, 2004 2:22 pm    Post subject: Reply with quote

Check /sbin/init permissions. Make sure it is executable. If it is, try running it from within your shell. What does it do?

The /sbin/init file is owned by the package sys-apps/sysvinit. If it's all borked up, delete the file, then remerge sysvinit.

HTH.
Back to top
View user's profile Send private message
RockCrusha
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2004
Posts: 91

PostPosted: Sat Aug 07, 2004 2:25 pm    Post subject: Reply with quote

i was right the first time. /sbin/init totally isn't there. it was my mistake the 2nd time, when i was accidentally checking the contents of the livecd

i need to get another /sbin/init.

tar -xvjpf stage*?
Back to top
View user's profile Send private message
Steven Robertson
Tux's lil' helper
Tux's lil' helper


Joined: 26 Mar 2003
Posts: 140
Location: Tampa, FL

PostPosted: Sat Aug 07, 2004 2:32 pm    Post subject: Reply with quote

If you're unable to emerge a new version of sysvinit, run this:

Code:
cd /mnt/gentoo
tar -xvjpf /path/to/stage3-whatever.tar.bz2 sbin/init


That'll copy out _only_ init. Then, if you can get your system working, I'd run:

Code:
emerge -e world


when you have some free time. This'll ensure that no other files are damaged.
Back to top
View user's profile Send private message
RockCrusha
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2004
Posts: 91

PostPosted: Sat Aug 07, 2004 3:09 pm    Post subject: Reply with quote

yeah that brought the system up...with certain init errors, but for the most part things are good.

thanx, very curious as to how this happend
Back to top
View user's profile Send private message
RockCrusha
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jan 2004
Posts: 91

PostPosted: Sat Aug 07, 2004 3:19 pm    Post subject: Reply with quote

i was also missing /sbin/reboot , /sbin/shutdown.... highly strange
Back to top
View user's profile Send private message
vosechu
n00b
n00b


Joined: 07 Aug 2004
Posts: 23

PostPosted: Sat Aug 07, 2004 9:14 pm    Post subject: Reply with quote

The Linux FHS mentions that all directories aside from proc, tmp, var, and home should be mounted read-only. On a production system one should aspire to this (though it's difficult for sure).

The reason being, if power dies or anything silly happens, the chances of things disappearing are far, far less.

Strange things happen sometimes, but just for kicks you might try running a chkrootkit whenever strangeness happens :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum