Re: System hangs while rebooting.

2010-03-27 Thread Stephen Powell
On Sat, 27 Mar 2010 13:39:06 -0400 (EDT), Andrei Popescu wrote:
> On Fri,26.Mar.10, 11:53:20, Stephen Powell wrote:
>> "reboot" should not be issued from the command
>> line.  "reboot" is issued as the final command in the final script
>> (/etc/rc6.d/S90reboot) run during a clean system shutdown by one of the
>> above methods.
>
> [ halt(8) ]
> If halt or reboot is called when the system is not in runlevel 0 or 6, 
> in other words when it's running normally, shutdown will be invoked 
> instead (with the -h or -r flag).

+1

Very good!  I see I didn't dig deeply enough.

-- 
  .''`. Stephen Powell
 : :'  :
 `. `'`
   `-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/1045412142.22048231269712214919.javamail.r...@md01.wow.synacor.com



Re: System hangs while rebooting.

2010-03-27 Thread Andrei Popescu
On Fri,26.Mar.10, 11:53:20, Stephen Powell wrote:

> from their system menus.  "reboot" should not be issued from the command
> line.  "reboot" is issued as the final command in the final script
> (/etc/rc6.d/S90reboot) run during a clean system shutdown by one of the
> above methods.

Nitpick:

,[ halt(8) ]
| If halt or reboot is called when the system is not in runlevel 0 or 6, 
| in other words when it's running normally, shutdown will be invoked 
| instead (with the -h or -r flag).
`

Regards,
Andrei
-- 
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic


signature.asc
Description: Digital signature


Re: System hangs while rebooting.

2010-03-27 Thread Stephen Powell
On Sat, 27 Mar 2010 01:14:30 -0400 (EDT), Stan Hoeppner wrote:
> Usman Ajmal put forth on 3/26/2010 6:32 AM:
>>
>> I have Debian installed on two computers. On one of them it reboots quite
>> finely but I am having following problem with rebooting Debian on my second
>> computer.
>> 
>> When i type reboot at the linux prompt, following messages appear and system
>> hangs up after saying "Restarting System":
> 
> http://blogs.koolwal.net/2009/08/04/howto-fix-linux-hangfreeze-during-reboots-and-restarts/

Nice link, Stan.

-- 
  .''`. Stephen Powell
 : :'  :
 `. `'`
   `-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/1779644423.22003061269697238398.javamail.r...@md01.wow.synacor.com



Re: System hangs while rebooting.

2010-03-27 Thread Stan Hoeppner
Usman Ajmal put forth on 3/27/2010 5:32 AM:
> Thanks a lot Hoeppner.

You're welcome.  Glad it got ya going. :)

> After reviewing the blog post you posted, I passed "reboot=bios" to the
> kernel. After which when i rebooted my system, it did not hang.
> 
> :)

I wish I could take more credit.  That blog post was the 3rd Google hit
searching for "linux hangs on reboot". ;)

http://lmgtfy.com/?q=linux+hangs+on+reboot

I wish Google was this helpful/quick/easy for all of my searches...

-- 
Stan


> On Sat, Mar 27, 2010 at 10:14 AM, Stan Hoeppner wrote:
> 
>> Usman Ajmal put forth on 3/26/2010 6:32 AM:
>>> Hi,
>>>
>>> I have Debian installed on two computers. On one of them it reboots quite
>>> finely but I am having following problem with rebooting Debian on my
>> second
>>> computer.
>>>
>>> When i type reboot at the linux prompt, following messages appear and
>> system
>>> hangs up after saying "Restarting System":
>>
>>
>> http://blogs.koolwal.net/2009/08/04/howto-fix-linux-hangfreeze-during-reboots-and-restarts/
>>
>> --
>> Stan
>>
>>
>> --
>> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
>> with a subject of "unsubscribe". Trouble? Contact
>> listmas...@lists.debian.org
>> Archive: http://lists.debian.org/4bad9436.2090...@hardwarefreak.com
>>
>>
> 


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4bae08a8.5060...@hardwarefreak.com



Re: System hangs while rebooting.

2010-03-27 Thread Usman Ajmal
Thanks a lot Hoeppner.

After reviewing the blog post you posted, I passed "reboot=bios" to the
kernel. After which when i rebooted my system, it did not hang.

:)

On Sat, Mar 27, 2010 at 10:14 AM, Stan Hoeppner wrote:

> Usman Ajmal put forth on 3/26/2010 6:32 AM:
> > Hi,
> >
> > I have Debian installed on two computers. On one of them it reboots quite
> > finely but I am having following problem with rebooting Debian on my
> second
> > computer.
> >
> > When i type reboot at the linux prompt, following messages appear and
> system
> > hangs up after saying "Restarting System":
>
>
> http://blogs.koolwal.net/2009/08/04/howto-fix-linux-hangfreeze-during-reboots-and-restarts/
>
> --
> Stan
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmas...@lists.debian.org
> Archive: http://lists.debian.org/4bad9436.2090...@hardwarefreak.com
>
>


Re: System hangs while rebooting.

2010-03-26 Thread Stan Hoeppner
Usman Ajmal put forth on 3/26/2010 6:32 AM:
> Hi,
> 
> I have Debian installed on two computers. On one of them it reboots quite
> finely but I am having following problem with rebooting Debian on my second
> computer.
> 
> When i type reboot at the linux prompt, following messages appear and system
> hangs up after saying "Restarting System":

http://blogs.koolwal.net/2009/08/04/howto-fix-linux-hangfreeze-during-reboots-and-restarts/

-- 
Stan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4bad9436.2090...@hardwarefreak.com



Re: System hangs while rebooting.

2010-03-26 Thread Stephen Powell
On Fri, 26 Mar 2010 07:32:31 -0400 (EDT), Usman Ajmal wrote:
> 
> I have Debian installed on two computers. On one of them it reboots quite
> finely but I am having following problem with rebooting Debian on my second
> computer.
> 
> When i type reboot at the linux prompt, following messages appear and system
> hangs up after saying "Restarting System":
>
> 
> *Broadcast message from r...@myname (tty1) (Sun Jan 17 11:23:26 2010)
> 
> The system is going down for reboot NOW!
> INIT: Switching to runlevel: 6
> INIT: Sending processes the TERM signal
> Saving system clock
> Stopping enhanced syslog: rsyslogd.
> Asking all remaining processes to terminate...done.
> Deconfiguring network interfaces...done.
> Cleaning up ifupdown
> Deactivating swap...done.
> [ 31.789103] Restarting System.
> _
> *
> Normally when the sytem is busy "_" sign blinks but "_" at the last line
> above does not blink which shows, the system hanged up. I tried all keys but
> the screen is still frozen at the same point.
> 
> The difference that I noted between my two computers is that I don't have
> ACPI support in the BIOS of the system which is giving me this error whereas
> the BIOS of my first computer do have ACPI support on which Debain do not
> give this Restart hanging problem.
> 
> I have also disabled running the acpid script by running "update-rc.d -f
> acpid remove" but the problem still persists on the second computer.
> 
> Any ideas to solve or get around this problem?
> 
> Thanks a lot.

OK, there are several items here.  First of all, the preferred way to
reboot is to issue

   shutdown -r now;exit

from a virtual console as root or, even better, logout of all sessions
and then use the

   Ctrl+Alt+Delete

key combination on a virtual console (not the X console).  Some Desktop
Environments (such as GNOME) also provide a way to shutdown the system
from their system menus.  "reboot" should not be issued from the command
line.  "reboot" is issued as the final command in the final script
(/etc/rc6.d/S90reboot) run during a clean system shutdown by one of the
above methods.

Second, assuming you are running a stock Debian kernel, ACPI is compiled
into the kernel and runs whether you want it to or not.  However, if
you boot with the kernel boot parameter "acpi=off" you can disable ACPI.

Third, maybe your BIOS doesn't support ACPI, but maybe it supports APM?
If so, you can get some power management function that way.  For example,
if you create a file called /etc/modprobe.d/local with the contents

   options apm power_off=1

and then list apm in /etc/modules, you can get "shutdown -h now" to
power-off the machine.  Finally, check /etc/inittab to make sure that
Ctrl+Alt+Delete is defined properly there.  It should say something
like:

   # What to do when CTRL-ALT_DEL is pressed.
   ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

Note: be *very* careful when editing this file.  A syntax error in this
file may leave you with a system that will not boot.  If you have to
change anything in /etc/modprobe.d or if you have to change
/etc/inittab, you should rebuild your initial RAM filesystem with
update-initramfs and re-run lilo (if lilo is your boot loader).
The changes will take effect upon reboot, and therefore the
*second* reboot after making these changes will show an altered
shutdown behavior.

HTH

-- 
  .''`. Stephen Powell
 : :'  :
 `. `'`
   `-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/1772962498.21840151269618800413.javamail.r...@md01.wow.synacor.com



Re: System hangs while rebooting.

2010-03-26 Thread Bob Cox
On Fri, Mar 26, 2010 at 16:32:31 +0500, Usman Ajmal (syedusmanaj...@gmail.com) 
wrote: 

> I have Debian installed on two computers. On one of them it reboots quite
> finely but I am having following problem with rebooting Debian on my second
> computer.
> 
> When i type reboot at the linux prompt, following messages appear and system
> hangs up after saying "Restarting System":

Not sure if it will help, but it might be useful to enable boot logging
by editing /etc/default/bootlogd

-- 
Bob Cox.  Stoke Gifford, near Bristol, UK.
Please reply to the list only.  Do NOT send copies directly to me.
http://bobcox.com/


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20100326132857.gi14...@bobcox.com



System hangs while rebooting.

2010-03-26 Thread Usman Ajmal
Hi,

I have Debian installed on two computers. On one of them it reboots quite
finely but I am having following problem with rebooting Debian on my second
computer.

When i type reboot at the linux prompt, following messages appear and system
hangs up after saying "Restarting System":


*Broadcast message from r...@myname (tty1) (Sun Jan 17 11:23:26 2010)

The system is going down for reboot NOW!
INIT: Switching to runlevel: 6
INIT: Sending processes the TERM signal
Saving system clock
Stopping enhanced syslog: rsyslogd.
Asking all remaining processes to terminate...done.
Deconfiguring network interfaces...done.
Cleaning up ifupdown
Deactivating swap...done.
[ 31.789103] Restarting System.
_
*
Normally when the sytem is busy "_" sign blinks but "_" at the last line
above does not blink which shows, the system hanged up. I tried all keys but
the screen is still frozen at the same point.

The difference that I noted between my two computers is that I don't have
ACPI support in the BIOS of the system which is giving me this error whereas
the BIOS of my first computer do have ACPI support on which Debain do not
give this Restart hanging problem.

I have also disabled running the acpid script by running "update-rc.d -f
acpid remove" but the problem still persists on the second computer.

Any ideas to solve or get around this problem?

Thanks a lot.