View previous topic :: View next topic |
Author |
Message |
googoo n00b
Joined: 22 Sep 2004 Posts: 25 Location: nomansland
|
Posted: Thu Sep 23, 2004 5:20 am Post subject: can't find my grub.conf |
|
|
can't find my grub.conf
i have finished installing my gentoo
i installed bootsplash and ran rc-update
and i also copied the given initrd to /boot/grub
and i edited the grub initrd /initrd-2.4.26-gentoo-1024*768
but it is not booting that i have edit it everytime time i try to logon
when i tries editing grub.conf
there is no /boot/grub/grub.conf
there is not even /boot/grub directory exists
how can i fix it ?
i also want run bootsplash _________________ y can't we call mouse a rat |
|
Back to top |
|
|
codergeek42 Bodhisattva
Joined: 05 Apr 2004 Posts: 5142 Location: Anaheim, CA (USA)
|
Posted: Thu Sep 23, 2004 5:21 am Post subject: |
|
|
Is /boot mounted? Also, I remember that I had to manually make a /boot/grub/grub.conf a symlink to /boot/grub/menu.lst before it would work. _________________ ~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF |
|
Back to top |
|
|
googoo n00b
Joined: 22 Sep 2004 Posts: 25 Location: nomansland
|
Posted: Thu Sep 23, 2004 5:41 am Post subject: |
|
|
mmmm'
i guess
if it is not mounted i will make it
but
what else can go wrong
GENTOO FORUM ROCKS _________________ y can't we call mouse a rat |
|
Back to top |
|
|
pablo_supertux Advocate
Joined: 25 Jan 2004 Posts: 2935 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Thu Sep 23, 2004 7:27 am Post subject: |
|
|
A wrong path while installing grub. Do you have a boot partition?
Post your /etc/fstab
run
Code: |
$ find / -iname grub
|
where is grub? _________________ A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth! |
|
Back to top |
|
|
googoo n00b
Joined: 22 Sep 2004 Posts: 25 Location: nomansland
|
Posted: Thu Sep 23, 2004 5:20 pm Post subject: |
|
|
here is my fstab
<fs> mountpoint <type> <opts>
/de/hda1 /boot ext2 noauto,noatime
/dev/hda2 none swap sw
/dev/hda3 / ext3 noautime
/dev/cdrom /mnt/cdrom auto noauto _________________ y can't we call mouse a rat |
|
Back to top |
|
|
pablo_supertux Advocate
Joined: 25 Jan 2004 Posts: 2935 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Thu Sep 23, 2004 5:33 pm Post subject: |
|
|
and where is your grub config directory _________________ A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth! |
|
Back to top |
|
|
googoo n00b
Joined: 22 Sep 2004 Posts: 25 Location: nomansland
|
Posted: Thu Sep 23, 2004 5:43 pm Post subject: |
|
|
i have this when i run find / -iname grub
/usr/lib/grub
/usr/lib/grub/grub
/usr/portage/sys-boot/grub
and after mounting my /dev/hda1 on /boot
and running find / iname grub gives this one too
/boot/grub
but when i reboot i need to mount it again
and inorder to boot i have edit my grub commands _________________ y can't we call mouse a rat |
|
Back to top |
|
|
pablo_supertux Advocate
Joined: 25 Jan 2004 Posts: 2935 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Thu Sep 23, 2004 6:02 pm Post subject: |
|
|
Ok, you have your boot partition and boot config files in hda1. Which partition is the root Partition? hda3?
Well, do this:
Code: |
$ mount /dev/hda1 /boot
$ cd /boot
$ mkdir boot
$ mv grub boot
$ cd /boot/boot/grub
$ touch menu.lst
$ ln -s menu.lst grub.conf
$ vim grub.conf (or nano -w or the test editor your like)
|
and the insert
Code: |
timeout 10
default 0
title Gentoo
root (hd0,0)
kernel (hd0,0)/pathto_your_kernel_image root=/dev/hda3
|
I suppose that your kernel image is in /dev/hda1.
Save grub.conf and
Code: |
$ grub
GNU GRUB version 0.94 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
|
reboot and enjoy _________________ A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth! |
|
Back to top |
|
|
googoo n00b
Joined: 22 Sep 2004 Posts: 25 Location: nomansland
|
Posted: Thu Sep 23, 2004 6:14 pm Post subject: |
|
|
thanks
but i have a configured grub
but my problem is with mounting my /boot partiotion permenently
yes i have my root partition on /dev/hda3
how can i mount my /boot partion pemanent
#ls /boot/grub
it gives
e2fs-stage1-5 jfs_stage1-5 reiserfs-stage1-5 vsfats_stage1_5
and a lot moe files that usually resides in there
with splash.xpm.gz
could i run a splash screen too? _________________ y can't we call mouse a rat |
|
Back to top |
|
|
pablo_supertux Advocate
Joined: 25 Jan 2004 Posts: 2935 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Thu Sep 23, 2004 6:39 pm Post subject: |
|
|
googoo wrote: | thanks
but i have a configured grub
but my problem is with mounting my /boot partiotion permenently
yes i have my root partition on /dev/hda3
how can i mount my /boot partion pemanent
#ls /boot/grub
it gives
e2fs-stage1-5 jfs_stage1-5 reiserfs-stage1-5 vsfats_stage1_5
and a lot moe files that usually resides in there
with splash.xpm.gz
could i run a splash screen too? |
i don't understand your question about mounting the boot partition. Do you the system to mount the boot partition by itself? Then see your /etc/fstab, you have namly:
/de/hda1 /boot ext2 noauto,noatime
noauto must go away. Chnage your /etc/fstab to
/de/hda1 /boot ext2 noatime
splashscreen for grub? Use (in grub.conf)
Code: |
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
|
change the partition number and path so it fits with your system _________________ A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth! |
|
Back to top |
|
|
googoo n00b
Joined: 22 Sep 2004 Posts: 25 Location: nomansland
|
Posted: Thu Sep 23, 2004 6:57 pm Post subject: |
|
|
i had edited everhthing like u said and i edited it
in the way they said in the bootsplash doc too
now it takes such a long time to load grub
and after bootin it gives me a funny screen with horizontal dotted lines
and if i press enter to boot it gives me this message
booting command-list
root (hd0,0)
file system type is ext2fs , partition type (not clear*)
kernel /kernel-2.4.26-gentoo-r6 root=dev/hda3 vga=791 video=vesa 1024*768
error ID file not found
press any key to continue
still i am having a black & white mode dirupted display
please help me fix this _________________ y can't we call mouse a rat |
|
Back to top |
|
|
pablo_supertux Advocate
Joined: 25 Jan 2004 Posts: 2935 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
|
Back to top |
|
|
asiobob Veteran
Joined: 29 Oct 2003 Posts: 1375 Location: Bamboo Creek
|
Posted: Fri Sep 24, 2004 1:03 am Post subject: |
|
|
there appears to be a spelling error the various references to fstab
its /dev/hda1 but yours says /de/hda1 |
|
Back to top |
|
|
googoo n00b
Joined: 22 Sep 2004 Posts: 25 Location: nomansland
|
Posted: Fri Sep 24, 2004 2:37 pm Post subject: |
|
|
ASIO_BOB wrote: | there appears to be a spelling error the various references to fstab
its /dev/hda1 but yours says /de/hda1 |
it was just a typing error made while posting
not in my fstab _________________ y can't we call mouse a rat |
|
Back to top |
|
|
googoo n00b
Joined: 22 Sep 2004 Posts: 25 Location: nomansland
|
Posted: Fri Sep 24, 2004 2:44 pm Post subject: |
|
|
i reinstalled gentoo and recompiled my kernel
and added bootsplash too
but now my problem is my computer bootstraps
it is not showing my grub menu
and after the time out specified ie 50
it is booting mr to gentoo
first it shows some disrupted display
and after that it boots with splash mode
and after a while Iam getting a kernel panic message
can anyone help me !!??
thanks in advance _________________ y can't we call mouse a rat |
|
Back to top |
|
|
pablo_supertux Advocate
Joined: 25 Jan 2004 Posts: 2935 Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)
|
Posted: Fri Sep 24, 2004 6:59 pm Post subject: |
|
|
which kernel panic message? Have you built the filesystem of the root partition in the kernel?
I would make the thing with the bootsplash and so at the very end, when everythin runs. _________________ A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth! |
|
Back to top |
|
|
googoo n00b
Joined: 22 Sep 2004 Posts: 25 Location: nomansland
|
Posted: Fri Sep 24, 2004 7:41 pm Post subject: |
|
|
thanks pablo i got it fixed
this was the message i was getting
Kernel panic: VFS: Unable to mount root fs on hda3
Ii been 2.4 kernel
and yesterday only i compiled a 2.6 one
it was the problem with 2.6 kernel
then i changed my boot option in my grub.conf
from root=/dev/hda3 to 0303
here is my grub.conf
default=0
timeout=30
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=googoonix
root=(hd0,0)
kernel=(hd0,0)/boot/bzImage root=0303 init=linuxrc ramdisk=8192 real_root=/dev/hda3 video=vesafb:ywrap,mtrr vga=0x317
initrd=/boot/initrd-gentoo-1024x768
is there any suggestions u can give
thank you _________________ y can't we call mouse a rat |
|
Back to top |
|
|
jwb n00b
Joined: 27 Aug 2004 Posts: 4 Location: LA, California
|
Posted: Thu Sep 30, 2004 7:55 am Post subject: missing grub.conf file is usually invisible after install. |
|
|
Your initial problem (missing grub.conf file) is an aspect of the system:
Changing GRUB Bootup Menu:
You will not be allowed to access the grub.conf file
if you boot from the disk it is on.
So boot from your installation CD
(a Linux boot floppy should also work),
... boot: *as you did at first*
# mount /dev/hda3 /mnt/gentoo
# mount /dev/hda1 /mnt/gentoo/boot
# nano -w /mnt/gentoo/boot/grub/grub.conf
edit to taste, then
# reboot
(Remember to remove boot media)
Obviously, "hda1" & "hda3" should be replaced with
the appropriate labels for your "boot" and "/" partitions.
This will work. |
|
Back to top |
|
|
|