Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub Error Collection [Part 8] [POST GRUB QUESTIONS HERE!]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 9, 10, 11 ... 27, 28, 29  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Mon Dec 17, 2007 8:13 pm    Post subject: Reply with quote

meulie,

Try emerging grub. I have only seen grub-static used on 64 bit CPUs. Thats because grub is not 64 bit clean, it must be built in a 32 bit environment. grub-static may well include binaries (I don't know) but if it does, it may contain binaries you cannot execute on a 32 bit system.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
meulie
l33t
l33t


Joined: 17 Jun 2003
Posts: 845
Location: a Dutchman living in Norway

PostPosted: Tue Dec 18, 2007 12:02 pm    Post subject: Reply with quote

Eehh, I was planning on using the static-grub binary on another (non-Gentoo) system... 8)

On that system (based on OpenWRT) I need a grub to change the bootloader, but that system does not seem to supply any grub. It compiles one during the build, but that grub does not make it to the final image, it's just used to build that image...
_________________
Greetz,
Evert Meulie
Back to top
View user's profile Send private message
MrUmunhum
n00b
n00b


Joined: 13 Dec 2007
Posts: 17
Location: Mt Umunhum, ca

PostPosted: Tue Dec 18, 2007 8:28 pm    Post subject: Where are you running OpenWRT? Reply with quote

meulie wrote:
Eehh, I was planning on using the static-grub binary on another (non-Gentoo) system... 8)

On that system (based on OpenWRT) I need a grub to change the bootloader, but that system does not seem to supply any grub. It compiles one during the build, but that grub does not make it to the final image, it's just used to build that image...


Meulie,

What system are you running OpenWRT on?

William
Back to top
View user's profile Send private message
meulie
l33t
l33t


Joined: 17 Jun 2003
Posts: 845
Location: a Dutchman living in Norway

PostPosted: Tue Dec 18, 2007 8:57 pm    Post subject: Reply with quote

On an AMD Geode board: http://www.pcengines.ch/alix2c2.htm
_________________
Greetz,
Evert Meulie
Back to top
View user's profile Send private message
the.ant
n00b
n00b


Joined: 26 Dec 2007
Posts: 64

PostPosted: Fri Dec 28, 2007 3:50 pm    Post subject: Reply with quote

Not really a post0grub error message but still quite annoying:

I can't get grub to display a menu, I always get only a fancy bootscreen and the prompt.

It's a fresh install, it followed the instructions from the handbook, the is a grub.cfg as well as a menu.lst in /boot/grub (and just to be sure also in /boot).
They look good and when I do the whole installtion routine (either grub-install or everything by hand) I get no error messages.
Still, when I boot, I only see this empty screen.
If i enter everything then I can start the system, but that's quite a lot to type since I use initramfs and would like to avoid such things.
I can't help this funny feeling that I am probably just missing something very simple but yet essential here.
Any ideas?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Fri Dec 28, 2007 3:58 pm    Post subject: Reply with quote

the.ant,

/boot/grub/menu.lst (thats a lower case letter L) should be a symbolic link to grub.conf.
If the link is satisfied, it will be cyan (pale blue)

You mentioned "grub.cfg" which is a bit non standard but would work if you fix the symlink.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
the.ant
n00b
n00b


Joined: 26 Dec 2007
Posts: 64

PostPosted: Fri Dec 28, 2007 4:26 pm    Post subject: Reply with quote

NeddySeagoon wrote:
the.ant,

/boot/grub/menu.lst (thats a lower case letter L) should be a symbolic link to grub.conf.
If the link is satisfied, it will be cyan (pale blue)

You mentioned "grub.cfg" which is a bit non standard but would work if you fix the symlink.


I believe that it is the a symlink, still doesn't work.
about the grub.cfg I'm not quite sure, I am not at my machine at the moment. I will return now and check...
Back to top
View user's profile Send private message
the.ant
n00b
n00b


Joined: 26 Dec 2007
Posts: 64

PostPosted: Fri Dec 28, 2007 10:10 pm    Post subject: Reply with quote

Indeed, there was no link in the /boot folder. I dont understand how I missed it. Probably too much rebooting and messing with changeroot the last days/nights.

Now it seemed to work better but then I suddenly got the message that I could not emerge anything anymore, despite plenty of room on my slash partition. I read in the forum that this might be an inodes problem, but it looked more like an LVM problem to me. I had extended the partition and according to lvm that went fine but according to df did the system not realize the change. It does not discrimitate between the different partitions and did not notice the expansion at all. Quite annoying.

I have to say, I find the whole gentoo approach and philosophy highly enticing, but I am seriously doubting if I shouldn't rather install suse or ubuntu just to get a working system again. I don't expect everything to go smothly, but by now I am already trying to install gentoo since two days and I still don't even have x running, that is slightly frustrating.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Fri Dec 28, 2007 10:17 pm    Post subject: Reply with quote

the.ant,

Your LVM problem deserves a new thread, since its clearly not a grub issue any more.

Code:
df -i
will show inode use.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
anthonie
n00b
n00b


Joined: 30 Dec 2007
Posts: 10

PostPosted: Sun Dec 30, 2007 2:37 pm    Post subject: First time installer from LiveCD; Almost there, except GRUB Reply with quote

Hi,

I hope I am in the right forum, if not, accept my apologies.

My first posting to the forum here, as I have downloaded the liveCD this afternoon. I did run into some trouble and have actually not been able to run the live CD as X crashed on my ATI 9250 card and I couldn't figure out how to edit xorg.conf in vim. So I did a installer -dialog and after quite a wait Gentoo said to be ready with it's install.

Now the problem is that Gentoo was not mentioned in the Grub and because I have quite a few installations on this machine so I am getting confused as to what path to take from here.

The first problem I have is that I am not sure about the syntax for grub, and I am not sure how to determine where my /root is in hdx terms. Please bear with a noob peasant...



My fdisk -l output looks as follows:

Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1c641c63

Device Boot Start End Blocks Id System
/dev/sda1 * 1 2472 19856308+ 7 HPFS/NTFS
/dev/sda2 2473 3792 10602900 83 Linux
/dev/sda3 4712 4865 1237005 5 Extended
/dev/sda4 3793 4711 7381867+ 83 Linux
/dev/sda5 4760 4865 851413+ 82 Linux swap / Solaris
/dev/sda6 4712 4759 385497 82 Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/sdb: 300.0 GB, 300069052416 bytes
255 heads, 63 sectors/track, 36481 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xbbd94990

Device Boot Start End Blocks Id System
/dev/sdb1 2 36266 291298612+ f W95 Ext'd (LBA)
/dev/sdb2 * 36424 36481 465885 7 HPFS/NTFS
/dev/sdb4 36267 36423 1261102+ 7 HPFS/NTFS
/dev/sdb5 2 28561 229408168+ 7 HPFS/NTFS
/dev/sdb6 28562 29620 8506386 83 Linux
/dev/sdb7 29621 36266 53383963+ 7 HPFS/NTFS

Partition table entries are not in disk order


And menu.lst looks like:

## ## End Default Options ##


title=Gentoo Linux 2.6.19-r5
# Partition where the kernel image (or operating system) is located (/dev/sdb6)
root (hd1,6)
kernel /boot/kernel-2.6.19-gentoo-r5 root=/dev/hdb6

title=Gentoo Linux 2.6.19-r5 (rescue)
# Partition where the kernel image (or operating system) is located
root (hd1,6)
kernel /boot/kernel-2.6.19-gentoo-r5 root=/dev/hdb6 init=/bin/bb


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda2.
title Ubuntu 7.10, kernel 2.6.22-14-generic (on /dev/sda2)
root (hd0,1)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=2ec31d40-e3a3-4fd4-ae4e-7c54dffd7856 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda2.
title Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode) (on /dev/sda2)
root (hd0,1)
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=2ec31d40-e3a3-4fd4-ae4e-7c54dffd7856 ro single
initrd /boot/initrd.img-2.6.22-14-generic
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda2.
title Ubuntu 7.10, memtest86+ (on /dev/sda2)
root (hd0,1)
kernel /boot/memtest86+.bin
savedefault
boot


### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Windows Vista/Longhorn (loader)
rootnoverify (hd0,0)
savedefault
makeactive
chainloader +1

title Linux Mint, kernel 2.6.22-14-generic
root (hd0,3)
kernel /boot/vmlinuz-2.6.22-14-generic root=/dev/sda4 ro quiet splash
initrd /boot/initrd.img-2.6.22-14-generic
boot

title Linux Mint, kernel 2.6.22-14-generic (recovery mode)
root (hd0,3)
kernel /boot/vmlinuz-2.6.22-14-generic root=/dev/sda4 ro single
initrd /boot/initrd.img-2.6.22-14-generic
boot

title Linux Mint, kernel memtest86+
root (hd0,3)
kernel /boot/memtest86+.bin
boot


Booting won't work, because it's not looking at the right partition. I tried 5 and 6, but because
I have no clue whether or not these boot options should be included, I figured I'd humbly ask
for some help...

In the handbook, at the chapter about Grub install, they talk about two different methods, one
grub.conf for non-genkernel users and one for genkernel users. How do I figure out which one I
have as I never actually got to see the live CD?

Could someone point me in the right direction? I am completely new with Gentoo, have some RH/Debian/Mandrake/Ubuntu experience from years ago but not too much. However, I am really interested in this operating system and would
like to learn.

Kind regards,

Anthonie
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Sun Dec 30, 2007 3:02 pm    Post subject: Reply with quote

anthonie,

Welcome to Gentoo. I will add your thread to our grub sticky after I post this.

Grub counts everything from zero, not one as most people do. Disks are counted in the BIOS detection order, that often not what you think, and not even constant, since it can vary with BIOS settings. Keep it in mind for later.

Code:
# Partition where the kernel image (or operating system) is located (/dev/sdb6)
root (hd1,6)
points to sdb7 (grub counts from 0)
If you do not have a separate /boot partition, this should be
Code:
root (hd1,5)


Code:
root=/dev/hdb6
is odd too. Your fdisk shows only /dev/sd... no /dev/hd..

... where did you put your kernel ?

Boot one of your other distros, and do the following commands in a root terminal.
Code:
mkdir /mnt/gentoo
mount /dev/sdb6 /mnt/gentoo
ls /mnt/gentoo/boot
you may need to add -t <fstype> to the mount command
Do you see your Gentoo kernel there?

With multiple distros, its a good idea to have a separate /boot shared by all the the distros and collect all the kernels there.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
anthonie
n00b
n00b


Joined: 30 Dec 2007
Posts: 10

PostPosted: Sun Dec 30, 2007 3:48 pm    Post subject: Reply with quote

[quote] Welcome to Gentoo. I will add your thread to our grub sticky after I post this.[quote]

Thanks!

Quote:
Grub counts everything from zero, not one as most people do. Disks are counted in the BIOS detection order, that often not what you think, and not even constant, since it can vary with BIOS settings. Keep it in mind for later.


That's what I thought, but because I got an error when I tried 5 (first error 17: filesystemtype unknown, part.type 0x83, kernel boot., followed by an error 15: file not found) I thought I was wrong. Well...
Actually, I get to the GRUB of Gentoo then, and when I select the normal Gentoo kernel again, it will give me an error number 18: Selected Cylinders exceeds maximum supported by bios.

Quote:
Boot one of your other distros, and do the following commands in a root terminal.
Code:
mkdir /mnt/gentoo
mount /dev/sdb6 /mnt/gentoo
ls /mnt/gentoo/boot
you may need to add -t <fstype> to the mount command
Do you see your Gentoo kernel there?


Yes, I do! Actually, turns out, the partition that I reserved for Gentoo, is not automatically mounted. So when I tried the above commands in Ubuntu, I first had to mount the partition by hand. When I did that, a cyanide boot turned up and in blue the word grub.

