LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 07-07-2003, 08:33 AM   #1
darin3200
LQ Guru
 
Registered: Dec 2002
Distribution: Gentoo!
Posts: 1,153

Rep: Reputation: 45
Post Gentoo Grub problems


I have just finished installing gentoo and now I am having trouble booting to it. I have installed grub into the mbr but everytime I try to boot to it the kernel file cannot be found. Here is what my grub config file looks like
Code:
default 0
timeout 30
splashimage=(hd0,0)/dev/hdd1/grub/splash.xpm.gz

title=Gentoo
root (hd0,0)
kernel (hd0,0)/dev/hdd1/bzImage root=/dev/hdd3
Also, Grub doesn't display the splash image, it just give gray lines up and down and I can barely read grub. How do I fix these problems?
Thanks,
 
Old 07-07-2003, 09:57 AM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
You didn't mention your partitioning scheme.

# How is the hard drive partitioned
fdisk -l
fdisk /dev/hd<X> -l

Installing a bootloader
Multiboot with GRUB Mini-HOWTO
Linux+Win9x+Grub HOWTO

Last edited by fancypiper; 07-07-2003 at 10:03 AM.
 
Old 07-07-2003, 10:16 AM   #3
darin3200
LQ Guru
 
Registered: Dec 2002
Distribution: Gentoo!
Posts: 1,153

Original Poster
Rep: Reputation: 45
/dev/hdd1 is /boot partition
/dev/hdd2 is swap
/dev/hdd3 is gentoo root
 
Old 07-07-2003, 10:19 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally posted by darin3200
/dev/hdd1 is /boot partition
/dev/hdd2 is swap
/dev/hdd3 is gentoo root
no that's complete gibberish i'm afraid....

the docs for grub in the install guide are superb, should be celar that you need something like

splashimage=(hd0,0)/grub/splash.xpm.gz

where hd0,0 is your boot partition.

/dev/hdd1 does not exist at all, it is a block device entry created by devfsd during boot, and does not make any sense. i'd suggest rereading that section....
 
Old 07-07-2003, 10:36 AM   #5
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
To compare, here is my setup for gentoo
/dev/hda2 - /boot
/dev/hda3 - /
/dev/hda8 - /home
/dev/hdb2 - /pub

Code:
fancy@uilleann $ su -
Password: 
Mon Jul  7 11:24am root@uilleann ~ # fdisk -l

Disk /dev/hdc: 255 heads, 63 sectors, 9729 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdc1   *         1      1218   9778072+   c  Win95 FAT32 (LBA)
/dev/hdc2          1218      9729  68370088+  83  Linux

Disk /dev/hda: 255 heads, 63 sectors, 4865 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1      1217   9772056    c  Win95 FAT32 (LBA)
/dev/hda2          1217      1229     99855   83  Linux
/dev/hda3          1230      1676   3590527+  83  Linux
/dev/hda4          1677      4865  25615642+   5  Extended
/dev/hda5          1677      1742    530113+  82  Linux swap
/dev/hda6          1743      2189   3590496   83  Linux
/dev/hda7          2190      2636   3590496   83  Linux
/dev/hda8          2637      3751   8956206   83  Linux
/dev/hda9          3752      4865   8948173+  83  Linux

Disk /dev/hdb: 255 heads, 63 sectors, 4867 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdb1   *         1      1217   9772686    c  Win95 FAT32 (LBA)
/dev/hdb2          1217      4867  29321460   83  Linux
root@uilleann #
My /boot/grub/grub.conf file:
Code:
default=0
timeout=10
splashimage=(hd0,1)/grub/splash.xpm.gz
title Windows 98 Sucky Edition
        rootnoverify (hd0,0)
        chainloader +1
title Red Hat Linux 7.3
        root (hd0,1)
        kernel /vmlinuz-2.4.18-3 ro root=/dev/hda6 hdd=ide-scsi mem=nopentium
        initrd /initrd-2.4.18-3.img
title Mandrake Linux 9.0
        kernel (hd0,6)/boot/vmlinuz root=/dev/hda7 devfs=mount hdd=ide-scsi quiet vga=788 mem=nopentium
        initrd (hd0,6)/boot/initrd.img
title Gentoo Linux
        root (hd0,1)
        kernel (hd0,1)/boot/bzImage root=/dev/hda3 hdd=ide-scsi mem=nopentium
HTH
 
Old 07-07-2003, 12:30 PM   #6
darin3200
LQ Guru
 
Registered: Dec 2002
Distribution: Gentoo!
Posts: 1,153

Original Poster
Rep: Reputation: 45
got it. I was able to change the booting so that I booted into gentoo and used nano to change where my boot image was and I also got my cdrom mounted and working at /mnt/cdrom. I was watching the startup sequence and gentoo was able to load the sis900 module. I made sure to put that in my kernel though so any ideas on this? And, is there any text based browsers for gentoo? Lynx doesn't seem to be on.
 
Old 07-07-2003, 12:38 PM   #7
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
You just haven't installed it as I see it's available:
Code:
uilleann / # emerge -p lynx

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N   ] net-www/lynx-2.8.4.1c  

uilleann / #
Personally, I like links much better.

Did you do the ethernet as a module or directly into the kernel? If you didn't make a module, of course, it can't load it.
 
Old 07-07-2003, 01:28 PM   #8
darin3200
LQ Guru
 
Registered: Dec 2002
Distribution: Gentoo!
Posts: 1,153

Original Poster
Rep: Reputation: 45
Beats me. When I was doing the part in the configuration with the kernel I typed in make menuconfig. This brough me up a text based menu and I selected my card with that.
 
Old 07-07-2003, 01:49 PM   #9
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
You can always look and see what you did.

cd /usr/src/linux
make menuconfig

If you chose <*>, you built into the kernel, if you chose module <M>, you made a module.
 
Old 07-07-2003, 01:51 PM   #10
darin3200
LQ Guru
 
Registered: Dec 2002
Distribution: Gentoo!
Posts: 1,153

Original Poster
Rep: Reputation: 45
I'll go check that out. I also check and I have sis900.o in my /etc/modules.auto load files and that is what isn't booting right on startup. And it is a module in my kernel.

Last edited by darin3200; 07-07-2003 at 02:04 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gentoo... grub problems... "/boot/grub/stage1" exists... no halo14 Gentoo 5 02-06-2011 04:50 PM
grub problems...gentoo on slave jon1117 Linux - Newbie 2 06-22-2004 11:37 AM
Problems installing Gentoo / grub not loading wiredj Linux - Newbie 7 04-11-2004 05:17 PM
Problems with Gentoo install/grub/boot n5k Linux - Newbie 5 03-12-2004 09:29 AM
Gentoo 1.4 x86 grub install problems Joe_Bogarde Linux - Newbie 11 08-20-2003 05:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:44 AM.

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
Open Source Consulting | Domain Registration