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 ... 25, 26, 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
flacvest
Apprentice
Apprentice


Joined: 04 Jun 2008
Posts: 152
Location: San Jose, CA USA

PostPosted: Thu Jun 05, 2008 6:12 pm    Post subject: THANKS to Neddy Seagoon and Erland, I now have Gentoo!!! Reply with quote

Thanks guys for the help. I now have a functioning Gentoo System amd64 x86_64 2008.0 at runlevel 3. I'm so Thrilled!!! It took me 6 dry runs through to get there after your assistance and pointers, but I finally Finally FINALLY did it right.

I'm happy to be a new member of the Gentoo Community!

Hello All! :D
_________________
.:{flacvest}:.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2366
Location: Kentucky

PostPosted: Sat Jun 14, 2008 4:46 am    Post subject: Reply with quote

NEW grub PROBLEM (maybe)

Booting from an LG GGW-H2DL SATA BluRay burner on SATA ch6 with the install-x86-minimal-2008.0_beta2.iso CD on an ASUS P5E-VM HDMI motherboard with 4 GB 800 MHz DDR2 ram and an Intel Core 2 Quad CPU Q9450 2.66 GHz cpu, and 5 WD 1TB SATA drives on SATA ch1-5, it works when the bios sets the SATA controllers in IDE mode, but not in AHCI mode. What happens (remember, booting the CD, not the hard drives) in AHCI mode is that grub load enough to display the grub shell command line prompt, but not enough to display the splash screen with the kernel menu. In IDE mode, it boots fine, but IDE is crippled compared to SATA, so I need to run this box in AHCI mode. Here is what lspci shows:
Code:
livecd ~ # lspci
00:00.0 Host bridge: Intel Corporation 82G35 Express DRAM Controller (rev 03)
00:02.0 VGA compatible controller: Intel Corporation 82G35 Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation 82G35 Express Integrated Graphics Controller (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 02)
00:1c.5 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 6 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IR (ICH9R) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02)
01:00.0 Ethernet controller: Attansic Technology Corp. L1 Gigabit Ethernet Adapter (rev b0)
04:03.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev c0)
livecd ~ #

Any ideas what I need to do to get this to boot in AHCI mode? I know I could always do the install in IDE mode, but if I then switch the BIOS SATA mode over to AHCI, will it boot, or does grub have some endemic problem with the STA controller on this box? Can I fix it by recompiling grub some different way, such as is there a way to specify the driver it shoul use? Or does it just loose on te CD/DVD/BluRay drive, but should work on the hard drives? The whole idea of this box is disk perormance in an encrypted RAID setup that handles very large amounts of data, so I sure don't want to leave it in IDE mode. :(

Any help will be much appreiated.

Thanks! :D
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Sat Jun 14, 2008 5:50 am    Post subject: Reply with quote

As long as you set up AHCI support in your kernel, yes, you can do it that way. I just helped another user here do the same thing.

Blessed be!
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
flacvest
Apprentice
Apprentice


Joined: 04 Jun 2008
Posts: 152
Location: San Jose, CA USA

PostPosted: Sat Jun 14, 2008 1:24 pm    Post subject: Hello there Reply with quote

Enabling AHCPI In the kernel worked for me with my GRUB issues, which I am proud to report I solved with Erland and Neddy Seagoon's Help.

:?: I am curious how the Blu-Ray burner works for you. I am interested in getting one and would like more info. Please post as to your success or further issues. Sorry to cross post a bit.

Best
_________________
.:{flacvest}:.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2366
Location: Kentucky

PostPosted: Sat Jun 14, 2008 3:54 pm    Post subject: Reply with quote

I just want to be clear that grub *NEVER* shows the grub splash screen or the kernel selection menu. I do not think it has tried to boot any kernel at all yet. I seems like it does not finish all the grub stages, but stops in the middle and gives me the grub shell prompt. How is configuring my kernel any particular way going to solve this problem? I never get to the kernel.

BTW My interest in the BluRay drive is for high capacity data recording, not video. I write programs; I don't watch them. :wink:
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Jun 14, 2008 8:11 pm    Post subject: Reply with quote

Moriah,

I sounds like you have the missing symlink in /boot/grub that should be menu.lst -> /boot/grub/grub.conf
_________________
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
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2366
Location: Kentucky

PostPosted: Sat Jun 14, 2008 8:15 pm    Post subject: Reply with quote

No, I am booting from the 2008 beta2 minimal livecd, and it boots fine if the interface is configured by the bios to be in ide mode, but it looses in AHCI mode. Same disk, same computer, just the sata controller is set by the bios in a different mode.
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
SnowCrashv5
n00b
n00b


Joined: 25 Jan 2008
Posts: 27

PostPosted: Sun Jun 15, 2008 4:49 am    Post subject: Reply with quote

I'm having an issue during the install, I'm following the directions from here:
http://www.gentoo.org/doc/en/gentoo-x86-quickinstall.xml#doc_chap2

and this is my first try at Gentoo.

Gentoo (and most other distro's) see my 2 IDE drives first and foremost (/dev/hdc and /dev/hdd ) and then my sata drive (my OS drive) /dev/sda

The doc states
Quote:
default 0
timeout 10

title Gentoo
root (hd0,0)
kernel /boot/kernel root=/dev/sda3


How do i determine the grub id for where root resides?

Starting Grub i'm getting the following error message:
end_request: I/O error, dev fd0, sector 0

doing a "find /boot/grub/stage1 " in grub gives the following (hd2,0)

Is that what should be in my grub.conf file? I'm just trying to be extra careful as to not touch the data on the other devices. Is the fd0 error related to my grub setup or did i do something stupid with my kernel? Any help is appreciated.
Back to top
View user's profile Send private message
Moriah
Advocate
Advocate


Joined: 27 Mar 2004
Posts: 2366
Location: Kentucky

PostPosted: Sun Jun 15, 2008 6:02 am    Post subject: Reply with quote

fd0 is the floppy drive, which you likely do not even have nowdays. See the full handbook for more detailed instructions on grub (and everything else about installtion). When you start grub, start is like this:
Code:
grub --no-floppy
as shown at http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#grub-install-manual

The quickinstall instructions are not for gentoo beginners; they are itended as a quick reminder for those who are already familiar with the process. 8O

good Luck! :D
_________________
The MyWord KJV Bible tool is at http://www.elilabs.com/~myword

Foghorn Leghorn is a Warner Bros. cartoon character.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Jun 15, 2008 12:28 pm    Post subject: Reply with quote

SnowCrashv5,

Quote:
"find /boot/grub/stage1 " in grub gives the following (hd2,0)
shows that grubs stage1 file is on the first partition of the third drive detected by the BIOS. Thats the partition where all the startup files are normally stored (your boot)

Its also what you should use in grub for the splashimage and root (hd.. with a conventional install.

Be aware that grub does not detect your hard drives, the BIOS does. Grub only asks the BIOS what its found.
This means that if you decide to change the boot order, the BIOS may change the hard drive detection order too. BIOSs vary.
_________________
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
SnowCrashv5
n00b
n00b


Joined: 25 Jan 2008
Posts: 27

PostPosted: Sun Jun 15, 2008 3:06 pm    Post subject: Reply with quote

crap, thanks guys for the assistance, but it seems i've run into another snag

again my setup: (IDE) hdc, hdd, and (SATA)sda hd(2,0)

following the minimal install instructions after installing grub, i get the grub prompt upon reboot and removal of the cd but selecting Gentoo and booting into the system gets me the following

Code:

root (hd2,0)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/kernel root=/dev/sda3

Error 15: File Not Found

Press any key to continue


I double checked when i "livecd linux # cp arch/i386/boot/bzImage /boot/kernel" that the file was indeed there.

also giving my broken grub the command "root" gives the following message:
(hd0,0): Filesystem type is ext2fs, partition type 0x83

Why would it say hd2,0 is grub's root in one place, but not here?

Any ideas?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Jun 15, 2008 3:57 pm    Post subject: Reply with quote

SnowCrashv5,

Rather than try keyhole surgery on your system, please post the output of
Code:
fdisk -l
annotated with what each partition is used for and
Code:
ls -l /boot

and your entire grub.conf file.
That should be enough to identify the problem in one go.

Error 15, File Name Not Found really means the path does not exist ... thats any part of the path can be missing.
_________________
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
SnowCrashv5
n00b
n00b


Joined: 25 Jan 2008
Posts: 27

PostPosted: Sun Jun 15, 2008 4:48 pm    Post subject: Reply with quote

NeddySeagoon wrote:
SnowCrashv5,

Rather than try keyhole surgery on your system, please post the output of
Code:
fdisk -l
annotated with what each partition is used for and
Code:
ls -l /boot

and your entire grub.conf file.
That should be enough to identify the problem in one go.

Error 15, File Name Not Found really means the path does not exist ... thats any part of the path can be missing.


Due to the security on the box i'm on it's easier to type this out rather than setup ssh, so bare with my manual typing of this.

Quote:
fdisk -l gives the follwing

/dev/hdc1 (200GB) this is a data drive I have not touched during the install
/dev/hdd1 (200GB) this is another data drive not touched during install

/dev/sda 80GB

/dev/sda1 1 13 104391 83 Linux
/dev/sda2 14 274 2096485+ 82 Linux Swap
/dev/sda3 275 9729 75947287+ 83 Linux


Quote:
According to fstab

sda1 is mounted at /boot as ext2 noauto,noatime 1 2
sda3 is mounted at / as ext3 noatime 0 1
sda2 is mounted as none swap sw 0 0


ls -l /boot gives
/boot -> /mnt/livecd/boot

my grub.conf file is as follows (after chrooting to /mnt/gentoo):
Quote:

default 0
timeout 10

title Gentoo
root (hd2,0)
kernel /boot/kernel root=/dev/sda3
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Jun 15, 2008 4:54 pm    Post subject: Reply with quote

SnowCrashv5,

Oops its
Code:
ls -l /boot
from inside the chroot that I need.
Your post shows a straight forward install.

I suspect the file /boot/kernel does not exist (case of letters is important) or the symlink boot -> .
is missing.
_________________
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
SnowCrashv5
n00b
n00b


Joined: 25 Jan 2008
Posts: 27

PostPosted: Sun Jun 15, 2008 4:55 pm    Post subject: Reply with quote

no problem

the ls -l /boot is now

boot --> .
grub
kernel
lost+found
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Jun 15, 2008 5:30 pm    Post subject: Reply with quote

SnowCrashv5,

ls -l would have shown filesizes too but no matter. All your names appear to be in order.

When grub boots and you see
Code:
Gentoo
on the boot menu, press the 'e' key.
This allows you to edit the in memory copy of grub.conf.

Navigate to the
Code:
root (hd2,0)
line and change it to read
Code:
root (hd
Press the tab key and grub will list all of your drives. Choose one, say hd0 and make the line read
Code:
root (hd0,
Press tab again. Grub will list the partitions.
Repeat for each drive. You will not be able to identify hda and hdb uniquely but they only have one partition, so will give different results to sda.

I would not be surprised to learn that the BIOS has renumbered your sda to be hd0.
When you change it to something that might work, press b to boot.

If its not the BIOS renumbering drives, you have made a typo somewhere that you are not spotting. Thats a huge risk with copy typed information.
_________________
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
SnowCrashv5
n00b
n00b


Joined: 25 Jan 2008
Posts: 27

PostPosted: Mon Jun 16, 2008 1:20 am    Post subject: Reply with quote

NeddySeagoon wrote:
...

Thanks a ton you've been very helpful. The system now boots just fine. Odd though, as /dev/sda1 does not mount into the /boot like it should, to access grub.conf and make the changes for hd0,0 permanent I have to mount it manually.
Back to top
View user's profile Send private message
flacvest
Apprentice
Apprentice


Joined: 04 Jun 2008
Posts: 152
Location: San Jose, CA USA

PostPosted: Fri Jun 20, 2008 3:25 pm    Post subject: Psst... I have a Question... Reply with quote

Now that I am compiling my genkernel, is there a way to compile an extra one without modules for a backup or just a second one with modules with a different name such as "kernel-2.6.24-gentoo-r8-recoverey" ??? then the Question for me is how to get that into GRUB...
_________________
.:{flacvest}:.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Jun 20, 2008 3:29 pm    Post subject: Reply with quote

SnowCrashv5,

Thats normal behaviour for gentoo. If you want /boot to mount automactically, remove the noauto from its /etc/fstab entry.
_________________
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
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Jun 20, 2008 3:37 pm    Post subject: Reply with quote

flacvest,

The kernel name comes from the top of the Makefile in /usr/src/linux.
Make a copy of the entire kernel tree, in the copy change the EXTRAVERSION = at the top of the makefile
Point /usr/src/linux to the new kernel tree then use genkernel normally.
It will put the new kernel into /boot for you.

Now fix grub.conf to your liking
_________________
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
flacvest
Apprentice
Apprentice


Joined: 04 Jun 2008
Posts: 152
Location: San Jose, CA USA

PostPosted: Fri Jun 20, 2008 4:07 pm    Post subject: Hi Neddy... thanks! Reply with quote

However, this is going over my head, could you break it down into a per command fashion so TOTALLY NEW Gentoo users like me can benefit. I have to be honest, I don't know what you just told me to do!!... :oops:

Best,
_________________
.:{flacvest}:.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Jun 20, 2008 4:31 pm    Post subject: Reply with quote

flacvest,

Code:
cd /usr/src
and look around
Code:
/usr/src $ ls -l
total 48
lrwxrwxrwx  1 root root   32 Jun  6 16:48 linux -> /usr/src/linux-2.6.25-gentoo-r4
drwxr-xr-x 21 root root 4096 Jun 13 21:05 linux-2.6.25-gentoo-r4
drwxr-xr-x 21 root root 4096 Jun 19 21:08 linux-2.6.25-gentoo-r5
that shows two real kernels and the linux symlink, pointing to one of them.
Make a copy of the kernel tree
Code:
cp -r linux-2.6.25-gentoo-r4 linux-2.6.25-gentoo-r4-my-kernel

edit the name in the makefile
Code:
cd linux-2.6.25-gentoo-r4-my-kernel
nano -w Makefile

Find the bit (atthe top) that says
Code:
VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 25
EXTRAVERSION = -gentoo-r4
NAME = Funky Weasel is Jiggy wit it
and append something to the EXTRAVERSION =
Say, change it to
Code:
EXTRAVERSION = -gentoo-r4-flacvest

Use the
Code:
eselect kernel
command to select your new kernel, that sets the symlink to point to it.
Now you can use genkernel to make your new kernel. Its name will be taken from the Makefile.
_________________
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
flacvest
Apprentice
Apprentice


Joined: 04 Jun 2008
Posts: 152
Location: San Jose, CA USA

PostPosted: Fri Jun 20, 2008 8:20 pm    Post subject: eselect set kernel failed Reply with quote

I named the kernel copy "linux-2.6.24-gentoo-r8-flacvest" and tried to use the command:

eselect set linux-2.6.24-gentoo-r8-flacvest

... and recieved an error message like so:

!!! Error: Can't load module set
Killed

... what steps should I take now??

Confused, and apparently 99% of the way there,
_________________
.:{flacvest}:.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Fri Jun 20, 2008 10:25 pm    Post subject: Reply with quote

flacvest,

Do
Code:
cd /usr/src/
rm linux
ln -s /usr/src/linux-2.6.24-gentoo-r8-flacvest linux
ls -l
which is what the eselect would have done
Make sure the linux -> /usr/src/linux-2.6.24-gentoo-r8-flacvest appears in cyan (pale bule)
_________________
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
flacvest
Apprentice
Apprentice


Joined: 04 Jun 2008
Posts: 152
Location: San Jose, CA USA

PostPosted: Sat Jun 21, 2008 12:34 am    Post subject: I think it worked! Reply with quote

when I do an 'ls' command from "/usr/src" I see linux in cyan, and when i input the command 'eselect kernel show' it states: Current kernel symlink:

/usr/src/linux-2.6.24-gentoo-r8-flacvest

... Is there a way to install this a a "backup" for GRUB so that I can boot to a command prompt to fix my system without the chroot affair and live cd??

Also was just the link "linux" supposed to be cyan, or should "/usr/src/linux-2.6.24-gentoo-r8-flacvest" be also cyan (I'm assuming that "linux" appears cyan due to it being a symlink??)

At this point do go through installing the kernel to GRUB somehow (explicit instructions would help) or am I ready to perform a "shutdown -hr now" and expect the system to boot into GDM which is set to the default runlevel.

OH!, Neddy, the biggest reason I wanted a quote unquote "backup" kernel is for when I screw up things like my xorg.conf or GDM theme and need a command line. How do I achieve that??

I appreciate your patience with me,
_________________
.:{flacvest}:.
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 ... 25, 26, 27, 28, 29  Next
Page 26 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