You are not logged in.
Hi, I've been using Arch on my netbook for the last couple of months with great results until just now....
Yesterday everything was going great guns, then I booted a different distro (remixOS) from a persistant usb install. After a few hours I rebooted Arch but it hung shortly after entering init runlevel 3, whilst trying to start the laptop-mode daemon. I read about a laptop-mode related bug that prevented users from booting and, believing that laptop-mode was the culprit, booted into a Linux Mint live session and edited my rc.conf daemons array.
However this has not solved the problem, my machine now just hangs at "Starting crond daemon" with a [BUSY] message on the right hand side of the screen and the cursor frozen.
What should I do? I use this machine for school and I don't want to reinstall, I'd prefer to learn about the issue and fix the problem myself.
Sorry if this is the wrong place for this thread, I've searched extensively but haven't found anything that matches my problem and other threads about chrooting and init runlevels are too loaded with jargon for me to comprehend at this point.
Thanks for reading about my problems.
Toby.
Last edited by TobyJamesJoy (2012-07-28 04:16:39)
Offline
Sorry if this is the wrong place for this thread, I've searched extensively but haven't found anything that matches my problem and other threads about chrooting and init runlevels are too loaded with jargon for me to comprehend at this point.
chrooting is not that difficult. Don't be intimidated! Besides, sometimes it's the only way you can fix a buggered system.
Likewise, switching runlevels is fairly easy. If you're using grub, press "e" to edit your Arch boot settings, find the kernel line, press "e" again, and then arrow over to the end of the line and append a "1", e.g.:
kernel /vmlinuz-linux root=/dev/sda6 ro 1Then press "b" to boot to runlevel 1. You can switch back to multi user by typing:
# init 3Perhaps you could edit your DAEMONS array and disable or remove crond then try booting to multi-user mode?
He who has no .plan has small finger.
~Confucius on UNIX.
Offline
Perhaps you could edit your DAEMONS array and disable or remove crond then try booting to multi-user mode?
Hey there Zancarius, thanks for replying, I tried this but after switching back to runlevel 3 the system froze again on this message:
INIT: Sending processes the KILL signalIt seems to be a problem with entering runlevel 3 rather than with my daemons array.. But I am kind of clueless.
Thanks for encouraging me to try out that intimidating stuff, it really wasn't so very hard at all, it's just nerve-wracking messing around with stuff so far away from the home directory.
Offline
Alternatively you could background the crond daemon by adding a "@" in front (i.e. @crond).
Post your /etc/inittab (use pastie.org).
Last edited by DSpider (2012-07-27 08:35:53)
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
@DSpider - thanks for the '@' tip, does that disable/blacklist the daemon or is backgrounding different?
Offline
haha, ok. maybe i should do some more general wiki searches rather than nagging everyone on the forum.
Offline
So I've been reading about init runlevels and the like, plus tried booting with the crond daemon started in the background but I'm still left scratching my head....
Does anyone have a good idea of what's going on here? A hand would be much appreciated, I'd love to have my machine up and running again some time this weekend so I can get some study done! (joy of joys)
Last edited by TobyJamesJoy (2012-07-27 17:25:17)
Offline
Is it just your cron daemon that's causing problems or do other things break when you disable it (!) or background it (@)? In other words, is the boot process able to continue unabated without cron or does the next daemon in the array cause a freeze as well?
The best thing at this point is probably to start looking through your logs. You might glean something useful from /var/log/everything.log or /var/log/boot (though the latter won't always help much since you already know there's a problem). If you can boot just fine without crond running, perhaps you could try running it from the terminal by hand (if you're using Cronie, -n will keep it in the foreground; cron(8)).
Is your system also up to date? If not, you might want to perform a full update (you can do this from a chroot if your system refuses to boot).
He who has no .plan has small finger.
~Confucius on UNIX.
Offline
Is it just your cron daemon that's causing problems or do other things break when you disable it (!) or background it (@)? In other words, is the boot process able to continue unabated without cron or does the next daemon in the array cause a freeze as well?
The best thing at this point is probably to start looking through your logs. You might glean something useful from /var/log/everything.log or /var/log/boot (though the latter won't always help much since you already know there's a problem). If you can boot just fine without crond running, perhaps you could try running it from the terminal by hand (if you're using Cronie, -n will keep it in the foreground; cron(8)).
Is your system also up to date? If not, you might want to perform a full update (you can do this from a chroot if your system refuses to boot).
No I believe it's something else because now it just hangs on acpid...
My system could probably use an update, by full update you mean pacman -Syu?
Logs, cool, I should learn a thing or two from that excercise, but it'll have to wait for tomorrow as it's four in the morning over here....
Thanks for the tips, I'll let you know how it goes.
Offline
I wonder if removing 'quiet' from the kernel paramaters would be of any value at that point. I seem to recall when some setting was depreciated from rc.conf (VERBOSE [?]) I got a few messages during init that I wasn't used to seeing and went away when I added 'quiet'.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
No I believe it's something else because now it just hangs on acpid...
My system could probably use an update, by full update you mean pacman -Syu?
Logs, cool, I should learn a thing or two from that excercise, but it'll have to wait for tomorrow as it's four in the morning over here....Thanks for the tips, I'll let you know how it goes.
Also, it might be worth rebuilding your initrd images and so forth from the chroot just in case one of those other distros did something unusual. Just do something like:
mkinitcpio -p linux...assuming you're not running a custom kernel, of course.
Since this may not solve your problem (neither is an -Syu guaranteed to fix it, but you should do that as soon as you can), some of the long time Arch users who will be better able to help you might also be interested in how your system is structured. In particular, supply answers to the following:
- Are you using a separate /boot partition that isn't automatically mounted (post your /etc/fstab) that might have caused issues with a recent update?
- Are you using grub/grub2/syslinux installed from Arch? If so, post the relevant configs.
- Since this is a netbook, did you have to change any kernel options for ACPI support? As alphaniner suggested, you might want to at least check your kernel options for a quiet flag. If it's there, try removing it and boot your system. Also check the "kernel" line for any other unusual options.
- You might also want to check for .pacnew files if your last update was performed quite some time ago. There are some convenience tools listed on the wiki to simplify the process. Bear in mind that this will not be related to your problem, but it is nevertheless important to keep Arch maintained and up to date--this includes configuration files, too. If nothing else, ignoring these can potentially complicate already existing issues especially if a critical package has been updated and its out-of-the-box configuration changed.
Last edited by Zancarius (2012-07-27 19:11:29)
He who has no .plan has small finger.
~Confucius on UNIX.
Offline
Haha, mkinitpcio -p linux worked! Posting from Arch! Thanks so much Zancarius!
I have tried to pacman -Syu but i have a dependancy cycle with lib32-gcc-libs and gcc-libs-multilib but that's most likely covered in another thread.
I did get some colourful error messages in my boot too so here's my /etc/fstab:
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
#UUID=53179f40-1835-4002-9458-eb203d6473df / ext4 defaults 0 1
#UUID=90cccc7f-855d-426b-a6f4-6c068553246e /boot ext2 defaults 0 2
#UUID=be0bb777-0bae-4150-a07a-7f1e7d9d7cdf /home ext4 defaults 0 2
#UUID=c19fa952-22af-41b2-a761-e90190637b54 swap swap defaults 0 0
UUID=53179f40-1835-4002-9458-eb203d6473df / ext4 defaults 0 1
UUID=90cccc7f-855d-426b-a6f4-6c068553246e /boot ext2 defaults 0 1
UUID=be0bb777-0bae-4150-a07a-7f1e7d9d7cdf /home ext4 defaults 0 1
UUID=c19fa952-22af-41b2-a761-e90190637b54 swap swap defaults 0 0And a link to my /boot/grub/menu.lst which was indeed installed from arch.
- Since this is a netbook, did you have to change any kernel options for ACPI support? As alphaniner suggested, you might want to at least check your kernel options for a quiet flag. If it's there, try removing it and boot your system. Also check the "kernel" line for any other unusual options.
I know that there is a quiet flag in my kernel options because I noticed it when I was experimenting with switching the runlevels via grub but I'm not certain where to find my kernel line, nor what constitutes "unsusual options". I'm pretty sure I didn't change anything for ACPI support but maybe some laptop-mode-tools stuff did someting, I can't be sure...
Offline
Haha, mkinitpcio -p linux worked! Posting from Arch! Thanks so much Zancarius!
I have tried to pacman -Syu but i have a dependancy cycle with lib32-gcc-libs and gcc-libs-multilib but that's most likely covered in another thread.
Well, my mind's a bit boggled. Sounds like it might've been from an update or simple oversight. I've had issues with mkinitcpio not generating the correct initrd--once from my own mistake (not updating mkinitcpio.conf correctly) and once from it running but apparently not including LVM even though I instructed it to. (I suspect the latter might've also been from an oversight on my part.)
Here's a thread that might help with the lib32-gcc-libs/gcc-libs-multilib issue.
I did get some colourful error messages in my boot too so here's my /etc/fstab:
Assuming your UUIDs are correct, your fstab looks fine. The only change that you might need is to set the pass field (last number) for /boot and /home to 2 (see fstab(5)), but that wouldn't cause your problems.
Unless the kernel is screaming at you, you may occasionally see some things on boot that happen to be harmless. No biggy. :)
And a link to my /boot/grub/menu.lst which was indeed installed from arch.
I know that there is a quiet flag in my kernel options because I noticed it when I was experimenting with switching the runlevels via grub but I'm not certain where to find my kernel line, nor what constitutes "unsusual options". I'm pretty sure I didn't change anything for ACPI support but maybe some laptop-mode-tools stuff did someting, I can't be sure...
The boot looks fine, especially since mkinitcpio fixed your problem. "Unusual options" in this case would be things like turning off various kernel features or passing in options to change behavior--you'd know them if you saw them. You don't have them, so it's nothing to worry about.
Good to know that solved your problem. Don't forget to mark your thread [solved] too!
Edit: Whoops! I think you caught the [solved] before I did. Sorry! :)
Last edited by Zancarius (2012-07-28 04:37:16)
He who has no .plan has small finger.
~Confucius on UNIX.
Offline
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
#UUID=53179f40-1835-4002-9458-eb203d6473df / ext4 defaults 0 1
#UUID=90cccc7f-855d-426b-a6f4-6c068553246e /boot ext2 defaults 0 2
#UUID=be0bb777-0bae-4150-a07a-7f1e7d9d7cdf /home ext4 defaults 0 2
#UUID=c19fa952-22af-41b2-a761-e90190637b54 swap swap defaults 0 0
UUID=53179f40-1835-4002-9458-eb203d6473df / ext4 defaults 0 1
UUID=90cccc7f-855d-426b-a6f4-6c068553246e /boot ext2 defaults 0 1
UUID=be0bb777-0bae-4150-a07a-7f1e7d9d7cdf /home ext4 defaults 0 1
UUID=c19fa952-22af-41b2-a761-e90190637b54 swap swap defaults 0 0Remove the commented part and use spaces and the Tab key to align them properly. Because it's very difficult to read...
The examples from here are much easier to read: https://wiki.archlinux.org/index.php/Fstab
And yes, only the "/" partition needs "1" at the end. Everything else should have "2" or "0".
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline