LinuxQuestions.org
Register a domain and help support LQ
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 12-16-2010, 11:41 AM   #16
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908

When you upgraded grub, it installed a small collection of tools onto the disk. However, grub is a special case where 'installing' has an additional dimension. You must also install a grub image onto the boot sector. This is the software that you see and interact with at boot time. On a CentOS host, this is probably done with 'grub-install'. Did you do this already? If not, it would account for the inability for grub to deal with your LVM partition(s).

--- rod.
 
Old 12-16-2010, 12:52 PM   #17
noony123
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: 0
Dear Sir,

My centos is being booted by grub 1.98 successfully, does it still mean that grub is not properly installed ?
 
Old 12-16-2010, 01:51 PM   #18
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Did you do grub-install, or do you have some other way to know it is using the version of grub that understands LVM? What is the origin of your grub installation. Redhat has been known to dumb-down versions of grub.

--- rod.
 
Old 12-16-2010, 02:32 PM   #19
noony123
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: 0
Dear Sir,

I was able to find the rpm for centos. I installed it, and then when i booted, i was able to be booted by grub 1.98. After what you have told, i decided to go with the source installation.

I followed this link

http://mirrors.centos.org/modules/ne...post_id=116386

I was able to get the exact same tar file from gnu grub site

ftp://alpha.gnu.org/gnu/grub

I followed the exact same procedure as mentioned in above link. Now when i came to last step
update-grub, it gives me command not found !!

Now what ? why this command is not present ? what shall i do now ?

Sorry i am really being dumb here, but i am loosing track. Pls guide me
 
Old 12-16-2010, 03:44 PM   #20
noony123
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: 0
I am not able to install from tar.

I used the following

http://www.centos.org/modules/newbb/...r=DESC&start=0

It successfully boots my system using 1.98, but when i go to grub> prompt, i am not able to access my lvm partition !!

Is it possible in centos in the first place ?
 
Old 12-16-2010, 05:01 PM   #21
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Okay, before we proceed, how do you know that the version of grub that boots is version 1.98? If it was not installed to the boot sector, then it will just be the original version. Simply installing grub from either a source tarball or from an RPM will almost certainly not update the boot sector of the boot disk.

--- rod.
 
Old 12-17-2010, 05:26 AM   #22
noony123
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: 0
Sir,

On the boot screen, it was showing Grub 1.98, why else would i say its booting from 1.98 ?

At the boot screen, its showing Grub 1.98. If you want, if possible i can attach the screenshot
 
Old 12-17-2010, 04:19 PM   #23
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
echo Loading Linux 2.6.18-194.el5 ...
Even though grub 2 can recognize wins os you may need a 2.6.32 kernel
In Debian I had to use atleast a 2.6.32 kernel for it to read my windows and ubuntu installations.

http://www.linuxquestions.org/questi...system-839708/

Last edited by EDDY1; 12-17-2010 at 04:24 PM.
 
Old 12-17-2010, 04:56 PM   #24
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Quote:
Originally Posted by EDDY1 View Post
Even though grub 2 can recognize wins os you may need a 2.6.32 kernel
Hmm. I thought the kernel needed a bootloader before the kernel could ever be relevant.

Anyway, noony123, I only wanted to confirm that the version of grub that runs at boot time is actually the version you say it is. Since you failed to answer my direct question on the matter, twice, I wanted to make sure. My prior two posts explain the basis for my question.

For grub to be able to access an LVM partition, grub must have the lvm module loaded. Your grub.conf shows that it is presently using 'insmod ext2'. This is explained in more detail on the Grub Wiki - LVM & RAID. Try changing to or adding 'insmod lvm'.

--- rod.

Last edited by theNbomr; 12-17-2010 at 04:57 PM.
 
Old 12-17-2010, 05:57 PM   #25
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
Hmm. I thought the kernel needed a bootloader before the kernel could ever be relevant.
My Ubuntu installation which has 2.6.35 kernel which was in ext4 partition recognized all operating systems across all partitions,
whereas my Debian installation was loaded on 1st partition, wouldn't read other os'es especially ext4, until changing kernel.
Also letting synaptic install was quite easy. Not only that I needed access to other files witin those os'es.

http://www.linuxquestions.org/questi...system-839708/

Last edited by EDDY1; 12-17-2010 at 06:09 PM.
 
Old 12-17-2010, 06:38 PM   #26
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Okay, I tried to be nice. The kernel version won't make any difference if there is no bootloader (grub) that can load it. Whatever you're trying to say may be true, but it isn't relevant to problems with grub.
 
Old 12-19-2010, 08:29 AM   #27
noony123
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: 0
Dear Sir,

Let me again explain my requirement. I am not trying to boot another OS. I am just trying to clear my concepts.

1) I simply moved vm-linuz (kernel) from /boot to my /root directory. Now /boot doesnt contains any kernel to boot.
2) Now at the time of startup, it will give me an error, which i want to fix.
3) I want to point grub to load my kernel from my /root directory, which happens to be on LVM partition.

Can someone guide me what shall i do now to achieve the above objectives ? i have read about lnsmod lvm, but i would be grateful if someone can tell me where to put this command and what other changes are required in grub.conf and/or grub.cfg file ?
 
Old 12-19-2010, 11:13 AM   #28
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Did you read the link I gave you? The answers are there.

--- rod.
 
Old 12-19-2010, 11:41 PM   #29
noony123
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: 0
Sorry sir, i missed the link. I will check it today and post the result by tomorrow. I really appreciate your help sir.

Thanks again
 
Old 12-20-2010, 02:47 AM   #30
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
A shot in the dark, maybe this is yor problem.
https://bbs.archlinux.org/viewtopic.php?id=83495

If it is use Gparted-live-cd change flag
 
  


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
Unable to boot into GRUB loader: GRUB command shell boots up: urgent issue wombat53 Linux - Software 9 09-04-2009 07:20 AM
GRUB issue Ubuntu213 Linux - Newbie 4 02-13-2009 04:15 PM
Grub Issue rvijay Linux - Newbie 3 09-23-2006 03:07 PM
Grub Issue BittaBrotha Linspire/Freespire 2 09-03-2005 09:38 PM
Grub Issue david_harvard Linux - Newbie 2 06-09-2004 02:59 AM


All times are GMT -5. The time now is 12:58 AM.

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