Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
After power outage Gentoo freezes on Boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
JMonkfish
n00b
n00b


Joined: 22 Jan 2004
Posts: 22
Location: San Diego, CA

PostPosted: Sun Feb 27, 2005 1:08 am    Post subject: After power outage Gentoo freezes on Boot Reply with quote

Hi, there was a power outage while I was on vacation, and when I arrived home I found my Gentoo webserver turned-off.

When I booted it up it would boot normally, but stop after it said "Detected PS2 port" or something like that.

I've been working on this webserver for a few weeks now preparing it as an intranet webserver for a client. Normally I would just format the drive and start from scratch, but I literally do not have the time to prepare the system again as the deadline for the project is the 1st of March.

Hoping to solve the problem with one command I simply loaded the webserver with a liveCD, chrooted into my server, and then ran "genkernal all", as I had done previously when compiling the original kernel.

Since then, Gentoo doesn't even boot at all.

It says: "Loading Gentoo..........................."
And then the cursor is on the next line blinking, but that's it.

Any ideas on what caused this problem?


Last edited by JMonkfish on Sun Feb 27, 2005 1:17 am; edited 1 time in total
Back to top
View user's profile Send private message
evoweiss
Veteran
Veteran


Joined: 07 Sep 2003
Posts: 1678
Location: Edinburgh, UK

PostPosted: Sun Feb 27, 2005 1:14 am    Post subject: Re: After power outage Gentoo freezes on Boot Reply with quote

JMonkfish wrote:
Hi, there was a power outage while I was on vacation, and when I arrived home I found my Gentoo webserver turned-off.

When I booted it up, it would boot normally, but stop after it said, "Detected PS2 port" or something like that.


What file system were you running? XFS can lead to corrupted file systems if you have power outages (happened to me, though it took a few before the system became unusable).

Best,

Alex
Back to top
View user's profile Send private message
JMonkfish
n00b
n00b


Joined: 22 Jan 2004
Posts: 22
Location: San Diego, CA

PostPosted: Sun Feb 27, 2005 1:15 am    Post subject: Reply with quote

/dev/hda1 = ext2
/dev/hda3 = reiserfs
Back to top
View user's profile Send private message
evoweiss
Veteran
Veteran


Joined: 07 Sep 2003
Posts: 1678
Location: Edinburgh, UK

PostPosted: Sun Feb 27, 2005 1:25 am    Post subject: Reply with quote

Hey,

JMonkfish wrote:
/dev/hda1 = ext2
/dev/hda3 = reiserfs


Guess that wasn't the case. Did you think of trying to recreate the boot partition and then re-compiling and re-installing the kernel? That shouldn't take very long.

Best,

Alex
Back to top
View user's profile Send private message
JMonkfish
n00b
n00b


Joined: 22 Jan 2004
Posts: 22
Location: San Diego, CA

PostPosted: Sun Feb 27, 2005 1:27 am    Post subject: Reply with quote

Yeah, that's why I ran "genkernel all" again.. which I presume would reinstall the kernel again.

Do I need to re-partition the boot partition?
Back to top
View user's profile Send private message
evoweiss
Veteran
Veteran


Joined: 07 Sep 2003
Posts: 1678
Location: Edinburgh, UK

PostPosted: Sun Feb 27, 2005 1:34 am    Post subject: Reply with quote

JMonkfish wrote:
Yeah, that's why I ran "genkernel all" again.. which I presume would reinstall the kernel again.

Do I need to re-partition the boot partition?


I don't use genkernel, so I don't know whether it automatically installs the kernel or not, you're best off looking at the docs to see whether that's the case. In any event, if I were you I'd first try just creating a new kernel and using that. If that doesn't work, try re-creating the boot partition. Have you thought of scanning it for errors using one of the file system tools? If you do this, boot into the livecd first.

Best,

Alex
Back to top
View user's profile Send private message
JMonkfish
n00b
n00b


Joined: 22 Jan 2004
Posts: 22
Location: San Diego, CA

PostPosted: Sun Feb 27, 2005 1:39 am    Post subject: Reply with quote

Code:
livecd root # umount /dev/hda1
livecd root # fsck /dev/hda1
fsck 1.35 (28-Feb-2004)
e2fsck 1.35 (28-Feb-2004)
/dev/hda1 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/hda1: 18/10040 files (11.1% non-contiguous), 5484/40128 blocks

Yeah, I am going to manually configure the kernel now and see what happens.[/code]
Back to top
View user's profile Send private message
evoweiss
Veteran
Veteran


Joined: 07 Sep 2003
Posts: 1678
Location: Edinburgh, UK

PostPosted: Sun Feb 27, 2005 1:42 am    Post subject: Reply with quote

JMonkfish wrote:
Yeah, I am going to manually configure the kernel now and see what happens.


Good luck... it seems intimidating, but, in all honesty, it's not hard at all. If in doubt just use the help feature and follow the advice :).

Best,

Alex
Back to top
View user's profile Send private message
JMonkfish
n00b
n00b


Joined: 22 Jan 2004
Posts: 22
Location: San Diego, CA

PostPosted: Sun Feb 27, 2005 4:27 am    Post subject: Reply with quote

Code:
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28-gentoo-r5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586  -DMODULE  -nostdinc -iwithprefix include -DKBUILD_BASENAME=dn_neigh  -c -o dn_neigh.o dn_neigh.c
dn_neigh.c:584: error: `THIS_MODULE' undeclared here (not in a function)
dn_neigh.c:584: error: initializer element is not constant
dn_neigh.c:584: error: (near initialization for `dn_neigh_seq_fops.owner')
make[2]: *** [dn_neigh.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.28-gentoo-r5/net/decnet'
make[1]: *** [_modsubdir_decnet] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.28-gentoo-r5/net'
make: *** [_mod_net] Error 2
livecd linux #

What in the world is this error?
Back to top
View user's profile Send private message
JMonkfish
n00b
n00b


Joined: 22 Jan 2004
Posts: 22
Location: San Diego, CA

PostPosted: Sun Feb 27, 2005 4:31 am    Post subject: Reply with quote

Code:
make[2]: Leaving directory `/usr/src/linux-2.4.28-gentoo-r5/net/decnet'

Well, I don't think I need DECnet support so I just removed module support for it and am compiling the kernel again.
Back to top
View user's profile Send private message
evoweiss
Veteran
Veteran


Joined: 07 Sep 2003
Posts: 1678
Location: Edinburgh, UK

PostPosted: Sun Feb 27, 2005 4:35 am    Post subject: Reply with quote

Hi,

JMonkfish wrote:
Code:
gcc -D__KERNEL__ -I/usr/src/linux-2.4.28-gentoo-r5/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i586  -DMODULE  -nostdinc -iwithprefix include -DKBUILD_BASENAME=dn_neigh  -c -o dn_neigh.o dn_neigh.c
dn_neigh.c:584: error: `THIS_MODULE' undeclared here (not in a function)
dn_neigh.c:584: error: initializer element is not constant
dn_neigh.c:584: error: (near initialization for `dn_neigh_seq_fops.owner')
make[2]: *** [dn_neigh.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.28-gentoo-r5/net/decnet'
make[1]: *** [_modsubdir_decnet] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.28-gentoo-r5/net'
make: *** [_mod_net] Error 2
livecd linux #

What in the world is this error?


I'm not sure, really. Given that it's looking for a 2.4 version of the kernel and I assume you're compiling a 2.6 kernel, my best guess is that /usr/src/linux isn't pointing to the directory that has the correct version of the kernel.

Check by using ls -la /usr/src/linux and see whether the directory it points to matches up with the directory containing the kernel you wish to compile. If it doesn't, just do the following:

Code:

rm /usr/src/linux
ln -s [directory with source code] linux


Then go into the linux directory and start the compilation process.

Did you read the documentation on configuring and compiling kernels thoroughly? If you follow that step-by-step you ought to be alright.

Alex
Back to top
View user's profile Send private message
evoweiss
Veteran
Veteran


Joined: 07 Sep 2003
Posts: 1678
Location: Edinburgh, UK

PostPosted: Sun Feb 27, 2005 4:37 am    Post subject: Reply with quote

Hi,

JMonkfish wrote:
Code:
make[2]: Leaving directory `/usr/src/linux-2.4.28-gentoo-r5/net/decnet'

Well, I don't think I need DECnet support so I just removed module support for it and am compiling the kernel again.


I just noticed that, so you might want to ignore my previous email.

Might I ask why you're compiling a 2.4 kernel (if that's what you are doing?)

Alex
Back to top
View user's profile Send private message
JMonkfish
n00b
n00b


Joined: 22 Jan 2004
Posts: 22
Location: San Diego, CA

PostPosted: Sun Feb 27, 2005 4:44 am    Post subject: Reply with quote

i just used "emerge gentoo-sources" to get the most stable kernel. I've read elsewhere that although 2.6 is "good", 2.4 is still recommended for production purposes.
Back to top
View user's profile Send private message
JMonkfish
n00b
n00b


Joined: 22 Jan 2004
Posts: 22
Location: San Diego, CA

PostPosted: Sun Feb 27, 2005 6:21 pm    Post subject: Reply with quote

Hey, thanks for all your help Alex.

The new kernel works great, but there is another strange problem now:

During the boot sequence it "checks" the root filesystem, but it can't find the file /etc/devfs.d
But it asks me to enter the root password to enter "maintanence" mode, but what is strange is that when I do enter, I'm inside my root fs. So, I have no idea what's wrong with it, but it's just too unstable to really use.

And as I'm truly approaching my deadline I've decided to simply rent a webhost and get to scripting today.

Again, thanks for your help, and I can at least say that I've learned quite a bit through this disaster ;)
Johnathan
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum