Thank you for confirming that the bug still exists.

To fix this problem on my laptop, I had to fix two scripts.

The first script I fixed is /etc/rc0.d/S90halt, where I commented out an "if" 
sequence and then replaced the "halt" command, as noted below:

# Don't shut down drives if we're using RAID.
        #  Eliminate this sequence, assumes RAID and kernel already does this 
for IDE drives
        # hddown="-h"
        # if grep -qs '^md.*active' /proc/mdstat
        # then
        #       hddown=""
        # fi

        # If INIT_HALT=HALT don't poweroff.
        poweroff="-p"
        if [ "$INIT_HALT" = "HALT" ]
        then
                poweroff=""
        fi

        log_action_msg "Will now halt"
        sleep 1
        # halt -d -f -i $poweroff $hddown
        # Not sure what the -d does, but seems to do no harm
        halt -d -f $poweroff

The second script I fixed is /etc/rc6.d where I changed the do_stop function, 
as noted below:

do_stop () {
        # Message should end with a newline since kFreeBSD may
        # print more stuff (see #323749)
        log_action_msg "Will now restart"
        # Remove -i since kernel takes care of IDE drives
        # reboot -d -f -i
        reboot -d -f
}

These two take care of the IDE devices message.

On my laptop, the BIOS is dated 1999, which causes the boot to NOT load ACPI.  
This means that many of the power functions do not work.  To fix that part of 
the problem, I added the a line with "apm power_off=1" to the end of 
the /etc/modules file.  This is shown below with the comments that I added to 
remind me what I did!!  My full /etc/modules file is as follows:

# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.

fuse
lp
# This note is carried over from Kubuntu 7.10
# JHG 2-19-08 Tested /etc/init.d/halt and made changes that are
# related to "halt: ... " message on shutdown; incomplete power off.
# This is O.K. Have corrected S90halt and S90reboot to eliminate 
the "halt: ... "
# notice.  Took out the references to "hddown=", not needed, no RAID.
# Took out reboot -i and halt -i  since kernel takes care of IDE drives.
apm power_off=1

These changes eliminate the "IDE devices" message and allow my laptop to 
completely power down during shutdown.  I hope this helps you somehow.

I thank you for confirming that the error is still in 8.10, so I will save 
these changes and add them back into to my 8.10 -- when I load Intrepid Ibex 
in the next couple of weeks.

John


On Thursday 30 October 2008 22:23:23 Doll wrote:
> I installed the 8.10 version last light, but the bug still exist.
>
> 在08-10-30,吴章辉 <[EMAIL PROTECTED]> 写道:
>
> > Dear Sir,
> >
> > I update the ubuntu from 8.04  to 8.10  with the newest Kernel,
> > But the bug also  exist ,
> >
> > I donot how  to debug,
> > Could you advise what I can do or send some message ?
> >
> > I will install the released Version of 8.10 by CD,
> > If  the bug exist ,I will report immediately.
> >
> >
> > Thanks to your hard works.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > 2008/10/26 Leann Ogasawara <[EMAIL PROTECTED]>
> >
> >> ** Changed in: linux (Ubuntu)
> >>       Status: Incomplete => New
> >>
> >> --
> >> halt:unable to iterate IDE devices:no such files or directory
> >> https://bugs.launchpad.net/bugs/193125
> >> You received this bug notification because you are a direct subscriber
> >> of the bug.
> >>
> >>
> >> Status in "linux" source package in Ubuntu: New
> >>
> >> Bug description:
> >> lsb_release -a
> >>
> >> No LSB modules are available.
> >> Distributor ID: Ubuntu
> >> Description:    Ubuntu 7.10
> >> Release:        7.10
> >> Codename:       gutsy
> >>
> >>
> >> I've looked all over the place for this one, but can't find a solution.
> >> One answer said to add acpi=off, which I did - no change.
> >>
> >> I recently installed Kubuntu 7.10 on my IBM T20 laptop. With all the
> >> other distros I've thrown at this platform, none have ever failed to
> >> properly shutdown and power off. Except for now.
> >>
> >> In Kubuntu I've gone to System Settings -> Advanced -> System
> >> Administration -> Login Manager -> Shutdown tab (in Administrator mode).
> >> I've tried the /sbin/ shutdown, /sbin/stop, /sbin/poweroff, and
> >> /sbin/halt entries for the Shutdown dropdown box. In all cases when I
> >> select "Turn Off" from the logoff menu selection, the GUI shuts down
> >> fine, and all the runs are properly terminated, killed, etc. The message
> >> "Will now halt" is displayed, but instead of powering off another error
> >> type message is displayed that states "halt: unable to iterate IDE
> >> devices: no such file or directory". this is followed by the message
> >> "System halted". The system goes quiet, but the power light is still on
> >> and the screen still has a display of the last messages. At this point I
> >> can press the power button and the power does go off.

-- 
halt:unable to iterate IDE devices:no such files or directory
https://bugs.launchpad.net/bugs/193125
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to