It does look like it's installed. It's more a matter of me learning how to get through the frontdoor, learning to use the right keys on the right locks, etc.

I did not know about the common boot partition for multiple distro's. Sounds like a good plan.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Sun Dec 30, 2007 4:06 pm    Post subject: Reply with quote

anthonie,

Good ... thats progress.

Grub can read at most only one filesystem type (it treats ext3 as ext2) so all the kernels for all your distros must be on the same fs type.
You may not have some on ext3 and others on reiserfs.

Code:
error 17: filesystemtype unknown
is the error you get when you point grub to NTFS or any filesystem except the one it was installed for.
Code:
error 15: file not found
nomally means that the file names in grub.conf (or menu.lst) do not match those in /boot, so the kernel or initrd files cannot be found.

Looking back at your menu.lst, Does the file
Code:
 /boot/kernel-2.6.19-gentoo-r5
exist in your Gentoo partition?
If not, you get error 15.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
anthonie
n00b
n00b


Joined: 30 Dec 2007
Posts: 10

PostPosted: Sun Dec 30, 2007 5:13 pm    Post subject: Reply with quote

Hmm. While I was momentarely rebooting in Windows, I noticed that the 300Gig drive on which the Gentoo resides, was no longer there. And somehow the mountpoint for Gentoo was alle there was left of it. I am getting the feeling that with all these different partitions I am just making life way more difficult than necesary. I think I will ditch an OS or two and than try with a more clean sheet. A tabula rasa!
Back to top
View user's profile Send private message
IRQsRFun
Apprentice
Apprentice


Joined: 02 May 2003
Posts: 195
Location: Somewhere between .3 and .7 Vdd

PostPosted: Tue Jan 01, 2008 5:46 pm    Post subject: MBR partially protected by Ubuntu? Reply with quote

Just for fun, I have installed Ubuntu on /dev/sda4. However I am unable to boot into gentoo:

My hard Drive Partitions (all primary)
/dev/sda1/ Gentoo boot partition
/dev/sda2/ Shared Swap
/dev/sda3/ My Gentoo stuff
/dev/sda4/ Unbuntu and /boot for Unbuntu

My problem is that in all cases I get the Ubuntu Grub Menu and I can not boot to gentoo,

I have tried (fom Unbutu using cfdisk) making /dev/sda1 the only bootable partition, but that does not seem to help. Using cfdisk, when I write the new partition table I get an error stating that the read back of the partition table is not consistant. When I re-run cfdisk, things look OK.

I have also tried (from Unbuntu sudo environment) grub-install.

I have looked in my BIOS for anything that would protect the MBR and have nothing.

The grub configuration files are gentoo grub files and the grub files in sda3 are consistent with Ubuntu.


The only thing I can think to try is to download a gentoo live image and run cfdisk and grub-install from that image. Have I missed anything obvious?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Tue Jan 01, 2008 6:39 pm    Post subject: Reply with quote

IRQsRFun,

Your Ubuntu install has reinstalled grub to the MBR so that it points to its own /boot.

When you install several distros, you should have a single shared /boot and a single grub.conf that allows you to choose which one you will boot. The easiest way forward if for you to copy your Gentoo boot stanzas from Gentoos grub.conf into the Ubuntu one.
You can then boot everything using the Ubuntu grub.conf.

If you want to do it the other way, you will have to reinstall grub to the MBR too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
anthonie
n00b
n00b


Joined: 30 Dec 2007
Posts: 10

PostPosted: Wed Jan 02, 2008 12:58 pm    Post subject: Reply with quote

NeddySeagoon wrote:
anthonie,

Good ... thats progress.


Hi there,

Well, it was progress, but sadly not enough. I decided to wipe all the OS'es that I did not use, apart from being a test surrounding for other people that need help and for some reason come to me. So no more Mint, and no more Vista (Well, Vista is on it's way out) and no more Mandrake (Yes, I know it's old).

What I did do is install the LiveCD 2006.1 (stage3) and that worked like a charm, apart from little details.

Apart from a tiny wishlistI have, and that seems to be more difficult than I hoped for, it's been more than pleasant to be introduced to Gentoo.

For the help so far, thanks!

To come back to your quote: - Progress has halted, primary goal was achieved. ...Smile!

kind regards,

Anthonie
Back to top
View user's profile Send private message
IRQsRFun
Apprentice
Apprentice


Joined: 02 May 2003
Posts: 195
Location: Somewhere between .3 and .7 Vdd

PostPosted: Thu Jan 03, 2008 2:44 am    Post subject: Reply with quote

I was able to get it working by creating a /gentoo-boot directory that I copied my current kernel image to. I then edited the menu.lst file in /boot/grub and added:

title Gentoo
root (hd0,3)
kernel /gentoo-boot/bzImage12 root=/dev/sda3

This is not the solution I wanted, but it works for now. Is there a good reference/article on grub, so that I can better understand what is going on when I run grub-install? I am finding the man and info page a bit terse.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Thu Jan 03, 2008 1:36 pm    Post subject: Reply with quote

IRQsRFun,

When you run grub-install, the code that grub needs outside of the filesystem is being put in place.
Its better to look at the manual method of grub install to explain what happens. Thats the four commands
Code:
grub
root (hdx,y)
setup (hdz)
quit

The grub and quit commands do as you expect, start and stop grub.
Code:
root (hdx,y)
tells grub where to find the files it needs for the install to the MBR. Much like the root (hda,b) in grub.conf sets defualts for the location of the files needed to boot.
Code:
setup (hdx)
does the hard word.
The following files from
Code:
root (hdx,y)/grub
are modified and copied to the MBR.
1. stage1 is copied to the MBR, thats block 0 on
Code:
setup (hdz)

2. stage1.5<boot_fs> is copied to the the blocks following the MBR (and before the start of the first partition)
during this operation one or both files are modified to point to the correct hard drive.

During the boot process, the BIOS loads stage1, stage1 reads stage1.5 and stage1.5 reads root (hdx,y) to find stage2 and stage2 reads the grub.conf to find out what to do, then does it.
Notice that all the stage1.5 files had a filesystem type in their names the correct one is installed at grub-install time, hence grub can read onlt a single filesystem type for booting.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Xach
n00b
n00b


Joined: 03 Jan 2008
Posts: 1

PostPosted: Thu Jan 03, 2008 7:06 pm    Post subject: yet another error 15... Reply with quote

hello all,
ive played around with a couple different distros, most recently opensuse, but now i really really really want to get gentoo running [on my thinkpad t61p].
ive had an incredible time so far with all the troubleshooting and errors that have come up, and now ive finally made it to the boot loader.
when i run the grub installer for my scsi harddrive i get
Code:

sh-3.1# grub-install  --no-floppy /dev/sda
Could not find device for /boot: Not found or not a block device.


and when i try to do it manually

Code:

grub> setup (hd0)
  Checking if "/boot/grub/stage1" exists... no
  Checking if "/grub/stage1" exists... no

Error 15: File not found


and frustratingly enough, when i check for the stage1 file in /boot/boot and /boot/grub it is definitely there!
ive tried the find command within grub and that also doesn't help
Ive gone over loads of other forum posts for Error 15 and Not found or not a block device errors, and read up on all the documentation i could find, and nothing has offered a working solution.

The one inconsistency ive noticed is that there is no bzImage in /boot, or anywhere on my system for that matter. in the install docs you only work with this file when doing a manual kernel install, and i used genkernel. is there possibly something i still need to do to get myself a bzImage (is bzImage just a copy of the compiled kernel?) ?

I realllly appreciate any help
Back to top
View user's profile Send private message
matsumi
n00b
n00b


Joined: 27 Jul 2006
Posts: 5

PostPosted: Thu Jan 03, 2008 7:51 pm    Post subject: grub: "root block device unspecified or not detected&qu Reply with quote

Dear People at Gentoo Forums:
Hello. Please let me ask about grub.conf related question.

Summery: I have installed the system using "Gentoo Linux amd64 2007.0" minimal CD, and grub using "grub-install" script but while booting, "root block device unspecified or not detected" message appears. Please give me clues, hints, url's and/or etc.

error message:
Code:
!!Block device /dev/sda3 is not a valid root device...
!!The root block device unspecified or not detected.

For possibilities, I have specified "/dev/sda2", "/dev/hda3", and "/dev/sda1" but I only received the same message or kernel panic...

My "grub.conf" (by the way, I used genkernel for compiling kernel)
Code:
default 0
timeout 30
splashimage=(hd0,1)/boot/grub/splash.xpm.gz

root (hd0,1)
kernel /boot/kernel-genkernel-x86_64-2.6.23-gentoo-r3 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3 udev
initrd /boot/initramfs-genkernel-x86_64-2.6.23-gentoo-r3


My HDD, partition
Code:
Internal HDD: /dev/sda
/dev/sda1: swap
/dev/sda2(ext3): /boot
/dev/sda3(ext3): /

External via USB: /dev/sdb
/dev/sdb1(xfs): /opt
External via USB: /dev/sdc
/dev/sdc1(jfs): /home


My hardware:
Code:
M/B: GIGABYTE GA-K8N Pro-SLI(nForce4 SLI)
CPU: AMD Athlon64x2 3800+ 2.0GHz [939/F1000/DualCore]
Mem: 1024MB PC-3200[400] DDR-SDRAM BUFFALO
Video: [PE16] 128MB NVIDIA GeForce6600


I appreciate your help and thank you very much in advance.
Best regards,
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Fri Jan 04, 2008 12:35 am    Post subject: Reply with quote

matsumi,

You have a genkernel made kernel. Its likely that your kernel is missing support for your SATA chipset.
Please post your lspci output, so we can tell which kernel option you need. We will just fix your kernel, the rest of the install is ok.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
matsumi
n00b
n00b


Joined: 27 Jul 2006
Posts: 5

PostPosted: Fri Jan 04, 2008 1:55 am    Post subject: Reply with quote

Dear NeddySeagoon,
Thank you very much for your quick response.
Below is my lspci output. Please let me know if need verbose output lspci.

Code:
livecd ~ # lspci
00:00.0 Memory controller: nVidia Corporation CK804 Memory Controller (rev a3)
00:01.0 ISA bridge: nVidia Corporation CK804 ISA Bridge (rev a3)
00:01.1 SMBus: nVidia Corporation CK804 SMBus (rev a2)
00:02.0 USB Controller: nVidia Corporation CK804 USB Controller (rev a2)
00:02.1 USB Controller: nVidia Corporation CK804 USB Controller (rev a3)
00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev f2)
00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev f3)
00:09.0 PCI bridge: nVidia Corporation CK804 PCI Bridge (rev a2)
00:0a.0 Bridge: nVidia Corporation CK804 Ethernet Controller (rev a3)
00:0b.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0c.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0d.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0e.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:07.0 Multimedia audio controller: Creative Labs SB Audigy LS
01:0a.0 FireWire (IEEE 1394): Texas Instruments TSB82AA2 IEEE-1394b Link Layer Controller (rev 01)
05:00.0 VGA compatible controller: nVidia Corporation NV43 [GeForce 6600] (rev a2)
livecd ~ #


Again, thank you in advance.
Best regards,

NeddySeagoon wrote:
matsumi,

You have a genkernel made kernel. Its likely that your kernel is missing support for your SATA chipset.
Please post your lspci output, so we can tell which kernel option you need. We will just fix your kernel, the rest of the install is ok.
Back to top
View user's profile Send private message
matsumi
n00b
n00b


Joined: 27 Jul 2006
Posts: 5

PostPosted: Fri Jan 04, 2008 12:50 pm    Post subject: [SOLVED] grub error and SATA chipset support Reply with quote

Dear NeddySeagoon,

Thanks for your hint.
I re-compiled the kernel with nVidia and AMD SATA chipset support (using "genkernel --menuconfig all") and boot process went okay.
Your advise really helped me. Thank you very much!
Best regards,

matsumi wrote:
Dear NeddySeagoon,
Thank you very much for your quick response.
Below is my lspci output. Please let me know if need verbose output lspci.
<snip>
Back to top
View user's profile Send private message
bhagany
n00b
n00b


Joined: 10 Mar 2007
Posts: 63
Location: Appleton, WI, USA

PostPosted: Sat Jan 05, 2008 6:04 am    Post subject: Grub (and possibly RAID) problem - need another set of eyes Reply with quote

Hello all,

So, I have a few issues that may or may not be related. Some background info: I booted to a LiveUSB and went through most of the normal installation process without a hitch, until it came time to reboot. It begins loading grub and hangs at "GRUB Loading stage1.5". I originally used grub-install, and then I went back and tried doing it manually, with the same result.

So, I tried to reboot back to my USB stick, but that didn't work either. Turns out I have to physically unplug my drive from the motherboard in order to boot to the USB, and yes, I've made sure the boot order in my BIOS is correct more times than I can count. I think this may have something to do with the fact that I messed around with the hardware RAID settings, but I'm pretty sure these settings are all back to normal now. Just thought I'd mention that in case it turns out to be relevant.

Further, I used genkernel in an attempt to make this quick (ha). This is the first time I've done that, so I may be missing something simple there.

Okay, some info:

Code:

(chroot) livecd / # lspci
00:00.0 Host bridge: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge
00:00.1 Host bridge: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge
00:00.2 Host bridge: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge
00:00.3 Host bridge: VIA Technologies, Inc. PT890 Host Bridge
00:00.4 Host bridge: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge
00:00.7 Host bridge: VIA Technologies, Inc. CN700/VN800/P4M800CE/Pro Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8237 PCI Bridge
00:0d.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80)
00:0e.0 Ethernet controller: VIA Technologies, Inc. VT6120/VT6121/VT6122 Gigabit Ethernet Adapter (rev 11)
00:0f.0 RAID bus controller: VIA Technologies, Inc. VIA VT6420 SATA RAID Controller (rev 80)
00:0f.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 81)
00:10.4 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 86)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8237 ISA bridge [KT600/K8T800/K8T890 South]
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 60)
01:00.0 VGA compatible controller: VIA Technologies, Inc. UniChrome Pro IGP (rev 01)


Code:

(chroot) livecd / # lsmod
Module                  Size  Used by
ipv6                  199712  12
bridge                 40604  0
snd_pcm_oss            33312  0
snd_mixer_oss          16000  1 snd_pcm_oss
snd_seq_oss            26112  0
snd_seq_midi_event      7552  1 snd_seq_oss
snd_seq                35408  4 snd_seq_oss,snd_seq_midi_event
pcspkr                  5888  0
sg                     26652  0
eth1394                18308  0
snd_via82xx            23320  0
gameport               12808  1 snd_via82xx
snd_ac97_codec         71712  1 snd_via82xx
snd_ac97_bus            5376  1 snd_ac97_codec
snd_pcm                47364  3 snd_pcm_oss,snd_via82xx,snd_ac97_codec
snd_timer              18180  2 snd_seq,snd_pcm
snd_page_alloc         10248  2 snd_via82xx,snd_pcm
snd_mpu401_uart         8960  1 snd_via82xx
snd_rawmidi            18208  1 snd_mpu401_uart
snd_seq_device          8460  3 snd_seq_oss,snd_seq,snd_rawmidi
snd                    33764  11 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
via_agp                10496  1
agpgart                21972  1 via_agp
i2c_viapro             10004  0
i2c_core               15360  1 i2c_viapro
via_velocity           26500  0
crc_ccitt               5376  1 via_velocity
rtc                    12852  0
tg3                    91652  0
e1000                  94656  0
nfs                    95164  0
lockd                  48392  1 nfs
sunrpc                110012  2 nfs,lockd
jfs                   147948  0
dm_mirror              19152  0
dm_mod                 40344  1 dm_mirror
pdc_adma               10500  0
sata_mv                17672  0
ata_piix               14600  0
ahci                   17796  0
sata_qstor             10756  0
sata_vsc                9988  0
sata_uli                9220  0
sata_sis                9732  0
sata_sx4               14084  0
sata_nv                11268  0
sata_via               11268  7
sata_svw                9348  0
sata_sil24             14852  0
sata_sil               11784  0
sata_promise           12292  0
libata                 67220  15 pdc_adma,sata_mv,ata_piix,ahci,sata_qstor,sata_vsc,sata_uli,sata_sis,sata_sx4,sata_nv,sata_via,sata_svw,sata_sil24,sata_sil,sata_promise
sbp2                   21380  0
ohci1394               30896  0
ieee1394               59576  3 eth1394,sbp2,ohci1394
sl811_hcd              13056  0
usbhid                 35936  0
ohci_hcd               18948  0
uhci_hcd               21128  0
usb_storage            62400  1
ehci_hcd               25736  0
usbcore                88452  7 sl811_hcd,usbhid,ohci_hcd,uhci_hcd,usb_storage,ehci_hcd


Code:

(chroot) livecd / # cat /boot/grub/grub.conf
#
# Sample boot menu configuration file
#

# Boot automatically after 30 secs.
timeout 30

# By default, boot the first entry.
default 0

# Fallback to the second entry.
# fallback 1

# Splash image to show behind grub.
splashimage=(hd0,0)/boot/grub/splash.xpm.gz

# For booting GNU/Linux
title  Gentoo Hardened 2.6.23-hardened-r4
root (hd0,0)
kernel /boot/kernel-genkernel-x86-2.6.23-hardened-r4 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda3 udev
initrd /boot/initramfs-genkernel-x86-2.6.23-hardened-r4


Just so you can see if I'm naming things in grub.conf correctly:
Code:

(chroot) livecd / # ls -l /boot
total 6273
-rw-r--r-- 1 root root 1122463 Jan  4 17:58 System.map-genkernel-x86-2.6.23-hardened-r4
lrwxrwxrwx 1 root root       1 Jan  4 16:28 boot -> .
drwxr-xr-x 2 root root    1024 Jan  5 13:11 grub
-rw-r--r-- 1 root root 3071717 Jan  4 18:58 initramfs-genkernel-x86-2.6.23-hardened-r4
-rw-r--r-- 1 root root 2184744 Jan  4 17:58 kernel-genkernel-x86-2.6.23-hardened-r4
drwx------ 2 root root   12288 Jan  4 23:50 lost+found


Code:

(chroot) livecd / # fdisk -l

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          63      506016   83  Linux
/dev/sda2              64         313     2008125   82  Linux swap / Solaris
/dev/sda3             314         563     2008125   83  Linux
/dev/sda4             564       38913   308046375    5  Extended
/dev/sda5             564       31688   250011531   83  Linux
/dev/sda6           31689       35424    30009388+  83  Linux
/dev/sda7           35425       36670    10008463+  83  Linux
/dev/sda8           36671       38538    15004678+  83  Linux
/dev/sda9           38539       38913     3012156   83  Linux

Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/sdc: 2063 MB, 2063597568 bytes
16 heads, 32 sectors/track, 7872 cylinders
Units = cylinders of 512 * 512 = 262144 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1        7872     2015216    e  W95 FAT16 (LBA)


sda is my installation hard drive, you can ignore sdb, and sdc is my USB stick.

If there's any other info that would be helpful let me know. I have a feeling that this is some stupid syntax thing in grub.conf. Thanks in advance for helping me out.
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page Previous  1, 2, 3 ... 9, 10, 11 ... 27, 28, 29  Next
Page 10 of 29

 
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