Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
When i shut down my system last, it crashed when closing the desktop (GNOME) and i had to manually reset the machine. Now when i come to boot the system (2.6.7 kernel-smp) it states that the system shut down 'uncleanly' and asks whether I want to do a disk integrity check.
If i say yes, it checks, repairs a few errors then reports a problem at about 80%. It fails and gives me results - 1.6% non-contig. It then drops me to a root shell, if i reboot from there i get the same thing next time i restart.
If i say no, it attempts to boot but hangs after a few mins. It tries to apply an IA32 Microcode update, and hangs during that.
As far as performing maintenance while in a root shell goes, i'm relatively new to linux (2 months) and don't know where to start.
I also cannot enter interactive startup.
I will reply posting the actual error messages i get ASAP (running a dual boot Linux/WinXP).
Distribution: At home: Arch, OpenBSD, Solaris. At work: CentOS, Debian, Ubuntu
Posts: 3,625
Rep:
When you're in the root shell run fsck with no arguments on ther partition the boot is hanging up on. Chances are there's some error in that filesystem which fsck doesn't want to correct automatically, so it will ask you whether or not to fix it. Say yes unless you really know what you're doing.
The system was last shutdown uncleanly.
Press Y to check filesystem integrity...2 seconds......y
Checking root filesystem:
/1: Deleted inode 669020 has zero dtime. FIXED
/1: Inode 674954, i_blocks is 1736 should be 1720. FIXED
/1: Inode 674990, i_blocks is 240 should be 184. FIXED
/1: 243828/1026144 files (1.6% non-contiguous), 1477073/2048287 blocks
[FAILED]
*** Error ocurred during integrity check, dropping to root shell for maintenance***
Enter root password:
(Repair filesystem) 1#
I will reboot now and do what you suggested - perhaps the above will help?
Just to add to the confusion, when i rebooted to run fsck the disk check completed successfully with no problems and the system proceeded to boot as if i skipped the check. This then takes in the problem with the microcode update thing i mentioned earlier.
Code:
Enabling swap space: [OK]
<6> IA-32 Microcode Update Driver: v1.14 <tigram@veritas.com>
microcode: No new microdata for cpu0
microcode: No new microdata for cpu1
This is where the system hangs, which then brings me back to square one again (lol).
I then rebooted to try what you suggested, the result was:
Adding to the information, I forced the e2fsck utility to check even though it says clean.
The results simply showed that there were no problems - if so, why does the system still claim that it was last shutdown uncleanly (even after halting as normal from the shell)?
Does anyone know of the problem with the IA32 Microcode update - why does it hang then?
And above all, is there a way to force the system to boot as normal (with X) even though it shut down uncleanly? (Perhaps a GRUB command?)
Thanks,
Jamie
P.S - If no-one can shed any light on this matter, can someone suggest where else I should ask for assistance? (I'm going to post to the Fedora-specific forums)
I have the same problem during load up it gets stuck at enabling swap space and it goes no where i even left it overnight to see if it was just taking too long i noticed that the person who posted before me had the same problem but it doesnt say anything on what to do so if someone could help me it would be appreciated???? Thanks I think this might be happening because my computer froze and i had to shutdown manually!!!
Depends on what distribution you are using; I was using Fedora Core 2 which (apparently) has a bug causing this.
I managed to get in by changing the grub.conf file to boot from my old (2.6.6 kernel-smp) kernel. I still cannot get it to load under the latest 2.6.7 kernel.
As for the problems with enabling the swap space; the problem was not with that particular function, it was with the IA32 Microcode Update - a quirk of the 2.6.7 kernel-sm
If you aren't running FC2, it may well be worth creating a new thread - as the title of this one is FC specific.
I am running Fedora Core 2 but it hasnt happened on my laptop i also have it on my laptop!!! How could you edit ur grub file if you cant even boot into the os
When the system cannot boot properly it runs fsck. If that fails then you are dropped to a root shell. You can repair it from there.
The other method is to download a viewer/editor or a windows driver for ext2fs or ext3fs (google it). Then you can mount your linux filesystem in windows and edit its files. (This was my method.)
The second one only works if you are dual booting (which I am); if you directly migrated then i can't help you
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.