LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   sytem hangs up after giving init0 command (https://www.linuxquestions.org/questions/linux-networking-3/sytem-hangs-up-after-giving-init0-command-402796/)

rhea 01-13-2006 03:02 AM

sytem hangs up after giving init0 command
 
Hi,

whenever i run shutdown -h now or init0 on my fedora core 2
system hangs at the following line
INIT:no more processes left in the run level.
and i have to manually shut it down
Check if following lines can be a help
/sbin/halt: line 1:lrwxrwxrwx:command not found
/sbin/halt: line 1: halt: Read only file system

micxz 01-13-2006 03:13 AM

Linux was made to run all the time. I think when you want to reboot or power down your computer you must actually push the button after all processes are stopped. My Suse install powers off completly when using the shutdown from KDE. The -h flag is giving the halt error I'm guessing.

rhea 01-13-2006 03:23 AM

Hi micxz,

Thanks for the help but I think u didn't get me.
Even init 0 command doesn't work on my comp.I think its A LINK RELATED PROBLEM anyways that is just a wild guess I am sorry if it doesn't make any sense as i am a newbie and still learning

micxz 01-13-2006 03:33 AM

Are you root?

rhea 01-13-2006 03:42 AM

yes i have logged in as root

rhea 01-13-2006 05:27 AM

help
 
:confused: this is the first time I have registered on a forum in order for a help .But it sems nobody has the answer

goestin 01-13-2006 07:34 AM

Hi Rhea,

I don't know how you managed to get that error:
Code:

/sbin/halt: line 1:lrwxrwxrwx:command not found
/sbin/halt: line 1: halt: Read only file system

because halt is a binary file, not a script as far as i know (and see on my Ubuntu system). maybe you can try the command:
Code:

shutdown -h now
can you open /sbin/halt for editting and see human readable text there? if that's so will you please paste it here?

have fun,

cheers

micxz 01-13-2006 01:28 PM

Goestin is right this error is very odd I wonder also what's on "line 1" in halt.

rhea 01-18-2006 02:39 AM

Ya if i open /sbin/halt file then the text which i get is as follows:

lrwxrwxrwx 1 root root 4 Nov 11 17:00 reboot -> halt

If i open /sbin/reboot then the text which i get is as follows:
lrwxrwxrwx 1 root root 4 Nov 11 17:00 reboot -> halt

micxz 01-18-2006 01:25 PM

cat /sbin/halt | head -10

Should let you look at the first 10 lines

--
Micxz

rhea 01-25-2006 12:18 AM

I f i run cat /sbin/halt | head then the output is

lrwxrwxrwx 1 root root 4 Nov 11 17:00 reboot -> halt

rhea 01-25-2006 12:39 AM

Just check this if this can be a help to anybody .I really don't know why is this happening?


[root@matrix rc6.d]#which halt
/sbin/halt
[root@matrix rc6.d]# which reboot
/sbin/reboot
[root@matrix rc6.d]# cd /sbin
[root@matrix sbin]# cat halt
lrwxrwxrwx 1 root root 4 Nov 11 17:00 reboot -> halt
[root@matrix sbin]# cat reboot
lrwxrwxrwx 1 root root 4 Nov 11 17:00 reboot -> halt



[root@matrix sbin]# cd /etc/rc.d/rc0.d
[root@matrix rc0.d]# ls -al | less
lrwxrwxrwx 1 root root 17 Dec 12 05:15 S00killall -> ../init.d/killall
lrwxrwxrwx 1 root root 14 Dec 12 05:15 S01halt -> ../init.d/halt


[root@matrix rc0.d]# cd /etc/rc.d/rc6.d
[root@matrix rc6.d]# ls -al | less
lrwxrwxrwx 1 root root 17 Dec 12 05:15 S00killall -> ../init.d/killall
lrwxrwxrwx 1 root root 19 Jan 25 00:54 S01reboot -> ../../init.d/reboot

rhea 01-25-2006 01:03 AM

Following are the last few lines after giving init 0 or shutdown -h now command.System hangs up after the last line,So I have to manually shut it down.

Sending all processes the KILL signal
/sbin/halt: line 1 : lrwxrwxrwx: command not found
Syncing hardware clock to system time
Turning off swap:
Turning off quotas :
Unmounting file systems:
Halting system....
/sbin/halt: line 1 : halt: Read-only file system
INIT: no more processes left in this runlevel

rhea 01-27-2006 01:25 AM

Please help out nothng works for me

Notwerk 01-27-2006 03:30 AM

Something is way off !!!
Quote:

[root@matrix sbin]# cat halt
lrwxrwxrwx 1 root root 4 Nov 11 17:00 reboot -> halt
[root@matrix sbin]# cat reboot
lrwxrwxrwx 1 root root 4 Nov 11 17:00 reboot -> halt
Did you install from CDs? If so, check the ingerity of your install media, also check the MD5 of any downloaded .iso files.
You machine might have a rootkit installed, check this site:
http://www.rootkit.nl/
install, UPDATE the MD5 database, then run a scan. Post back your results.


All times are GMT -5. The time now is 01:42 PM.