Dear friens:

Thanks to the great troubleshooting efforts of Pierre Fortin, we have a
new "halt" file to replace the /etc/rc.d/init.d/halt file IN CASE YOU
HAVE HAD A PROBLEM SHUTTING DOWN YOUR SYSTEM. 

If your shutdown works fine, i.e. without any error messages, with all
OK check marks and ending properly with all filesystems unmounted
("System halted"), then skip this. This bug may or may not affect all LM
8.0 users. It was a serious problem for me. So, it may affect your
system, too. My system consists of an AMD K6-2, 400 MHz, 128 megs of RAM
and LM 8.0.

On the other hand, if you have a problem with shutdown, try Fortin's
modified version of "halt."

This new "halt" file also takes into consideration any supermount you
might have in /etc/fstab (usually /mnt/cdrom, /mnt/floppy and /mnt/zip)

The problem seems to have something to do with LM 8.0's /boot partition.
This may involve a kernel bug, according to Fortin.

Before you do anything, rename the halt file that's on your system (just
in case) as follows:

[init.d]#mv halt halt.old

WHERE TO GET THE NEW HALT FILE:

You can get the new "halt" file at:

http://www.pfortin.com/

(bottom of page)

First, cd to /etc/rc.d/init.d/

To save it, hold the SHIFT key while clicking on the "halt" link and
choose Save as. The file name will appear in your browser.

After saving it, open up a console or xterm and copy the file as
follows:

[home/user]#cp halt /etc/rc.d/init.d/halt

Now, you MUST change the permissions on the file as follows:

[init.d]#chmod 755 halt

Or, from your home directory:

[user/home]#chmod 755 /etc/rc.d/init.d/halt

(Either way will work)

NOW REBOOT to allow the new changes to take effect. Ignore any error
messages at this point. 

After you reboot to the console (runlevel 3) or directly to your GUI
(KDE, Gnome, etc), insert a zip cartridge into your zip drive, a floppy
into your floppy drive and a CD into your cd drive (yes, all
simultaneously). Now, test the new "halt" script by shutting down your
system with:

#shutdown -h now

The shutdown should be perfect with all green OK and you should be able
to see the new script unmount each partition INDIVIDUALLY:

DEBUG: Unmounting /home OK
DEBUG: Unmounting /zip OK
DEBUG: Unmounting /floppy OK
DEBUG: Unmounting /cdrom OK
DEBUG: Unmounting /boot OK

etc.

The script should end with either just the last line above ("Unmounting
/boot OK") or else with

"System halted"

or with 

"Power down."

Now, be sure you remove your floppy (if your floppy is, as usual, the
first drive indicated in your BIOS). 

Fortin's "halt" script should also work better with rebooting your
system (Cnt+Alt+Del or "shutdown -r now"). Automatica rebooting on my
system does not always work. The majority of times it does. But
sometimes it doesn't. That is, on occasion, it hangs on "Please stand by
while Linux reboots...

Fortin's "halt" script doesn't fully solve the reboot issue. However,
when you manually power down and then power up and reboot, you should
have a perfect reboot without any error messages (all green check marks,
no "cleanly unmounted, check forced" messages which need to be fixed
(with red check marks). Instead, you should see "/hda1 clean" ("hda1" is
my /boot partition).

The same thing happens after a proper shutdown. When you power up, your
bootup should be perfect with all green check marks and "hda1 clean" (or
whatever your /boot partition is called). That's how you can tell that
the new "halt" script is working properly.

All the best.

Benjamin

-- 
Sher's Russian Web
http://www.websher.net
Benjamin and Anna Sher
[EMAIL PROTECTED]

Reply via email to