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

Goto page Previous  1, 2, 3, 4, 5 ... 22, 23, 24  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
idoneus
Apprentice
Apprentice


Joined: 26 Mar 2003
Posts: 243
Location: Graz, Austria

PostPosted: Sun Feb 01, 2004 9:57 pm    Post subject: Re: I do not understand Reply with quote

BAMacek wrote:
Please, explain to me which command I need to run to fix this problem and give an example. The whole symbolic link thing is pretty new to me.

Just ommit the /boot in your kernel... command.
If you would like to create the symbolic link you would have to type
Code:
ln -s ./ boot
or was it
Code:
ln -s boot ./
don't know. I always get it wrong. anyhow only one should succeed. checkout
Code:
man ln
if you want to know more.
_________________
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
BAMacek
n00b
n00b


Joined: 27 Jan 2004
Posts: 15
Location: Waco, TX (for school, not because its a fun place to live)

PostPosted: Sun Feb 01, 2004 10:36 pm    Post subject: YOU ARE THE MAN! Reply with quote

idoneus: I can't believe you did it! EXCELLENT! It worked perfectly, right off the bat. By the way, the correct command was the first one:
Code:
ln -s ./ boot

Thanks again man
Back to top
View user's profile Send private message
Pergamon
Tux's lil' helper
Tux's lil' helper


Joined: 01 Feb 2004
Posts: 117

PostPosted: Tue Feb 03, 2004 9:34 am    Post subject: Broken grub 0.93.20031222 fixed with 0.94 Reply with quote

There is a new version 0.94 of grub available, that fixes broken boot of grub 0.93.20031222 which did always boot into the grub console. (See: Bug 39392)

However this comes at a price: Background images for grub are broken with 0.94 :cry:
Back to top
View user's profile Send private message
Mister Bill
n00b
n00b


Joined: 24 Jan 2004
Posts: 35
Location: Huntsville, Alabama

PostPosted: Wed Feb 04, 2004 3:25 am    Post subject: Reply with quote

OK, I'm still having the same problem I was having. I've confirmed that grub, fstab, and my kernel compiles were pretty much correct.

The configs are exactly the same as I last posted them, except I replaced my reiserfs partition with ext3. The contents of my boot directory are...

System.map-2.6.1 boot config-2.6.1 /grub kernel-2.6.1 /lost+found

Contained withing the grub directory are....

e2fs_stage1_5 ffs_stage1_5 grub.conf.sample minix_stage1_5 splash.xpm.gz stage2 xfs_stage1_5 fat_stage1_5 grub.conf jfs_stage1_5 reiserfs_stage1_5 vstafs_stage1_5

The lost+found directory is empty
_________________
~WÆ
Back to top
View user's profile Send private message
blah
n00b
n00b


Joined: 04 Feb 2004
Posts: 1

PostPosted: Wed Feb 04, 2004 4:31 am    Post subject: Re: grub error collection Reply with quote

nephros wrote:
Idoneus, very nice work, I'm sure that will help a lot of ppl. :)

I have one small suggestion. Here:
idoneus wrote:

  • Cannnot open root device "hdaX"
    Are you getting something like this error?
    Code:
    VFS: Cannot open root device "hda7" or 03:07
    Please append a correct "root=" boot option
    Kernel Panic: VFS: Unable to mount root fs on 03:07
    Make sure your grub.conf reads two times the same (hd0,X) entry. like
    Code:
    root(hd0,1)
    kernel (hd0,1)...



From my expierience, this is 80% of the time caused by an incorrectly configured kernel, specificly either:

    [+]IDE chipset (or SCSI controller) support not compiled or compiled as a module (and no initrd).
    [+]filesystem support used on root partition not compiled or compiled as a module (and no initrd).
    [+]support for MSDOS partition tables not compiled (CONFIG_PARTITION_ADVANCED -> CONFIG_MSDOS_PARTITION)(it happened!)


On fresh installs it's often caused by not having edited /etc/fstab during the install process, and it still contains lines like "/dev/ROOT / ext2 defaults,noatime 0 0".

Solution for both kinds is obviously rebooting the LiveCD or, in the former case, just a sane kernel and fix the configs.

HTH :)


well, i'm having troubles with that

[img]www.felipebas.brturbo.com/Gentoo1.png[/img]

it's a fresh install under vm-ware, that emulates a scsi controller/drive

fstab:

[img]www.felipebas.brturbo.com/Gentoo2.png[/img]

grub.conf:

[img]www.felipebas.brturbo.com/Gentoo3.png[/img]

i'm not quite sure that the scsi controller was compiled, either the support for MSDOS partition tables... how can i see if it those two things were compiled, and if not, how can i fix it?

i'm a noob... remember that when you answer this post :)
Back to top
View user's profile Send private message
idoneus
Apprentice
Apprentice


Joined: 26 Mar 2003
Posts: 243
Location: Graz, Austria

PostPosted: Wed Feb 04, 2004 2:21 pm    Post subject: Reply with quote

BAMacek: you are more than welcome!

Pergamon: thanks for the info. I've put a note in the top posting.

Mister Bill: Sorry but I can't help you. Just as a side note. Why is it hde?
Back to top
View user's profile Send private message
Mister Bill
n00b
n00b


Joined: 24 Jan 2004
Posts: 35
Location: Huntsville, Alabama

PostPosted: Wed Feb 04, 2004 5:56 pm    Post subject: Reply with quote

It considers my hard drive as "hde" because it's a seperate ATA bus (2 normal IDE, and 2 ATA100 on my motherboard, and I made sure to enable the chipset in the BIOS).
_________________
~WÆ
Back to top
View user's profile Send private message
gonad
n00b
n00b


Joined: 05 Aug 2003
Posts: 31

PostPosted: Thu Feb 05, 2004 7:22 am    Post subject: Reply with quote

0.94 does NOT fix the - boot to grub command line issue.

you'd think it was tested first, does the developer use lilo? yes, nasty dig... but honestly...
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Thu Feb 05, 2004 10:35 am    Post subject: Reply with quote

gonad wrote:
0.94 does NOT fix the - boot to grub command line issue.

you'd think it was tested first, does the developer use lilo? yes, nasty dig... but honestly...


Have you posted a bug report?
_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
spooktastic
n00b
n00b


Joined: 06 Feb 2004
Posts: 14

PostPosted: Fri Feb 06, 2004 7:47 am    Post subject: arrgggghhh! Reply with quote

I am getting the 'cannot open root device...error
i have tried everything in the forum and i have gotten nowhere. i have even emerged grub .94
my boot is ext3, root is reiserfs, both compiled into the kernel. msdos, vfat, ntfs in the kernel as well.
i am using gentoo-dev-sources.

grub.conf

Code:

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

title=Gentooooooo!
root (hd1,0)
kernel (hd1,0)/bzImage root=/dev/hdb2 vga=791

title=Windows XP
...


fstab
Code:

/dev/hdb1  /boot   ext3   
/dev/hdb2  /          reiserfs 
/dev/hde1  swap
/dev/hda1   /mnt/windows   ntfs
/dev/hde2   /mnt/mediatank  vfat
/dev/hdf1    /mnt/isotank       vfat


what am i doing wrong? is there something that i need to pass for reiserfs?
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Fri Feb 06, 2004 9:07 am    Post subject: Reply with quote

Can you verify these?
Code:

$ cat /usr/src/linux/.config | grep DOS_PART
CONFIG_MSDOS_PARTITION=y


Code:

$ lspci | grep IDE

Gives me "0000:00:07.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus Master IDE (rev 06)". Check your kernel config to support yours."
Back to top
View user's profile Send private message
jonfr
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1008
Location: Denmark

PostPosted: Fri Feb 06, 2004 3:35 pm    Post subject: Reply with quote

gonad wrote:
0.94 does NOT fix the - boot to grub command line issue.

you'd think it was tested first, does the developer use lilo? yes, nasty dig... but honestly...


i get this error, 0.94 did not help me :(

i did start from stage3 install, i did update it...upgrading grub did not help...i know it works correct when starting from stage1 install, how odd that seems to be...
Back to top
View user's profile Send private message
spooktastic
n00b
n00b


Joined: 06 Feb 2004
Posts: 14

PostPosted: Fri Feb 06, 2004 6:04 pm    Post subject: Reply with quote

cat /usr/src/linux/.config | grep DOS
gives me:
MS_DOSFS=y
CONFIG_MSDOS_PARTITION=y
lspci | grep IDE
gives me:
command not found (?!)
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Fri Feb 06, 2004 6:07 pm    Post subject: Reply with quote

Code:

emerge pciutils

to get lspci.
Back to top
View user's profile Send private message
nbrown
Tux's lil' helper
Tux's lil' helper


Joined: 26 Oct 2002
Posts: 140
Location: Somewhere in the NE

PostPosted: Fri Feb 06, 2004 6:08 pm    Post subject: Reply with quote

Try the lspci command as root

-nbrown

BTW, I'm having the same VFS please append an appropriate root option error too. Here's another thread where I found it first. If any one has any ideas please drop a note in either of these threads.
Back to top
View user's profile Send private message
spooktastic
n00b
n00b


Joined: 06 Feb 2004
Posts: 14

PostPosted: Sat Feb 07, 2004 12:53 am    Post subject: Reply with quote

ok... let me fly my n00b banner here...
after an lspci i decided to triple check to make sure that i had compiled support for my ide controler on my mobo, nforce2. it was not there. :oops: i had added support for my silicon graphics controller for my other two hds but not the controller on my mobo. after a quick recompile i was able to boot fine and am now emerging gnome... :D

other things that i ended up trying, if this helps anyone else:
downgraded grub to .92
emerged grub with:
Code:
CFLAGS="" emerge grub

i had read on another thread that any kind of optimisation breaks grub.
i don't know if my playing with grub did anything. at least it is working now.
man i feel like a n00b...
Back to top
View user's profile Send private message
PeregrineBF
n00b
n00b


Joined: 27 Jan 2004
Posts: 15

PostPosted: Sat Feb 07, 2004 5:54 am    Post subject: Reply with quote

Fix for the below problem, not listed on the first page.


Code:
VFS: Cannot open root device "hde9" or 21:09
Please append a correct "root=" boot option
Kernel Panic: VFS: Unable to mount root fs on 21:09


Solution: (from deepthought, many thanks)
Quote:
t's just about disabling the "Mount devfs at boot time" switch in kernel config. Or replace the "root=<something>" kernel boot option (cf. /boot/grub/grub.conf) by something devfsish, for example "/dev/discs/disc0/part3" for the harddrive normally refered to as "/dev/hda3".

Regards,
Alexander

This thread.
Back to top
View user's profile Send private message
wo0zy
n00b
n00b


Joined: 13 Jan 2004
Posts: 43
Location: Greifswald, Germany

PostPosted: Sat Feb 07, 2004 6:24 pm    Post subject: Re: arrgggghhh! Reply with quote

[quote="spooktastic"]
Code:

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

title=Gentooooooo!
root (hd1,0)
kernel (hd1,0)/bzImage root=/dev/hdb2 vga=791

title=Windows XP
...


no /boot directory in grub.conf???
Back to top
View user's profile Send private message
pilla
Bodhisattva
Bodhisattva


Joined: 07 Aug 2002
Posts: 7729
Location: Underworld

PostPosted: Sun Feb 08, 2004 3:01 am    Post subject: Re: arrgggghhh! Reply with quote

It should be OK if it's in a partition of its own.


wo0zy wrote:
spooktastic wrote:

Code:

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

title=Gentooooooo!
root (hd1,0)
kernel (hd1,0)/bzImage root=/dev/hdb2 vga=791

title=Windows XP
...


no /boot directory in grub.conf???

_________________
"I'm just very selective about the reality I choose to accept." -- Calvin
Back to top
View user's profile Send private message
SheffieldBlade17
n00b
n00b


Joined: 09 Feb 2004
Posts: 17

PostPosted: Mon Feb 09, 2004 3:01 am    Post subject: It appears my problem may be a grub boot issue Reply with quote

This is what I get when I boot:

root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel (hd0,0)/boot/kernel-2.4.22 root=/dev/hda3

Error 15: File not Found

I know someone had a similar problem, but I couldn't disseminate how to fix it. :?
Back to top
View user's profile Send private message
thej3w
n00b
n00b


Joined: 09 Feb 2004
Posts: 3

PostPosted: Mon Feb 09, 2004 8:45 am    Post subject: Reply with quote

i just got though installing gentoo 2.4.22 and grub boots windows but not gentoo


windows is on hda1
boot is on hda2
swap is on hda3
root is on hda4

how would i have grub setup to boot gentoo?
Back to top
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Mon Feb 09, 2004 1:58 pm    Post subject: Re: It appears my problem may be a grub boot issue Reply with quote

SheffieldBlade17 wrote:

root (hd0,0)
Filesystem type is ext2fs, partition type 0x83
kernel (hd0,0)/boot/kernel-2.4.22 root=/dev/hda3

maybe it is
Code:

kernel (hd0,0)/boot/kernel-2.4.22-r5 root=/dev/hda3

if you're using the recent gentoo-sources. Otherwise try with tab-completion or post the output of "ls ..." like ideoneus described in his very first posting. Make sure there is a boot symlink in /boot, or just try
"kernel kernel-2.4.22-r5 root=/dev/hda3"

thej3w wrote:
how would i have grub setup to boot gentoo?

How did you try to setup grub.conf to boot gentoo?
Back to top
View user's profile Send private message
idoneus
Apprentice
Apprentice


Joined: 26 Mar 2003
Posts: 243
Location: Graz, Austria

PostPosted: Mon Feb 09, 2004 5:20 pm    Post subject: Reply with quote

thej3w wrote:
i just got though installing gentoo 2.4.22 and grub boots windows but not gentoo
*snip*
how would i have grub setup to boot gentoo?
could you post your grub.conf as well as the output of
Code:
ls /boot

_________________
Join the adopt an unanswered post initiative today
Back to top
View user's profile Send private message
SheffieldBlade17
n00b
n00b


Joined: 09 Feb 2004
Posts: 17

PostPosted: Tue Feb 10, 2004 12:30 am    Post subject: Reply with quote

I have tried to configure my gruf with the following KVs with neg results:

2.4.22-gentoo-r5
2.4.21-gss
2.4.20-gentoo-r6
2.4.20-gentoo-r8
2.4.22-r5

Same result as posted earlier. I don't understand what you mean by posting "ls ..."
Back to top
View user's profile Send private message
thej3w
n00b
n00b


Joined: 09 Feb 2004
Posts: 3

PostPosted: Tue Feb 10, 2004 12:35 am    Post subject: Reply with quote

when i type ls /boot

it shows

boot boot-bmp.b boot-menu.b boot-text.b boot.b chain.b grub mbr.b os2_d.b

and my grub thing is currently not confired i got kernel linux-2.4.20-gentoo-r6 and so i basically get an error cannot mount, or file not found. anyhelp would be great.
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, 4, 5 ... 22, 23, 24  Next
Page 4 of 24

 
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