View previous topic :: View next topic |
Author |
Message |
LeoQ2 n00b
Joined: 13 Jan 2006 Posts: 4 Location: Stockholm, Sweden
|
Posted: Mon Jan 23, 2006 2:46 pm Post subject: Grub works, Gentoo works and Firefox works!! |
|
|
Hi all
A while ago I posted and had a bit of a problem with my installation, and I thought it related to Grub, not so, the problem was me and my inabillity to read. So this post is me bragging and saying Thank You.
Regards to all. |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Mon Jan 23, 2006 10:52 pm Post subject: |
|
|
Hi shafer5.
You should start by reading the GRUB threads and searching the forums, before asking for help. The error 15 is one of the most common and is either related to your splashimage, kernel file or initrd file. One of them is pointing to a non-existent file. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
enderandrew l33t
Joined: 25 Oct 2005 Posts: 731
|
Posted: Wed Jan 25, 2006 8:04 am Post subject: |
|
|
With my latest install, I couldn't get grub 1.91 or 1.92 to compile at all with gcc 4.02 or 4.1-beta.
So I went with grub 0.97-r2. It compiled with no errors.
However, when I boot the PC, I get "Loading Stage 1.5" and then the PC immediately reboots. I can't see any errors.
Thoughts, suggestions? _________________ Nihilism makes me smile. |
|
Back to top |
|
|
bombcar Guru
Joined: 08 Apr 2003 Posts: 453 Location: Wisconsin
|
Posted: Thu Jan 26, 2006 6:26 am Post subject: |
|
|
Can grub work with a 2.5 TB single disk? I have a 3ware array that appears as a 2.5TB /dev/sda, partitioned via GPT into /dev/sda1 and /dev/sda2 (boot & /), but grub won't work. I have to use lilo. |
|
Back to top |
|
|
Haystack n00b
Joined: 28 Nov 2005 Posts: 60 Location: Utrecht, Netherlands
|
Posted: Thu Jan 26, 2006 7:49 am Post subject: |
|
|
I'm having strange problems loading grub.
Most of the times I start my pc, loading Grub fails after Stage 1.5 with an error 16 (which seems to be an "inconsistent filesystem" error), because I want to boot anyway I try again and again and again, and after several tries it happens to load grub! Sometimes I don't get the "Error 16" but the message
"Loading Stage1.5Read Error" -with no space between '1.5' and 'read' (why doesn't the second dot after 1.5 appear?)-
The first thing that came in mind was I should do a fsck on /dev/hda5 (where my boot partition is) but that doesn't complain at all:
Code: |
# fsck /dev/hda5
fsck 1.38 (30-Jun-2005)
e2fsck 1.38 (30-Jun-2005)
/dev/hda5: clean, 35/16064 files, 4787/64196 blocks |
Also, the boot partition does not exceed that nasty 1024-cilinder limit that some old BIOS-es have. (My PC isn't older than 3 years, so that couldn't even be the problem):
Code: | # fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 756 1972 9775552+ 83 Linux
/dev/hda4 1 755 6064506 5 Extended
/dev/hda5 * 1 8 64197 83 Linux
/dev/hda6 9 133 1004031 82 Linux swap / Solaris
/dev/hda7 134 755 4996183+ 83 Linux
Partition table entries are not in disk order |
This is how my menu.lst looks:
Code: |
default 0
timeout 5
title=Gentoo GNU/Linux (kernel 2.6.14-r5)
#/boot is at hda5:
root(hd0,4)
kernel /boot/gentoo root=/dev/hda7
|
Yesterday I discovered that there were both grub.conf and menu.lst in my /boot/grub directory, I thought that would maybe confuse grub, so I deleted grub.conf and it seemed to solve the problem. But this morning, the problem appears again.
Does anyone have a clue what's going wrong? |
|
Back to top |
|
|
enderandrew l33t
Joined: 25 Oct 2005 Posts: 731
|
Posted: Thu Jan 26, 2006 7:05 pm Post subject: |
|
|
grub-1.91 won't build.
grub-1.92 won't build.
grub-0.97 is immediately rebooting, and I can't seem to get any help or suggestions.
I'm at wits end with this most recent install.
I did a grub2 cvs checkout, and a make install. Then I copied the new executables to /usr/local/sbin, and did a grub-install.
Yet, when I try to configure or boot, it still shows grub 0.97, and it still isn't working.
Can someone help me make a grub cvs ebuild, or figure out how to properly manually install it? Grub's website wasn't much help. _________________ Nihilism makes me smile. |
|
Back to top |
|
|
Haystack n00b
Joined: 28 Nov 2005 Posts: 60 Location: Utrecht, Netherlands
|
Posted: Thu Jan 26, 2006 11:02 pm Post subject: |
|
|
enderandrew wrote: | grub-1.91 won't build.
grub-1.92 won't build.
grub-0.97 is immediately rebooting, and I can't seem to get any help or suggestions.
I'm at wits end with this most recent install.
I did a grub2 cvs checkout, and a make install. Then I copied the new executables to /usr/local/sbin, and did a grub-install.
Yet, when I try to configure or boot, it still shows grub 0.97, and it still isn't working.
Can someone help me make a grub cvs ebuild, or figure out how to properly manually install it? Grub's website wasn't much help. |
maybe run grub-install after compiling it ??? just a thought. |
|
Back to top |
|
|
enderandrew l33t
Joined: 25 Oct 2005 Posts: 731
|
Posted: Fri Jan 27, 2006 12:36 am Post subject: |
|
|
I did run grub-install, just like I mentioned in my post.
It copied various files to /boot/grub, but when I run the grub command itself, it still shows grub 0.97 _________________ Nihilism makes me smile. |
|
Back to top |
|
|
Haystack n00b
Joined: 28 Nov 2005 Posts: 60 Location: Utrecht, Netherlands
|
Posted: Fri Jan 27, 2006 12:56 am Post subject: |
|
|
enderandrew wrote: | I did run grub-install, just like I mentioned in my post. |
Sorry, didn't read careful enough |
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Fri Jan 27, 2006 1:13 am Post subject: |
|
|
bombcar wrote: | Can grub work with a 2.5 TB single disk? I have a 3ware array that appears as a 2.5TB /dev/sda, partitioned via GPT into /dev/sda1 and /dev/sda2 (boot & /), but grub won't work. I have to use lilo. |
Hi.
I don't know if GRUB can work with 2.5TB disks or not. Howerver, since you're probably speaking of a SATA RAID card, are you sure that it's true hardware RAID? What model is it? What type of RAID are you using? GRUB can only work with RAID1, not RAID0 or RAID5. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Fri Jan 27, 2006 1:17 am Post subject: |
|
|
Hi.
Haystack wrote: |
Most of the times I start my pc, loading Grub fails after Stage 1.5 with an error 16 (which seems to be an "inconsistent filesystem" error), because I want to boot anyway I try again and again and again, and after several tries it happens to load grub! Sometimes I don't get the "Error 16" but the message "Loading Stage1.5Read Error" -with no space between '1.5' and 'read' (why doesn't the second dot after 1.5 appear?)- |
Have you tried reinstalling GRUB into the MBR?
Haystack wrote: |
Code: | # fdisk -l
Disk /dev/hda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 756 1972 9775552+ 83 Linux
/dev/hda4 1 755 6064506 5 Extended
/dev/hda5 * 1 8 64197 83 Linux
/dev/hda6 9 133 1004031 82 Linux swap / Solaris
/dev/hda7 134 755 4996183+ 83 Linux
Partition table entries are not in disk order |
|
I have no idea if that will confuse GRUB or not.
Haystack wrote: |
Yesterday I discovered that there were both grub.conf and menu.lst in my /boot/grub directory, I thought that would maybe confuse grub, so I deleted grub.conf and it seemed to solve the problem. But this morning, the problem appears again.
|
Your menu.lst should be a symlink to grub.conf. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4734 Location: Angra do Heroísmo (PT)
|
Posted: Fri Jan 27, 2006 1:22 am Post subject: |
|
|
enderandrew wrote: | I did run grub-install, just like I mentioned in my post.
It copied various files to /boot/grub, but when I run the grub command itself, it still shows grub 0.97 |
Hi.
If you installed GRUB without an ebuild, you may have several GRUB packages installed in your system. You should try to remove them all and then reinstall GRUB - including installing it to the MBR or boot partition. _________________ Jorge.
Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
|
|
Back to top |
|
|
Haystack n00b
Joined: 28 Nov 2005 Posts: 60 Location: Utrecht, Netherlands
|
Posted: Fri Jan 27, 2006 6:58 am Post subject: |
|
|
@jmbsvicetto: Thanks for your reply
jmbsvicetto wrote: |
Have you tried reinstalling GRUB into the MBR?
|
Yes. Both "grub-install /dev/hda" and manual by typing setup(hd0) in the grub console haven't any positive results.
jmbsvicetto wrote: | Your menu.lst should be a symlink to grub.conf. |
I think thats a strange feature. but fixed it...
Problem doesn't disappear though....
--Update:
I have some thoughts that the harddisks need to warm up before Grub can load; rebooting doesn't give as much errors as booting foir the first time of a day does. It's just a gues... Can this be true? |
|
Back to top |
|
|
bdm Guru
Joined: 20 Jan 2006 Posts: 305 Location: Canada, Barrie, Ontario
|
Posted: Sun Jan 29, 2006 5:29 pm Post subject: |
|
|
So I set up my grub file with # nano -w /boot/grub/grub.conf and wrote the GRUB file. Then I create /etc/mtab. And the problem rises when I do # grub-install /dev/sdb. I keep getting errors like 'end_request: I/O error, dev fd0, sector0' & 'Buffer I/O error on device fd0, logical block 0'.
I assume I am near the end of the instalation process.
Does anyone have any idea how to fix it? And will I have to restart the instalation from scrath?
My file looked something like this:
Code: | default 0
timeout 30
splashimage=(hd2,0)/boot/grub/splash.xpm.gz
title=Gentoo
root(hd2,0)
kernel /boot/kernel-2.6.15-gentoo-r10 root=/dev/sdb3
title=XP
root(hd1,0)
makeactive
chainloader +1 |
I have three hardrives, hda = music, sda = XP, sdb = Gentoo
Thanks. |
|
Back to top |
|
|
rushfan n00b
Joined: 29 Jan 2006 Posts: 46
|
Posted: Sun Jan 29, 2006 6:18 pm Post subject: GRUB Errors |
|
|
So after spending 3.5 hours on a Gentoo installation, I had to reinstall SUSE because of a grub problem.
Anyhow, first points:
* I did not create a boot partition
* I did not want to install grub into my MBR; On SUSE I installed it into the boot portion of /hdb3
Here is what I made:
Quote: | # Which listing to boot as default. 0 is the first, 1 the second etc.
default
# How many seconds to wait before the default listing is booted.
timeout 3
# Nice, fat splash-image to spice things up
# Comment out if you don't have a graphics card installed
splashimage=(hd1,2)/boot/grub/splash.xpm.gz
title=Gentoo Linux 2.6.15-r1
# Partition where the kernel image (or operating system) is located
root (hd1,2)
kernel /boot/linux-2.6.15-gentoo-r1 root=/dev/hdb3
# The next four lines are for dual booting windows
# In this case, Windows is hosted on /dev/hda1.
title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1 |
After attempting grub-install, I got an error, so I used the grub shell and all went well.
When I rebooted I got an Error 15. At any rate, I've had many linux distros on this computer in the past, so I don't even know if Gentoo installed Grub. So how should I got about installing GRUB with no boot partition, and not into the MBR?
Here is a list of my partitions:
Quote: | Device Boot Start End Blocks Id System
/dev/hdb1 1 6752 54227848+ c W95 FAT32 (LBA)
Partition 1 does not end on cylinder boundary.
/dev/hdb2 6753 6883 1052257+ 82 Linux swap / Solaris
/dev/hdb3 6884 9729 22860495 83 Linux
|
In theory, I could create a boot partition, but that would be a big pain for me to do...
Any ideas? I'd like to try installing Gentoo again in a few weeks. The install was great except for that glitch.
Taking a look at grub.conf in SUSE could yield some infromation, but all it displays is this:
Quote: | setup --stage2=/boot/grub/stage2 (hd1,2) (hd1,2)
quit |
The stage 2 file is a binary, so I don't know what I can do with that.
Last edited by rushfan on Sun Jan 29, 2006 6:24 pm; edited 1 time in total |
|
Back to top |
|
|
Haystack n00b
Joined: 28 Nov 2005 Posts: 60 Location: Utrecht, Netherlands
|
Posted: Sun Jan 29, 2006 6:22 pm Post subject: |
|
|
Glass Casket wrote: | So I set up my grub file with # nano -w /boot/grub/grub.conf and wrote the GRUB file. Then I create /etc/mtab. And the problem rises when I do # grub-install /dev/sdb. I keep getting errors like 'end_request: I/O error, dev fd0, sector0' & 'Buffer I/O error on device fd0, logical block 0'. |
How does your device.map look like? (cat /boot/grub/device.map)
The errors tell about fd0 (that's your floppy drive) so maybe /dev/sdb is linked to fdo ?
My problem according the error 16 isn't solved yet. No-one out there to help me out? |
|
Back to top |
|
|
bdm Guru
Joined: 20 Jan 2006 Posts: 305 Location: Canada, Barrie, Ontario
|
Posted: Sun Jan 29, 2006 6:31 pm Post subject: |
|
|
Haystack wrote: | Glass Casket wrote: | So I set up my grub file with # nano -w /boot/grub/grub.conf and wrote the GRUB file. Then I create /etc/mtab. And the problem rises when I do # grub-install /dev/sdb. I keep getting errors like 'end_request: I/O error, dev fd0, sector0' & 'Buffer I/O error on device fd0, logical block 0'. |
How does your device.map look like? (cat /boot/grub/device.map)
The errors tell about fd0 (that's your floppy drive) so maybe /dev/sdb is linked to fdo ?
My problem according the error 16 isn't solved yet. No-one out there to help me out? |
I don't have a floppy drive |
|
Back to top |
|
|
Haystack n00b
Joined: 28 Nov 2005 Posts: 60 Location: Utrecht, Netherlands
|
Posted: Sun Jan 29, 2006 6:37 pm Post subject: Re: GRUB Errors |
|
|
rushfan wrote: |
After attempting grub-install, I got an error, so I used the grub shell and all went well.
|
Which error did you get?
Quote: |
When I rebooted I got an Error 15.
|
Read chapter 4 of the Grub Error Collection
Quote: |
Any ideas? I'd like to try installing Gentoo again in a few weeks. The install was great except for that glitch.
|
Reinstalling gentoo is never necessary.
Quote: |
Taking a look at grub.conf in SUSE could yield some infromation, but all it displays is this:
Quote: | setup --stage2=/boot/grub/stage2 (hd1,2) (hd1,2)
quit |
|
I don't know exactly what you mean... is that the content of grub.conf?
If so, that's no good.
I don't think either it's a good idea to install grub on your SuSE-partition AND on your Gentoo-partition. One of them will do.
What's your problem with installing Grub on the MBR? a seperate boot-partition is not necessary, but it's very useful. |
|
Back to top |
|
|
Haystack n00b
Joined: 28 Nov 2005 Posts: 60 Location: Utrecht, Netherlands
|
Posted: Sun Jan 29, 2006 6:38 pm Post subject: |
|
|
Glass Casket wrote: | [
I don't have a floppy drive |
Who has?
Please post the contents of your device.map. I still think the problem lies there. |
|
Back to top |
|
|
bdm Guru
Joined: 20 Jan 2006 Posts: 305 Location: Canada, Barrie, Ontario
|
Posted: Sun Jan 29, 2006 6:44 pm Post subject: |
|
|
Haystack wrote: | Glass Casket wrote: | [
I don't have a floppy drive |
Who has?
Please post the contents of your device.map. I still think the problem lies there. |
Alright dude, i'll do that right now and post back very shortly! |
|
Back to top |
|
|
rushfan n00b
Joined: 29 Jan 2006 Posts: 46
|
Posted: Sun Jan 29, 2006 6:57 pm Post subject: Re: GRUB Errors |
|
|
Haystack wrote: | rushfan wrote: |
After attempting grub-install, I got an error, so I used the grub shell and all went well.
|
Which error did you get?
|
I can't remember.
Quote: |
Quote: |
Any ideas? I'd like to try installing Gentoo again in a few weeks. The install was great except for that glitch.
|
Reinstalling gentoo is never necessary.
|
I had to re-install SUSE over it, because other people use this computer and I need a working bootloader.
Quote: |
Taking a look at grub.conf in SUSE could yield some infromation, but all it displays is this:
Quote: | setup --stage2=/boot/grub/stage2 (hd1,2) (hd1,2)
quit |
|
I don't know exactly what you mean... is that the content of grub.conf?
If so, that's no good.
Quote: |
I don't think either it's a good idea to install grub on your SuSE-partition AND on your Gentoo-partition. One of them will do.
What's your problem with installing Grub on the MBR? a seperate boot-partition is not necessary, but it's very useful. |
Thats the content of grub.conf in SUSE. I ddn't install GRUB onto both. I over-wrote the SUSE partition to install Gentoo, and then re-overwrote that partition to instal SUSE again. I dont know whats up with SUSE's grub.conf file, but at any rate it works.
I dont want to install GRUB into the MBR because wouldn that over-write my windows bootloader?
When I set-it up:
Quote: | grub> root (hd1,2) (Specify where your /boot partition resides)
grub> setup (hd1) (Install GRUB in the MBR)
grub> quit (Exit the GRUB shell) |
I have a feeling that 2nd line might have been the problem. At any rate, GRUB claimed it isntalled properly.
Last edited by rushfan on Sun Jan 29, 2006 7:06 pm; edited 1 time in total |
|
Back to top |
|
|
bdm Guru
Joined: 20 Jan 2006 Posts: 305 Location: Canada, Barrie, Ontario
|
Posted: Sun Jan 29, 2006 7:00 pm Post subject: |
|
|
You have got to be kidding me.
I put the Gentoo CD back in the drive and boot. And it seems that everything I had done previously is gone!
It told me that that file didnt exist |
|
Back to top |
|
|
bdm Guru
Joined: 20 Jan 2006 Posts: 305 Location: Canada, Barrie, Ontario
|
Posted: Sun Jan 29, 2006 7:27 pm Post subject: |
|
|
How do I resume my instalation now? |
|
Back to top |
|
|
Haystack n00b
Joined: 28 Nov 2005 Posts: 60 Location: Utrecht, Netherlands
|
Posted: Sun Jan 29, 2006 8:38 pm Post subject: Re: GRUB Errors |
|
|
Quote: | Thats the content of grub.conf in SUSE. I ddn't install GRUB onto both. I over-wrote the SUSE partition to install Gentoo, and then re-overwrote that partition to instal SUSE again. I dont know whats up with SUSE's grub.conf file, but at any rate it works.
|
Okay, I'm sorry, I misunderstood.
Your grub.conf should look like this:
Code: |
default 0
timeout 10
# Nice, fat splash-image to spice things up :)
# Comment out if you don't have a graphics card installed
splashimage=(hd1,2)/boot/grub/splash.xpm.gz
title=SUSE Linux
# Partition where the kernel image (or operating system) is located
root (hd1,2)
kernel /boot/SOME_KERNEL_IMAGE root=/dev/hdb3
# The next four lines are for dual booting windows
# In this case, Windows is hosted on /dev/hda1.
title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1
|
Of course replace SOME_KERNEL_IMAGE with name of the kernelimage you use.
Quote: |
I dont want to install GRUB into the MBR because wouldn that over-write my windows bootloader?
|
Yes, but thats no problem since you let Grub chainloading Windows.
Besides, I don't get why you're re-installing linux over and over again because of bootloader problems. The bootloader has nothing to do with the Operating System it boots. Read the GRUB manual if you want to know how it works. (And I'm sure you want to, it's the only way to avoid problems.) |
|
Back to top |
|
|
Haystack n00b
Joined: 28 Nov 2005 Posts: 60 Location: Utrecht, Netherlands
|
Posted: Sun Jan 29, 2006 8:47 pm Post subject: |
|
|
Glass Casket wrote: | You have got to be kidding me.
I put the Gentoo CD back in the drive and boot. And it seems that everything I had done previously is gone!
It told me that that file didnt exist |
You lost me.
Did you chroot back into your system? |
|
Back to top |
|
|
|
|
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
|
|