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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-30-2004, 08:50 PM
|
#1
|
LQ Newbie
Registered: Oct 2004
Location: NY, USA
Distribution: Mepis | Debian
Posts: 25
Rep:
|
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?
|
|
|
10-30-2004, 09:22 PM
|
#2
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Rep:
|
do any of the other lines say anything interesting ?
how did you configure your kernel ?
yourself or with genkernel ?
|
|
|
10-30-2004, 09:42 PM
|
#3
|
LQ Newbie
Registered: Oct 2004
Location: NY, USA
Distribution: Mepis | Debian
Posts: 25
Original Poster
Rep:
|
No other lines seem interesting, for the configuration, I used genkernel.
Last edited by Kami.JZ; 10-30-2004 at 09:44 PM.
|
|
|
10-30-2004, 11:14 PM
|
#4
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Rep:
|
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 ?
|
|
|
10-31-2004, 08:30 AM
|
#5
|
LQ Newbie
Registered: Oct 2004
Location: NY, USA
Distribution: Mepis | Debian
Posts: 25
Original Poster
Rep:
|
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.
|
|
|
10-31-2004, 10:06 AM
|
#6
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Rep:
|
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.
|
|
|
10-31-2004, 07:57 PM
|
#7
|
LQ Newbie
Registered: Oct 2004
Location: NY, USA
Distribution: Mepis | Debian
Posts: 25
Original Poster
Rep:
|
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
|
|
|
10-31-2004, 09:46 PM
|
#8
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Rep:
|
/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.
|
|
|
11-01-2004, 03:23 PM
|
#9
|
LQ Newbie
Registered: Oct 2004
Location: NY, USA
Distribution: Mepis | Debian
Posts: 25
Original Poster
Rep:
|
It worked, thanks for your responses, I'll try to install Gentoo again through stage 1 this time.
|
|
|
All times are GMT -5. The time now is 10:49 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|