LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-28-2008, 05:05 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Question Hal freezes boot sequence


I'm getting weirdness from Hal on Slack 12.0 and I'm looking for a pointer.
There was recent Disk trouble, (Partition table, then e2fsck). I use runlevel 3

Symptoms: boots to displaying the line (/etc/rc.d/rc.hald)
"Starting Hal daemon /usr/sbin/hald --daemon=yes" (which is normal)
The disk goes for half a second, (cups is next)then noticably stops. Keyboard and boot are frozen. Reset required.

To make a long story boring, I added a few echo commands, decided it was Hal, & reinstalled it (upgradepkg --reinstall), then commented it out in /etc/rc.d/rc.M as none of this helped.

Once it boots, I can log in as root and run "/etc/rc.d/rc.hald start" and the process completes with no errors :-o. No errors show in the logs, but there is a load of binary in /var/log/messages at one point.

Any suggestions welcome. Hal is something I know little about, despite being a hardware guy.

Last edited by business_kid; 03-28-2008 at 05:07 AM.
 
Old 03-28-2008, 07:49 AM   #2
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
I don't have a reason ,... but I have a fix. ..
just background it ... I did it for booting up faster ... e.g :

Quote:
echo "Starting HAL daemon: /usr/sbin/hald &--daemon=yes"
/usr/sbin/hald --daemon=yes &
 
Old 03-28-2008, 08:16 AM   #3
ledow
Member
 
Registered: Apr 2005
Location: UK
Distribution: Slackware 13.0
Posts: 241

Rep: Reputation: 34
Sounds like a dependency problem - something is loading before a module that it needs, but your normal boot loads that module and therefore lets you run HAL successfully.

Chances are that you're trying to do something before all filesystems (including things like /sys and /proc) are mounted, before SCSI/IDE drivers are loaded etc., trying to assign IP's before interfaces are even present etc.

That's why it just hangs when you run HAL - it's missing something critical - it might not be able to find the module because the /lib/modules folder isn't loaded yet (e.g. on a different drive, on a different controller, on a different filesystem), it might not be able to access /sys, /proc etc. properly, it might be missing drivers for entire buses that get loaded later (e.g. SCSI, PCMCIA etc.). But when you do a normal boot, it loads whatever is missing and you can run HAL successfully. Anything loading by manual modules in rc.modules? Tried loading on a huge kernel without any modules? Tried without any binary modules that might be tainting the kernel?

But to be honest none of that will really help you because the problem is most likely that you have a corrupt filesystem - "There was recent Disk trouble" and "there is a load of binary in /var/log/messages at one point" just scream file corruption to me. If one of your modules is corrupted, this will happen. Post logs but to be honest, I'd be reinstalling onto a blank disk if that were me.
 
Old 03-29-2008, 07:10 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Thanks for the reply.

I agree with you on corruption, but not a lot was corrupted. I've been here before, and it really wasn't bad enough to reinstall.

I'm lazy about reinstalling, and do not wish to update or to do anything drastic simply because one daemon misbehaves. Boot order has been static throughout, and I've not been messing. Hal comes fairly late in the boot sequence, long after filesystems are mounted. Hal only seems to depend on dbus, but it grabs all the hardware info. The output of lshal |less shows that.
So I can give up right away. I've a Via chipset with the following issues:
1. USB is dodgy - 2 ports give out unwanted log spam and this box finally helped to run down a years old issue in ehci-hcd. There is now a modprobe.conf option
option ehci_hcd ignore_oc=1 to jettison overcurrent change warnings
2. ACPI is dodgy, and best disabled.
3. The Via apic is notably broken and hands out the same 2 halfassed irqs to everything if it's let. So I have it disabled at boot.
4. The PS/2 port is blown away and the floppy is dodgy. It appeared to die recently, although it is back with us, Could have been a cable issue, but . . .
5 Aside from that, and the hard drive occasionally crashing it's firmware in crazy circumstances, we are reasonably reliable. See why I'm giving up :-)?

I also have this issue: 6. Life is short.

So rather than thinking, I'll gradually move it later in the boot process and see if I can find another startup it will work after, but not before. THAT will point a finger, and it saves thinking.

Thanks very much for your ideas.
 
Old 03-29-2008, 07:13 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,286

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Quote:
Originally Posted by duryodhan View Post
I don't have a reason ,... but I have a fix. ..
just background it ... I did it for booting up faster ... e.g :
That's excellent! I will probably try and run this down, but I can think of many places where that would help :-D. My brain is cold today.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hal daemon loading twice, system freezes at boot oblador Slackware 2 11-01-2007 06:36 AM
Boot freezes at "Starting HAL daemon" after Kernel recompile DiBosco Linux - Software 2 04-14-2007 05:53 AM
First boot sequence freezes with several deprecation warnings. linuxguy0102 Linux - Newbie 4 07-19-2006 02:05 PM
fedora core 2 (FC2) freezes while running. Cannot boot into KDE it freezes mraswan Fedora 0 05-25-2004 07:46 PM
HELP. Boot sequence freezes g1bb0ns Linux - General 1 05-20-2003 12:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration