LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-30-2004, 08:50 PM   #1
Kami.JZ
LQ Newbie
 
Registered: Oct 2004
Location: NY, USA
Distribution: Mepis | Debian
Posts: 25

Rep: Reputation: 15
System hangs at first boot


I just finished installing Gentoo, I use grub as my boot loader, after the installation I restart my computer, then during loading, the system hangs at the line
Code:
hde: attached ide-disk driver
Can anyone help figure this out?
 
Old 10-30-2004, 09:22 PM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
do any of the other lines say anything interesting ?

how did you configure your kernel ?
yourself or with genkernel ?
 
Old 10-30-2004, 09:42 PM   #3
Kami.JZ
LQ Newbie
 
Registered: Oct 2004
Location: NY, USA
Distribution: Mepis | Debian
Posts: 25

Original Poster
Rep: Reputation: 15
No other lines seem interesting, for the configuration, I used genkernel.

Last edited by Kami.JZ; 10-30-2004 at 09:44 PM.
 
Old 10-30-2004, 11:14 PM   #4
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
hmm, strange....

did you set any exotic optimisation compiler flags ?
did you follow the gentoo handbook exactly ?

the problem here, is there are no error messages,
i was going to bring up the possibility you made a mistake configureing the kernel, but genkernel makes a very standard kernel that should work fine.

no error messages on a system that wont boot, this is going to be difficult.
is the freeze exactly the same on each boot ?or is the crash more random ?
 
Old 10-31-2004, 08:30 AM   #5
Kami.JZ
LQ Newbie
 
Registered: Oct 2004
Location: NY, USA
Distribution: Mepis | Debian
Posts: 25

Original Poster
Rep: Reputation: 15
I reinstalled the second time now, with genkernel again, this time the computer freeze at the lines
Code:
* Checking root filesystem...
fsck.ext3: No such file or directory while trying to open /dev/ROOT
/dev/ROOT:
The superblock could not be read or does not describe a correct ext2 file system, If the device is valid and it really contains an ext2 filesystem, then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <Device>
*Filesystem couldn't be fixed :(
Give root password for maintenance
And yes the computer hangs at these lines everytime.
 
Old 10-31-2004, 10:06 AM   #6
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
are you using grub to boot ?
whats your /boot/gub/menu.lst config file contain ?

seems this is just a filesystem error, or missconfigured file.

what filesystem did you use while installing gentoo ?
i assume you chose ext3 ?
did you remeber to install the ext3 tools dureing the gentoo install ?

this is good.... its an easy problem to fix once i know exactly whats wrong.

i suspect its an incorrect boot option, in the grub config file, there should be a line thats says
kernel /path/yo/kernel root=/dev/hda1

i think maybe the root option is set to the wrong partiton.

or maybegenkernel didnt correctly compile ext3 support.

anyways, post the contents or /etc/grub/menu.lst and we can go from there.
 
Old 10-31-2004, 07:57 PM   #7
Kami.JZ
LQ Newbie
 
Registered: Oct 2004
Location: NY, USA
Distribution: Mepis | Debian
Posts: 25

Original Poster
Rep: Reputation: 15
I installed Gentoo in hdb, nothing is connected to hda, and I have XP installed in sda, I try to boot linux from hdb and XP from sda, thus it becomes a little confusing.
Here's my grub.conf
Code:
Default 0
timeout 5
title: Gentoo Linux
root (hd0,0)     #somewhere during the grub install, it says hd0 is hdb, and hd1 is sda
kernel /kernel-2.4.26-gentoo-r6 ramdisk=8192 real_root=/dev/hdb3 init=/linuxrc
Here's my fstab incase somethings wrong with it too
Code:
/dev/BOOT               /boot       ext2       noauto,naotime               1 2
/dev/ROOT               /           ext3       naotime                      0 1
/dev/SWAP               none        swap       sw                           0 0
/dev/cdroms/cdrom0   /mnt/cdrom     auto       noauto,user                  0 0
none                   /proc        proc       defaults                     0 0
none                   /dev/shm     tmpfs      defaults                     0 0
 
Old 10-31-2004, 09:46 PM   #8
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
/dev/BOOT
/dev/ROOT
/dev/SWAP

this looks wrong !
did you create /dev/boot etc as symbolic links to the real location of these partitons ?

/dev/sda..... is this disk an scsi disk or usb or somthing ?!

i thought you IDE hard disks....

replace BOOT ROOT and SWAP with the real locations of the partitons.

/dev/hda1 = primary master partiton 1
/dev/hda2 = primary master partiton 2
/dev/hdb1 = primary slave partiton 1
/dev/hdb2 = primary slave partiton 2
etc etc

you probably dont need to , but it may help changing ext2 and ext3 to auto....
to let linux auto detect the filesystem, just incase those settings are wrong.

from what ive seen, im assuming hdb1 is boot, hdb2 is swap, and hdb3 is root.
anyways, backup the fstab file, make the changes, then try booting that.

im 99% certain that fill fix it.

could it be that the gentoo handbook instructed you to put htings like /dev/BOOT, but is meant for you to replace BOOT with the correct boot partiton ?

this is what seems to have happened.
 
Old 11-01-2004, 03:23 PM   #9
Kami.JZ
LQ Newbie
 
Registered: Oct 2004
Location: NY, USA
Distribution: Mepis | Debian
Posts: 25

Original Poster
Rep: Reputation: 15
It worked, thanks for your responses, I'll try to install Gentoo again through stage 1 this time.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
system hangs every *other* time I boot stephanie_k Fedora 4 05-23-2004 03:08 PM
FC1 boot hangs on dual boot system billlee Fedora 10 05-10-2004 06:34 PM
system hangs after first boot.. lino Linux - Hardware 0 09-23-2003 09:09 AM
Linux system hangs at boot, help.. theraven Linux - Software 2 07-15-2003 11:07 PM
System hangs on boot up lansman Linux - Newbie 1 03-07-2003 09:54 AM


All times are GMT -5. The time now is 04:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration