Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't get Gentoo to 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
kaotic504
n00b
n00b


Joined: 11 Aug 2004
Posts: 7

PostPosted: Wed Aug 11, 2004 6:10 am    Post subject: Can't get Gentoo to boot!!! Reply with quote

i always get "Disk Boot Failure, Insert System Disk and Press any Key to Reboot" i've tried installing Gentoo about 3 times. and i thought i've corrected my problems everytime. i think i might try to use LILO instead of GRUB but how do i uninstall GRUB?. i'm following the x86 handbook to the T. i'm trying to load Gentoo on a Gigabyte 7DXR+ (AMD761 chipset) w/ a 1.33ghz AMD Athlon T-Bird, D-Link NIC, and an ATI Radeon (7200). that's all that's on my system, beside a TDK 24x cd-rw and a Western Digital 10gb harddrive. i thought i'd load this on spare parts and see how Gentoo is. this is my first install. i want to use the machine for surfing the web, chatting, and maybe a web or ftp server. what should my make.conf look like if i want a KDE or GNOME desktop. i followed the one in the handbook. also if i use the genkernel do i have to "emerge" any more builds for my setup? also if i follow the manual, why does my root partition always show up as an XFS instead of a Ext3? i think that's the only thing that seems odd in my fstab but i make adjustments when i see that. also what should my rc.conf look like? i uncommented a few things at the bottom so that it'll load GNOME and use gde is that incorrect? sorry i have sooo many questions but any help is great appreciated. thanks in advance!
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Wed Aug 11, 2004 6:42 am    Post subject: Re: Can't get Gentoo to boot!!! Reply with quote

Whew, loads of questions!
kaotic504 wrote:
i always get "Disk Boot Failure, Insert System Disk and Press any Key to Reboot" i've tried installing Gentoo about 3 times. and i thought i've corrected my problems everytime. i think i might try to use LILO instead of GRUB but how do i uninstall GRUB?.

You don't have to, LILO will just overwrite it. Same goes for any bootloader - the new one will just overwrite the old one.

kaotic504 wrote:
what should my make.conf look like if i want a KDE or GNOME desktop. i followed the one in the handbook.

I think the default use flags contain arts kde gtk2 gnome, so you don't need to do anything. Then again, even if you've got -qt in your USE flags, you can still emerge it. It only disables support for qt in those programmes that don't need it - if they do, it will get installed regardless of USE flags.

kaotic504 wrote:
also if i use the genkernel do i have to "emerge" any more builds for my setup?

The gentoo install only installs the bare minimum required to create your own system. It doesn't come with X, or a window manager by default - you have to install those manually.

kaotic504 wrote:
also if i follow the manual, why does my root partition always show up as an XFS instead of a Ext3? i think that's the only thing that seems odd in my fstab but i make adjustments when i see that.

XFS is just there as an example. Just change it to ext3 and you should be fine.

kaotic504 wrote:
also what should my rc.conf look like? i uncommented a few things at the bottom so that it'll load GNOME and use gde is that incorrect?

It should be gdm... but otherwise that should be ok. As long as you have emerged gnome, of course... :wink:

Hope this helps!
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
TheX
Guru
Guru


Joined: 31 Jul 2004
Posts: 349
Location: .de

PostPosted: Wed Aug 11, 2004 1:49 pm    Post subject: Is Grub correct installed? Reply with quote

you might have to execute grub and write the mbr to the disk you want to boot..
boot with your live-cd and start grub
then type root (hd0,0)
setup (hd0)
quit
you have to use your hard disk numbers .
hda1 = (hd0,0)
hdb4 = (hd1,3)

the root partition have to be the on where youre kernel is stored


tata..
Back to top
View user's profile Send private message
kaotic504
n00b
n00b


Joined: 11 Aug 2004
Posts: 7

PostPosted: Wed Aug 11, 2004 2:15 pm    Post subject: Reply with quote

Maedhros: if i put "X" in my USE= in my make.conf , is that sufficient? should i put emerge X? also how do i change the XFS to Ext3? just replace it?

TheX: thanks for your suggestion, i'll try that first and see if i can boot, if not, then i'll try to run LILO.

i should be able to use my LiveCD to boot and then run LILO, correct? i'm very new to Linux although I have programmed in ANSI C and C++ on a Sparc before, I just never did anything but code on the consoles.

Thanks for the help, i'll see how everything goes and report back later this evening when i get off of work. very quick answers, THANK YOU!
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Wed Aug 11, 2004 2:56 pm    Post subject: Reply with quote

