LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-17-2004, 10:27 PM   #1
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 845

Rep: Reputation: 33
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?
 
Old 01-18-2004, 05:19 AM   #2
je_fro
Member
 
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341

Rep: Reputation: 30
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.
 
Old 01-18-2004, 08:57 AM   #3
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 845

Original Poster
Rep: Reputation: 33
cool..i will have to try that. Thank you
 
Old 01-18-2004, 10:31 AM   #4
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 845

Original Poster
Rep: Reputation: 33
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
 
Old 01-18-2004, 11:33 AM   #5
je_fro
Member
 
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341

Rep: Reputation: 30
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
 
Old 01-18-2004, 10:30 PM   #6
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 845

Original Poster
Rep: Reputation: 33
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
 
Old 01-22-2004, 02:58 PM   #7
zpeed
LQ Newbie
 
Registered: Jan 2004
Posts: 1

Rep: Reputation: 0
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

Last edited by zpeed; 01-22-2004 at 03:11 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting of raw ISO from GRUB/LILO (though preferably GRUB) Orkie Linux - Software 28 12-15-2013 10:37 PM
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 09:01 PM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 09:13 PM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 05:55 AM
1st HDD = RH9.0 (grub) ... How do I modify grub when adding 2nd hard disk ? Onyx^ Linux - Software 1 09-05-2003 10:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration