Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Grub Error Collection [Part 4]
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 8, 9, 10 ... 13, 14, 15  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
Maedhros
Bodhisattva
Bodhisattva


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

PostPosted: Wed Mar 15, 2006 10:40 am    Post subject: Reply with quote

Merged from here to this thread.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
jballou
Tux's lil' helper
Tux's lil' helper


Joined: 10 Mar 2005
Posts: 128
Location: Baghdad, Iraq

PostPosted: Wed Mar 15, 2006 12:41 pm    Post subject: Reply with quote

Did you run
Code:
mount /boot
grub-install /dev/hda
nano /boot/grub/grub.conf

? Also, it works better if you mount /boot before you emerge grub. For future reference, you may find the answers for all your grub questions at https://forums.gentoo.org/viewtopic-t-122656.html That thread has covered literally every grub issue that this forum has been asked about, and is a great place to mine info when you have troubles. Hope this helps.
_________________
-Shuttle SN25P, Opteron 185, 74Gb WD Raptor, 2x 300Gb Barracuda 7200.9, 2x 1Gb Corsair dual channel, BFG GeForce 7800GT
-Asus Z7100 laptop, P-M 2.13, 2Gb DDR, 100Gb 7200RPM HDD, 128Mb GeForce 6600 Go.
Back to top
View user's profile Send private message
briek
n00b
n00b


Joined: 14 Mar 2006
Posts: 20

PostPosted: Wed Mar 15, 2006 3:21 pm    Post subject: grub still not working for me Reply with quote

indynet's advice looks logical, however it still does not seem to fix me.

Here is my sequence of commands (to set up grub):

1) emerge grub
2) nano -w /boot/grub/grub.conf
default 0
timeout 30
title=Gentoo Linux
root (hd0,0)
kernel /boot/kernel-2.6.12-gentoo-r10 root=/dev/hda3
3) cp /proc/mounts /etc/mtab
4) grub-install /dev/hda
5) reboot


perhaps my /etc/fstab is incorrect?:
/dev/hda1 /boot ext2 defaults 1 2
/dev/hda2 none swap sw 0 0
/dev/hda3 / ext3 defaults 0 1
proc /proc proc defaults 0 0
shm /dev/shm tmpfs nodev,noduid,noexec $


What exactly is an "error 2" anyways?
Back to top
View user's profile Send private message
indynet
Tux's lil' helper
Tux's lil' helper


Joined: 07 Feb 2005
Posts: 108
Location: Prague - Czech Republic

PostPosted: Wed Mar 15, 2006 3:58 pm    Post subject: Re: grub still not working for me Reply with quote

briek wrote:

perhaps my /etc/fstab is incorrect?:


none /proc proc defaults 0 0
none /dev/shm tmpfs nodev,nosuid,noexec 0 0

should be correct

[quote="briek"]
What exactly is an "error 2" anyways?
http://www.gnu.org/software/grub/manual/grub.html#Stage1_002e5-errors
Back to top
View user's profile Send private message
briek
n00b
n00b


Joined: 14 Mar 2006
Posts: 20

PostPosted: Wed Mar 15, 2006 5:07 pm    Post subject: Reply with quote

indynet - thanks for the info on what the Error 2 is, now I just have to fix it (somehow?).

I noticed when I run grub-install that I receive multiple errors:
end_request: I/O error, dev fd0, sector 0
then
mount: /dev/fd0 is not a valid block device

Does this have something to do with my "Error 2" problem?

I am out of ideas, as I have followed the install manual very closely and tried everyone's suggestions......
Back to top
View user's profile Send private message
briek
n00b
n00b


Joined: 14 Mar 2006
Posts: 20

PostPosted: Wed Mar 15, 2006 5:15 pm    Post subject: Re: grub still not working for me Reply with quote

[quote="indynet"]
briek wrote:

perhaps my /etc/fstab is incorrect?:


none /proc proc defaults 0 0
none /dev/shm tmpfs nodev,nosuid,noexec 0 0

should be correct

briek wrote:

What exactly is an "error 2" anyways?
http://www.gnu.org/software/grub/manual/grub.html#Stage1_002e5-errors



Is there anyway to "debug" my bootloader, such as adding an echo statement to my /boot/grub/brub.conf file? I tried your suggestions, and am still stuck with "Error 2".
Back to top
View user's profile Send private message
aneeshm
n00b
n00b


Joined: 16 Mar 2005
Posts: 10

PostPosted: Wed Mar 15, 2006 5:41 pm    Post subject: Reply with quote

I am suffering from Error 17 . My grub.conf file looks like this :

Quote:


default 0
timeout 30
splashimage=(hd2,0)/boot/grub/splash.xpm.gz

title=Gentoo Linux 2.6.15
root (hd2,0)
kernel /boot/kernel-genkernel-x86_64-2.6.15-gentoo-r7 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/hdc3 udev
initrd /boot/initramfs-genkernel-x86_64-2.6.15-gentoo-r7

#title=Windows XP
#rootnoverity (hd1,1)
#makeactive
#chainloader +1



The output of fdisk in my three drives is :

Quote:


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

Device Boot Start End Blocks Id System
/dev/hda1 * 1 2550 20482843+ c W95 FAT32 (LBA)
/dev/hda2 2551 4864 18587205 f W95 Ext'd (LBA)
/dev/hda5 2551 4864 18587173+ b W95 FAT32

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

Device Boot Start End Blocks Id System
/dev/hdb1 1 2550 20482843+ c W95 FAT32 (LBA)
/dev/hdb2 2551 4864 18587205 f W95 Ext'd (LBA)
/dev/hdb5 2551 4864 18587173+ b W95 FAT32

Disk /dev/hdc: 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/hdc1 1 25 200781 83 Linux
/dev/hdc2 26 275 2008125 82 Linux swap / Solaris
/dev/hdc3 276 9729 75939255 83 Linux



/dev/hdc1 is boot , and /dev/hdc3 is root . How should I set up my grub.conf file ? Are there any errors in it as it is ? What should I change ?
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Wed Mar 15, 2006 5:42 pm    Post subject: Reply with quote

briek wrote:

I noticed when I run grub-install that I receive multiple errors:
end_request: I/O error, dev fd0, sector 0
then
mount: /dev/fd0 is not a valid block device

If you're using grub-install to install GRUB, do grub-install --no-floppy /dev/hda. If you run grub do
Code:
# grub --no-floppy
grub> root (hd0,0)
grub> setup (hd0)
grub> exit
#

Does it solve your problem?
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Wed Mar 15, 2006 5:45 pm    Post subject: Reply with quote

aneeshm,

what disk have you configured in the BIOS to boot your system? How did you install GRUB?
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
briek
n00b
n00b


Joined: 14 Mar 2006
Posts: 20

PostPosted: Wed Mar 15, 2006 7:23 pm    Post subject: Reply with quote

jmbsvicetto wrote:
briek wrote:

I noticed when I run grub-install that I receive multiple errors:
end_request: I/O error, dev fd0, sector 0
then
mount: /dev/fd0 is not a valid block device

If you're using grub-install to install GRUB, do grub-install --no-floppy /dev/hda. If you run grub do
Code:
# grub --no-floppy
grub> root (hd0,0)
grub> setup (hd0)
grub> exit
#

Does it solve your problem?


I moved my HDD to a different but similar chassis and now it boots into Gentoo and asks me for a login. I suppose I forgot to set up an account and now I am screwed? What is the default login and password?
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Wed Mar 15, 2006 11:45 pm    Post subject: Reply with quote

You have two options to solve this issue.
1. To boot with the live-cd, mount the partitions, chroot and run passwd to set the root's password.
2. Edit the Gentoo entry on the GRUB menu, press 'e' and add to the end of the kernel line the following init=/bin/bash. That should allow you to start the system. Then you should run passwd to set the root's password.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
aneeshm
n00b
n00b


Joined: 16 Mar 2005
Posts: 10

PostPosted: Sat Mar 18, 2006 2:49 pm    Post subject: Reply with quote

jmbsvicetto wrote:
aneeshm,

what disk have you configured in the BIOS to boot your system? How did you install GRUB?


Thanks for the help . You pointed me in the right direction . I realised the mistake I was making ( I had installed grub on the wrong disk ) .
Back to top
View user's profile Send private message
UnHoly616
n00b
n00b


Joined: 15 Oct 2005
Posts: 33
Location: Tallinn/EstOnia

PostPosted: Sat Mar 18, 2006 4:46 pm    Post subject: Damn stubborn GRUB and my 120GB SATA HDD Reply with quote

So, I have a 120GB SATA HDD, dualbooting gentoo and winsuxxXP. Currently I'm using ugly stupid lilo because GRUB does'nt work :evil: Tried everything but all I get is "GRUB Hard Disk error", googled it, searced it, only thing i found that this means "grub can't determine disk size or geometry" :?: But what the heck can I do to get grub working?
_________________
There is no spoon!
Back to top
View user's profile Send private message
elephant
n00b
n00b


Joined: 08 Jun 2005
Posts: 39
Location: Serbia

PostPosted: Sat Mar 18, 2006 4:47 pm    Post subject: Installing from the LiveCD: need Grub, but not in MBR Reply with quote

I tried the new graphical installer and it appeared to me that there is no place to specify where to install the boot loader (Grub), and I quit it. I need to install Grub in /dev/hda2, please tell me what's the easiest way to do this. Perhaps I should first choose not to install it at all and then boot from the LiveCD again and somehow emerge grub and set it up manually?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Mar 18, 2006 6:22 pm    Post subject: Reply with quote

elephant,

If you install grub on /dev/hda2, you will need another bootloader to start grub, since the BIOS will only ever load the MBR.
You should use the manual install method.
Code:
emerge grub
builds grub and puts it on your system but does not install it in its final position.
When you do the manual install use
Code:
setup (hd0,1)
in place of the
Code:
setup (hd0)

_________________
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
elephant
n00b
n00b


Joined: 08 Jun 2005
Posts: 39
Location: Serbia

PostPosted: Sat Mar 18, 2006 6:30 pm    Post subject: Reply with quote

Yeah I need to keep the windowz boot loader in the MBR for some programs we have to use at uni etc.
Ok thanks for helping me clear this.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Mar 18, 2006 6:33 pm    Post subject: Reply with quote

elephant,

Grub can start windows. You can do it the other way round too but thats much harder.
_________________
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
homry
Tux's lil' helper
Tux's lil' helper


Joined: 01 Apr 2005
Posts: 146
Location: Karlsruhe, Germany

PostPosted: Sat Mar 18, 2006 6:46 pm    Post subject: strange:empty boot-partition, still booting Reply with quote

hi guys,

i have just installed a gentoo system on my pc with an nf2 board and 2 sata drives.
everything worked as usual, but on my first reboot i got something like this:

Quote:
Buffer I/O error on device sdb3, logical block 14353328


ok, i thought this would be a problem with the sata-drivers. the system booted and i could log-in as root. i recompiled my kernel with the nvidia options for sata drives and with the ones for silIMAGE drivers (si3112 controller is on board with the nf2-board(ABIT)).

when i tried to overwrite my old kernel, something strange happened. it was not there. /grub and grub.conf also. nothing. /boot was completely empty. ok, so i rebooted again and it worked, but with the same error messg and an empty boot-partition. how is this possible? grub appears as usual and give the choices i wrote to grub.conf, but grub.conf isnt there anymore!!

i rebooted from live-cd and mounted /deb/sda3 to /mnt/gentoo/boot (sda3 is my boot-partition). there is nothing in it! but grub is working!

what should i do? how is this possible? thx for the help, i am clueless.

homry
_________________
IBM ThinkPad R51
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Sat Mar 18, 2006 7:40 pm    Post subject: Reply with quote

Hi.

Please post your grub.conf, the output of fdisk -l and the contents of /boot - don't forget to mount it first.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Sat Mar 18, 2006 8:13 pm    Post subject: Reply with quote

Hi.

Have you tried changing in the BIOS the disk from auto settings to manual settings?
If that doesn't work, please post the exact error message.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
UnHoly616
n00b
n00b


Joined: 15 Oct 2005
Posts: 33
Location: Tallinn/EstOnia

PostPosted: Sat Mar 18, 2006 8:51 pm    Post subject: Reply with quote

jmbsvicetto wrote:
Have you tried changing in the BIOS the disk from auto settings to manual settings?
IMHO where is no auto/manual for SATA disks. My SATA BIOS just detects it, no way to change anything. This SATA disk is only HDD on my system, only DVDburner on IDE bus.
***
jmbsvicetto wrote:
If that doesn't work, please post the exact error message.

Code:
GRUB Loading stage1.5
GRUB Hard Disk Error

***
I hope that my GRUB conf is correct, so I post relevant files here:

device.map
Code:
(fd0)   /dev/fd0
(hd0)   /dev/sda


grub.conf
Code:

default 0
timeout 6
splashimage=(hd0,1)/grub/splash.xpm.gz

title=windows XP
lock
rootnoverify (hd0,0)
makeactive
chainloader +1

title=Gentoo linux
kernel /kernel-genkernel-x86-2.6.15-gentoo-r1-zero1 root=/dev/sda5 udev video=vesafb-tng:ywrap,mtrr,1024x768@85 splash=verbose,theme:emergence quiet CONSOLE /dev/tty1 elevator=as apic
initrd (hd0,1)/boot/fbsplash-emergence-1024x768


disks and partitions
Code:
HDD
sda1 - winblows
sda2 - /boot
sda3 - swap
sda5 - /
sda6 - /home

DVDburner - hdc


GRUB conf is actually adapted from working conf on my good old IDE40GB HDD :) This HDD is now retired with honor :lol:
_________________
There is no spoon!
Back to top
View user's profile Send private message
homry
Tux's lil' helper
Tux's lil' helper


Joined: 01 Apr 2005
Posts: 146
Location: Karlsruhe, Germany

PostPosted: Sat Mar 18, 2006 10:22 pm    Post subject: Reply with quote

jmbsvicetto wrote:
Hi.

Please post your grub.conf, the output of fdisk -l and the contents of /boot - don't forget to mount it first.


as i already wrote: there is no content in /boot (yes, i mounted it). all there is, is the new compiled kernel-image. but i dunno if it is used, since there is nothing else in /boot (i copied it there the first time i regnozied that /boot is empty, that was the first time i booted the system). that of course makes it hard to quote my grub.conf here. it is just not there anymore :(. but i have a dual-boot system. so i have 2 entries and i followed the handbook. i did not used sdX,X, but hdX,X, since grub does not know sdX.

output of fdisk -l:
first disk (sda)
Code:

Device        Boot       Start       End         Id       System
/dev/sda1    *             1            1275         7         HPFS/NTFS
/dev/sda2                  1276      12318       f          W95 Ext'd (LBA)
/dev/sda3    *             12319    12323      83        Linux
/dev/sda4                  12324    14946      83       Linux
/dev/sda5                  1276      12318       7        HPFS/NTFS

second disk (sdb)
Code:

/dev/sdb1                   1            250         82       Linux swap/ Solaris
/dev/sdb2                                                           Linux
/dev/sdb3                                                           Linux


due to that info my grub.conf should look like this (if i only could find it :/):
Code:

default 0
timeout 30
splashimage=(hd0,2)/boot/grub/splash.xpm.gz

title=Gentoo Linux 2.6.15-r1
root (hd0,2)
kernel /boot/kernel-2.6.15-gentoo-r1 root=/dev/sda3

title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1


homry
_________________
IBM ThinkPad R51
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Sat Mar 18, 2006 11:01 pm    Post subject: Reply with quote

In that case, have you tried the following:
Code:
# umount /boot
# ls -l /boot

Do you have anything there? If so, you can move it to your /boot partition. You can also re-emerge GRUB if you prefer.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
homry
Tux's lil' helper
Tux's lil' helper


Joined: 01 Apr 2005
Posts: 146
Location: Karlsruhe, Germany

PostPosted: Sun Mar 19, 2006 12:00 am    Post subject: Reply with quote

ok,

for some reason /dev/sda3 does not get mounted on /boot during booting. that is why i did not see anything in that directory. when i was in the live-cd enviroment i mounted sda3 manually to /boot, but still could not see any content. something went wrong there for sure, my fault.

now i booted the system (not with the live-cd), manually mounted sda3 to /boot, copied bzImage to it with the nvidia-sata-driver in it (also with the siliconImage driver) and rebooted the system. the error message from above remains and /dev/sda3 still does not get mounted to /boot while booting. but the error message from above is related to sdb3 (which should be an empty, freshly formatted data partition with ext3-fs) NOT to sda3. maybe 2 things are going wrong at the same time. my fstab looks like this:

Code:

/dev/sda3        /boot        ext2        noauto,noatime    1 2
/dev/sda4        /               ext3        noatime                0 1
/dev/sdb1        none        swap       sw                        0 0
/dev/sdb2       /Data1      ext3        noatime                0 1
/dev/sdb3       /Data2      ext3        noatime                0 1


homry

Edit: changed
Code:
/dev/sda3        /boot        ext2        noauto,noatime    1 2
to
Code:
/dev/sda3        /boot        ext2        defaults,noatime    1 2

now /boot gets mounted during booting. everything sems to be fine with that. error concerning sdb3 still remains though.
_________________
IBM ThinkPad R51
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Sun Mar 19, 2006 9:43 am    Post subject: Reply with quote

/dev/sda3 /boot ext2 noauto,noatime 1 2

change noauto to defaults and

copy the conents of the not mounted /boot partition to /mnt,
mount /dev/sda3
and copy /mnt to /boot.

and change in /boot/grub/menu.lst

kernel /boot/kernel

to

kernel (hd0,1)/kernel...............
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 ... 8, 9, 10 ... 13, 14, 15  Next
Page 9 of 15

 
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