kaotic504 wrote:
Maedhros: if i put "X" in my USE= in my make.conf , is that sufficient? should i put emerge X? also how do i change the XFS to Ext3? just replace it?

You don't need X in your USE flags - it only enables support when it's optional, like in links IIRC. If you run emerge gnome then emerge will install everything required to run gnome, including X, regardless of USE flags. And as for your /etc/fstab, just use the default as a guide, and then customise it to your system. So change everything that isn't right, basically. :D

kaotic504 wrote:
i should be able to use my LiveCD to boot and then run LILO, correct?

I think with LILO you'll have to mount all your partitions and chroot again before you can change it, but otherwise, yes! Good luck!
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
kaotic504
n00b
n00b


Joined: 11 Aug 2004
Posts: 7

PostPosted: Sun Aug 15, 2004 2:28 am    Post subject: Reply with quote

well i've tried it over and over again, i get further each time. bu this time. i'm stuck when gentoo loads and it goes to :
>>Mounting root...
moutn: MOunting /dev/hda on /newroot failed: Invalid argument
>> Count not mount specified ROOT, try again
>> The root block device is unspecified or not detected.
Please specify a device to boot, or "shell" for a shell...
after that i typed in /dev/hda3
how do i get it to autoboot that device or my root?

it also says:
*Mounting proc at /proc...
*Starting devfsd...
Started device management daemon v1.3.25 for /dev
*Activating (possible) swap
*Remounting root filesystem read-only (if necessary)...
*Checking root filesystem...

Failed to open the device '/dev/ROOT' : No such file or diectory

Warning....fsck.reiserfs for device /dev/ROOT exited with signal 6.
* Filesystem couldn't be fixed :(

then it asks:
Give root password for maintence:

where do i go from here? what file do you think i wrong? i think it might be in my fstab. but i can't be sure. any help on where to go from here?
Back to top
View user's profile Send private message
djm
Arch/Herd Tester
Arch/Herd Tester


Joined: 12 Apr 2004
Posts: 690
Location: Wadham College, Oxford

PostPosted: Sun Aug 15, 2004 12:55 pm    Post subject: Reply with quote

I think you need to change /dev/ROOT in /etc/fstab to your actual root partition (dev/hda3, or whatever)
_________________
the forums.gentoo.org poster formally known as metal leper
Back to top
View user's profile Send private message
Captin
n00b
n00b


Joined: 21 Jan 2004
Posts: 42
Location: Minneapolis, MN

PostPosted: Sun Aug 15, 2004 11:48 pm    Post subject: Reply with quote

I'm having this same problem.

I'm using lilo and when I run
Code:
/sbin/lilo
I get:

Code:
Warning: 'proc/partitions' does not match '/dev' directory structure.
         Name change: '/dev/ide/host0/bus1/target1/lun0/disc' -> '/dev/hdd'
         The kernel was compiled with DEVFS_FS, but 'devfs=mount' was omitted as a kernel command-line boot parameter; hence, the '/dev' directory structure does not reflect DEVFS_FS device names.


in my /etc/fstab I've got
Code:
/dev/hda5      /      ext3         noatime      0 1


anyone have any ideas?

Thanks
Back to top
View user's profile Send private message
kaotic504
n00b
n00b


Joined: 11 Aug 2004
Posts: 7

PostPosted: Mon Aug 16, 2004 2:39 am    Post subject: Reply with quote

thank you so much guys. i figured it out. it was an error in my /etc/fstab and my grub.conf. when i emerged genkernel it gave me parameters at the end that i HAD to have in my grub.conf for it to work. i didn't define the partitions in my /etc/fstab. i left them as "/dev/ROOT", "/dev/BOOT", "/dev/SWAP" well i changed that to "/dev/hda3","/dev/hda1","/dev/hda2" . then in my grub.conf i added vga=0x317 and splash=verbose and defined the "real_root=/dev/hda3" instead of leaving it as "real_root=/dev/hda" after that it worked!!! i'm happy that i've finally got it working. i've tried every night for almost a week to get this correct and was stuck on that last part. i feel like an idiot, but this is a great forum and a great version of linux. well supported and well maintained, that's why i chose it. i could have installed an easier one but i find this is surrounded w/ a lot of support and i don't like to be like a lot of others how use Mandrake and RedHat. thanks for all the help guys.
Back to top
View user's profile Send private message
djm
Arch/Herd Tester
Arch/Herd Tester


Joined: 12 Apr 2004
Posts: 690
Location: Wadham College, Oxford

PostPosted: Mon Aug 16, 2004 8:16 am    Post subject: Reply with quote

Captin wrote:
I'm having this same problem.

I'm using lilo and when I run
Code:
/sbin/lilo
I get:

Code:
Warning: 'proc/partitions' does not match '/dev' directory structure.
         Name change: '/dev/ide/host0/bus1/target1/lun0/disc' -> '/dev/hdd'
         The kernel was compiled with DEVFS_FS, but 'devfs=mount' was omitted as a kernel command-line boot parameter; hence, the '/dev' directory structure does not reflect DEVFS_FS device names.


in my /etc/fstab I've got
Code:
/dev/hda5      /      ext3         noatime      0 1


anyone have any ideas?

Thanks


This means that lilo ran "successfully", but everything isn't as it should be - I used to get this (I think I was using Debian at the time) everytime I ran lilo, but I could still boot to each of the 3 or 4 OSs I had on my drive at the time.

So I don't know how to fix the problem, but it's possible to still boot even if lilo says that...
_________________
the forums.gentoo.org poster formally known as metal leper
Back to top
View user's profile Send private message
Captin
n00b
n00b


Joined: 21 Jan 2004
Posts: 42
Location: Minneapolis, MN

PostPosted: Wed Aug 18, 2004 7:09 pm    Post subject: Reply with quote

Here is everything in my lilo.conf:

Code:
boot = /dev//hda
prompt
timeout=80
default=gentoo
vga=0X317
splash=verbose

image=/boot/kernel-2.4.26-gentoo-r9
     label=gentoo
     read-only
     root=/dev/hda5
     append="init=/linuxrc ramdisk=8192 real_root=/dev/hda5"
     initrd=/boot/initrd-2.4.26-gentoo-r9

other=/dev/hda6
     label=WinXP


If you see anything wrong or want to see what is in my fstab let me know.
Back to top
View user's profile Send private message
djm
Arch/Herd Tester
Arch/Herd Tester


Joined: 12 Apr 2004
Posts: 690
Location: Wadham College, Oxford

PostPosted: Wed Aug 18, 2004 7:33 pm    Post subject: Reply with quote

When you say you're having the same problem as the OP, what exactly do you mean? Just that you can't boot or the same error messages at boot?

What error messages do you get? (and posting your fstab won't hurt, even if it's not the problem)
_________________
the forums.gentoo.org poster formally known as metal leper
Back to top
View user's profile Send private message
Captin
n00b
n00b


Joined: 21 Jan 2004
Posts: 42
Location: Minneapolis, MN

PostPosted: Wed Aug 18, 2004 8:05 pm    Post subject: Reply with quote

O.k. here is my fstab:

Code:
/dev/hda2            /boot       ext2     noauto,noatime     1 2
/dev/hda5            /           ext3     noatime            0 1
/dev/hda3            none        swap     sw                 0 0
/dev/cdroms/cdrom0   /mnt/cdrom  auto     noauto,ro          0 0

none                 /proc       proc     defaults           0 0
none                 /dev/shm    tmpfs    defaults           0 0


As for the error message it used to be:
Code:
>>Mounting root...
moutn: MOunting /dev/hda on /newroot failed: Invalid argument
>> Count not mount specified ROOT, try again
>> The root block device is unspecified or not detected.
Please specify a device to boot, or "shell" for a shell...


But on my latest reboot after messing with lilo.conf a bit I got:

Code:
VFS: Mounted root (ext2 filesystem).
/linuxrc has to be run as the init process as the one
with a PID of 1. Try adding init="/linuxrc".
EXT-fs: ide0(3,5): couldn't mount because of unsupported optional features (4).
sh-2021: reiserfs_read_super: can not find reiserfs on ide0(3,5)
Kernel panic: VFS: unable to mount root fs on 03:05
Back to top
View user's profile Send private message
djm
Arch/Herd Tester
Arch/Herd Tester


Joined: 12 Apr 2004
Posts: 690
Location: Wadham College, Oxford

PostPosted: Thu Aug 19, 2004 8:38 am    Post subject: Reply with quote

As far as I can tell, it's something to do with the "genkernel only" stuff in lilo.conf, but I've never used genkernel, so I'm not sure what the problem is. This is the entry from the hand book though:

Code:
# For genkernel users
image=/boot/kernel-2.4.26-gentoo-r6
  label=gentoo
  read-only
  root=/dev/ram0
  append="init=/linuxrc ramdisk=8192 real_root=/dev/hda3"
  initrd=/boot/initrd-2.4.26-gentoo-r6


Which has root=/dev/ram0, where as yours has root=/dev/hda5 (after the line saying read-only)
_________________
the forums.gentoo.org poster formally known as metal leper
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