Grub help...
I am running Mandrake 9.2 and just upgraded my kerne to 2.6.1. My question is...where is my grub.config file? When i was using RH9 it was in /boot/grub/.config. There is something simaliar --> /boot/grub/ "menu.lst". Is this the config file that tells Grub what to boot? Do i edit the file and save it as .config? There is a /etc/lilo.conf but no etc/grub/config. Upon boot up it says "Grub 0.93" and has a small menu list to tell it what to boot, so it is booting from Grub and not Lilo right?
|
On my machine, /boot/grub/grub.conf is merely a symlink to /boot/grub/menu.lst.
So you can edit menu.lst and make the symlink, or not. |
cool..i will have to try that. Thank you
|
Ok, i just compiled my kernel again, but am afraid to reboot because i don't want to do another install! Here is my /boot..... i think i have everything up to par, but i am not sure.
total 4557 -rw-r--r-- 1 root root 512 Jan 17 19:34 boot.0300 lrwxrwxrwx 1 root root 19 Jan 18 08:53 config -> config-2.4.22-10 mdk -rw-r--r-- 1 root root 52049 Sep 18 06:43 config-2.4.22-10mdk -rw-r--r-- 1 root root 5032 Sep 18 10:46 diag1.img -rw-r--r-- 1 root root 16796 Sep 18 10:46 diag2.img drwxr-xr-x 2 root root 1024 Jan 17 20:21 grub/ -rw-r--r-- 1 root root 21457 Jan 18 10:01 initrd-2.6.1.img lrwxrwxrwx 1 root root 27 Jan 18 08:54 kernel.h -> /boot/kernel.h -2.4.22-10mdk -rw-r--r-- 1 root root 537 Jan 18 00:49 kernel.h-2.4.22-10mdk -rw------- 1 root root 239104 Jan 17 20:33 map lrwxrwxrwx 1 root root 15 Jan 18 10:15 message -> message-graphic -rw-r--r-- 1 root root 164755 Jan 18 09:47 message-graphic -rw-r--r-- 1 root root 132 Jan 17 20:34 message-text lrwxrwxrwx 1 root root 22 Jan 18 10:00 System.map -> /boot/System .map-2.6.1 -rw-r--r-- 1 root root 625045 Sep 18 06:43 System.map-2.4.22-10mdk -rw-r--r-- 1 root root 725648 Jan 18 10:00 System.map-2.6.1 -rw-r--r-- 1 root root 256 Jan 17 20:33 us.klt lrwxrwxrwx 1 root root 19 Jan 18 10:00 vmlinuz -> /boot/vmlinuz-2 .6.1 -rw-r--r-- 1 root root 1343803 Sep 18 06:43 vmlinuz-2.4.22-10mdk -rw-r--r-- 1 root root 1436548 Jan 18 09:59 vmlinuz-2.6.1 there was a symbolic link linking initrd.img-> initrd-2.4.22-20.mdk, but i removed it. Also is there a way to trace links to see where they go? I have no idea what the kernel.h-> /boot/kernel.h -2.4.22-10mdk means or where it goes? Do i need to link my new 2.6.1 to that? I would like to make sure everything is right so i don't have to do this all over again! also this is my /grub/menu.lst timeout 10 color black/cyan yellow/cyan i18n (hd0,1)/grub/messages altconfigfile (hd0,1)/grub/menu.once default 0 title linux kernel (hd0,1)/vmlinuz-2.6.1 root=/dev/hda3 devfs=mount hdd=ide-scsi acpi=ht resume=/dev/hda5 splash=silent vga=788 initrd (hd0,2)/initrd.img title linux-nonfb kernel (hd0,2)/vmlinuz root=/dev/hda3 devfs=mount hdd=ide-scsi acpi=ht resume=/dev/hda5 initrd (hd0,2)/initrd.img title failsafe kernel (hd0,2)/vmlinuz root=/dev/hda3 failsafe devfs=nomount hdd=ide-scsi acpi=ht resume=/dev/hda5 initrd (hd0,2)/initrd.img title windows root (hd0,0) chainloader +1 title floppy root (fd0) chainloader +1 |
Well, I think it was a mistake to remove that symlink for your mdk kernel. I don't use mdk, so I can't say for sure, but I don't think you'll be able to boot your original kernel without it.
It looks okay to me, but then again I'm not sure how you got your initrd-2.6.1. Did it work? If not, have a liveCD of some sort and get ready to go rescue your machine. Also, you should probably investigate TAB completion at the grub command line by reading the grub documentation. That will help in case you can't reboot. Good Luck |
I need help getting grub to boot new kernel. i have the initrd , vmlinuz, and Sytem.map linked right. I am lost on how to link kernel.h to the new 2.6.1. Before i messed with anything it was linked together... kernel-> kernel-2.4.22-10mdk.
What's the..message->message-graphic link? i dont see a kernel-2.6.1 to link kernel.h to total 4562 -rw-r--r-- 1 root root 512 Jan 17 19:34 boot.0300 lrwxrwxrwx 1 root root 19 Jan 18 20:14 config -> config-2.4.22-10mdk -rw-r--r-- 1 root root 52049 Sep 18 06:43 config-2.4.22-10mdk -rw-r--r-- 1 root root 5032 Sep 18 10:46 diag1.img -rw-r--r-- 1 root root 16796 Sep 18 10:46 diag2.img drwxr-xr-x 2 root root 1024 Jan 18 08:00 grub/ -rw-r--r-- 1 root root 18948 Jan 18 21:26 initrd-2.6.1.img lrwxrwxrwx 1 root root 22 Jan 18 21:27 initrd.img -> /boot/initrd-2.6.1.img -rw-r--r-- 1 root root 7116 Jan 18 21:53 kernel.h -rw-r--r-- 1 root root 537 Jan 18 00:49 kernel.h-2.4.22-10mdk -rw------- 1 root root 239104 Jan 18 08:10 map lrwxrwxrwx 1 root root 15 Jan 18 22:08 message -> message-graphic -rw-r--r-- 1 root root 164755 Jan 18 08:09 message-graphic -rw-r--r-- 1 root root 132 Jan 18 08:12 message-text lrwxrwxrwx 1 root root 22 Jan 18 21:15 System.map -> /boot/System.map-2.6.1 -rw-r--r-- 1 root root 625045 Sep 18 06:43 System.map-2.4.22-10mdk -rw-r--r-- 1 root root 720858 Jan 18 21:14 System.map-2.6.1 -rw-r--r-- 1 root root 256 Jan 18 08:10 us.klt lrwxrwxrwx 1 root root 19 Jan 18 21:14 vmlinuz -> /boot/vmlinuz-2.6.1 -rw-r--r-- 1 root root 1343803 Sep 18 06:43 vmlinuz-2.4.22-10mdk -rw-r--r-- 1 root root 1440874 Jan 18 21:14 vmlinuz-2.6.1 |
how to set the lost link
hello,
well, i guess i got you all wrong, because it seems you have lost your kernel-x.x.xx.h file itself, not the link. i solved just the problem of making links: i have also deleted my links vmlinuz, kernel.h and initrd.img from the boot directory. if you go as root to the console into directory /boot you can set up links with the command ln -s filetolinkto linkname -s makes it a soft link (normal for these files in /boot), meaning if you delete the link, the target doesn't get deleted too, which would be standard if you not use -s. bye, zpeed |
All times are GMT -5. The time now is 08:10 AM. |