LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-18-2005, 08:04 AM   #1
jtush
LQ Newbie
 
Registered: Feb 2005
Posts: 6

Rep: Reputation: 0
kernel 2.6.10-1.766


I am new to linux and having some issues with my kernel update. I ran up2date
and was told I have a new kernel(2.6.10-1.766). However when I boot it does not show this kernel in grub, also my grub.conf file in /etc is missing . Has anyone had this issue before and if so how do I fix it?

Last edited by jtush; 02-18-2005 at 08:14 AM.
 
Old 02-18-2005, 08:23 AM   #2
edgood1
Member
 
Registered: Jan 2005
Distribution: fedora, redhat, gentoo, suse
Posts: 30

Rep: Reputation: 15
your grub.conf file is located at /boot/grub/grub.conf

Check the kernel you are running by doing a


bash$ uname -r

if you want to boot a different kernel in your /boot directory, then edit the grub.conf file...

mine looks like this (just for reference):

#
#Sample boot menu configuration file
#

# Boot automatically after 30 secs.
timeout 10

# By default, boot the first entry.
default 1

# Fallback to the second entry.
fallback 0


title 2.6.9
root (hd0,0)
kernel /boot/vmlinuz-2.6.9 root=/dev/hda5


title 2.6.10
root (hd0,0)
kernel /boot/vmlinuz-2.6.10 root=/dev/hda5



##

if you need any more help just reply to this
 
Old 02-18-2005, 08:28 AM   #3
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
Isn't it named menu.lst? And to update it run 'update-grub'.
 
Old 02-18-2005, 09:08 AM   #4
edgood1
Member
 
Registered: Jan 2005
Distribution: fedora, redhat, gentoo, suse
Posts: 30

Rep: Reputation: 15
yes ... but there usually is a symlink. i know there is one with feodra core 3...which that kernel is for

lrwxrwxrwx 1 root root 9 Nov 29 15:37 menu.lst -> grub.conf
 
Old 02-18-2005, 11:49 AM   #5
jtush
LQ Newbie
 
Registered: Feb 2005
Posts: 6

Original Poster
Rep: Reputation: 0
thanks , I looked for grub in /boot . There is no grub directory my /boot directory lloks like this

config-2.6.10-1.760_FC3 System.map-2.6.10-1.760_FC3
config-2.6.10-1.766_FC3 System.map-2.6.10-1.766_FC3
initrd-2.6.10-1.760_FC3.img vmlinuz-2.6.10-1.760_FC3
initrd-2.6.10-1.766_FC3.img vmlinuz-2.6.10-1.766_FC3

when I search for grub it shows it in

/sbin/grub /etc/grub.conf /usr/share/grub /usr/share/man/man8/grub.8.gz

but the link in /etc/grub.conf is no good

what exactly do I need to do sorry, I'm extremely new at this

I checked my kernel I'm running

2.6.9-1.667

Last edited by jtush; 02-18-2005 at 11:51 AM.
 
Old 02-18-2005, 12:54 PM   #6
edgood1
Member
 
Registered: Jan 2005
Distribution: fedora, redhat, gentoo, suse
Posts: 30

Rep: Reputation: 15
odd... i thought fedora 3 setup grub by default...
just to make sure its installed....

bash$ rpm -q grub

then try running:

bash$ /sbin/grub-install /dev/hda

where /dev/hda is your boot drive....
i'm not too framililar with this script.... i usally do it manually...
i think this should install grub and put /boot/grub.conf into place.


if it doesn't work let me know i'll talk you through the 'manual' way....



--eddie
 
Old 02-18-2005, 01:46 PM   #7
jtush
LQ Newbie
 
Registered: Feb 2005
Posts: 6

Original Poster
Rep: Reputation: 0
I tried this is what i got

]# rpm -q grub
grub-0.95-3
]# /sbin/grub-install /dev/hda
Probing devices to guess BIOS drives. This may take a long time.
/dev/mapper/VolGroup00-LogVol00 does not have any corresponding BIOS drive.

any ideas?

Last edited by jtush; 02-18-2005 at 01:58 PM.
 
Old 02-18-2005, 03:31 PM   #8
edgood1
Member
 
Registered: Jan 2005
Distribution: fedora, redhat, gentoo, suse
Posts: 30

Rep: Reputation: 15
weird... thats usually the error you get when you try to install grub on a software managed RAID 1...

i am a little confused.... i have 2 questions:

how did you install fedora?

what are you booting from...?/ how do you boot?


please show me the results from

bash$ fdisk -l

(thats lower case L)
 
Old 02-18-2005, 04:09 PM   #9
edgood1
Member
 
Registered: Jan 2005
Distribution: fedora, redhat, gentoo, suse
Posts: 30

Rep: Reputation: 15
just for reference.... this is how to do it by hand....might want to give that a shot


bash$ sudo grub --no-floppy

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> device (hd0) /dev/hda

grub> root (hd0,0)
Filesystem type is reiserfs, partition type 0x83

grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/reiserfs_stage1_5" exists... yes
Running "embed /boot/grub/reiserfs_stage1_5 (hd0)"... 26 sectors are embedded.
succeeded
Running "install /boot/grub/stage1 (hd0) (hd0)1+26 p (hd0,0)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
Done.

grub>
 
Old 02-18-2005, 04:47 PM   #10
jtush
LQ Newbie
 
Registered: Feb 2005
Posts: 6

Original Poster
Rep: Reputation: 0
I installed from disk everything seemed to work fine from that .
here are the results from fdisk -l ( I used lower case L)

]$ fdisk -l
bash: fdisk: command not found
 
Old 02-18-2005, 04:57 PM   #11
jtush
LQ Newbie
 
Registered: Feb 2005
Posts: 6

Original Poster
Rep: Reputation: 0
I just tried to do it manually and this is what I got

as user

]$ sudo grub --no-floppy
jtush is not in the sudoers file. This incident will be reported.

as root

# sudo grub --no-floppy
sudo: grub: command not found

the disk I used to install were provided by my office several other people have used them only one other person had this issue
I Installed a work station with most packages except for KDFCE and Games
 
Old 02-18-2005, 05:21 PM   #12
jtush
LQ Newbie
 
Registered: Feb 2005
Posts: 6

Original Poster
Rep: Reputation: 0
I got it to run using /sbin/grub
now I have a grub dir in /boot but I have no grub.conf
do I need to write one and if so how do I do it?

my grub directory looks like this in boot

device.map iso9660_stage1_5 stage1 xfs_stage1_5
e2fs_stage1_5 jfs_stage1_5 stage2
fat_stage1_5 minix_stage1_5 ufs2_stage1_5
ffs_stage1_5 reiserfs_stage1_5 vstafs_stage1_5
 
  


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
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
kernel-source-2.6.5-7.src.rpm requires kernel-dummy to build!? fizzdandantilus SUSE / openSUSE 5 12-02-2004 12:48 PM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
Linux Kernel Problem -- Kernel panic: CPU context corrupt crcooney Linux - Distributions 0 01-15-2004 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:26 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