LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 03-26-2012, 06:01 AM   #1
ulkoma
Member
 
Registered: Feb 2012
Distribution: CentOS
Posts: 69

Rep: Reputation: Disabled
What does "install grub" mean?


Hi

People keep saying I should install grub ie use
Code:
sudo apt-get install grub
but grub is already there! in fact I use grub2 since I am using the latest version of Ubuntu! linux cant run with no bootloader so grub is already there
Do they mean install grub manager or something?

Thanks
 
Old 03-26-2012, 06:08 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
without context, we've no idea what they mean. care to enlighten us?
 
Old 03-26-2012, 06:31 AM   #3
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Well the command at least asks Ubuntu to install grub boot loader. But why are people asking you to install it, no one will be able to guess unless you give us some background.

Quote:
linux cant run with no bootloader so grub is already there
This statement is false and misleading and if someone said you so, s/he is not correct.
 
Old 03-26-2012, 07:33 AM   #4
ulkoma
Member
 
Registered: Feb 2012
Distribution: CentOS
Posts: 69

Original Poster
Rep: Reputation: Disabled
OK let me re-phrase

Let's say I have a fresh install Of Ubuntu the latest version
When do I "gurb --help" I get "The program 'grub' is currently not installed. You can install it by typing: sudo apt-get install grub"

How is that possible? when grub2 is installed by default?
 
Old 03-26-2012, 07:43 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Grub and Grub2 possibly are different packages and hence the issue.
 
Old 03-26-2012, 09:39 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
You do know your computer is not a real person, right?
 
Old 03-26-2012, 09:50 AM   #7
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,736

Rep: Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918
GRUB isn't installed "in Linux" so you can't run GRUB or GRUB2 or get help from them by typing grub or grub2 on the command line.
If you installed GRUB2 then:
Code:
sudo grub-install -v
should say something like:
Code:
grub-install (GRUB) 1.99-18
I'm not sure how you check for GRUB though.
Edit: linuxlover.chaitanya is correct that grub and grub2 are different packages so if you have GRUB2 installed that comes from the package grub2 not grub.

Why do you need to know this though? Is something not working on your computer? What is it you ask or tell friends for them to say "install grub"?

Last edited by 273; 03-26-2012 at 09:53 AM.
 
Old 03-26-2012, 10:33 AM   #8
ulkoma
Member
 
Registered: Feb 2012
Distribution: CentOS
Posts: 69

Original Poster
Rep: Reputation: Disabled
Wait let me get this right: so you telling me that my linux is running with no grub or grub2? please forgive my stupidity but how come I am using an OS with no boot loader?
 
Old 03-26-2012, 10:37 AM   #9
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,073

Rep: Reputation: 384Reputation: 384Reputation: 384Reputation: 384
A couple of things.

Grub and Grub2 are different animals.

"Installing" grub can be many things. You can install the grub (or grub2) package. For that, you'd use the distro package manager, or one of its frontends). You can also install the grub payload on the MBR or your hard disk, that's usually done via the grub-install command. In grub2 and a pc you'll probably use grub2-pc-install, but it really depends on your distro (or whatever live disk you use to install grub2).

Sometimes this can get really a distro-specific issue, so I'd try the docs for your distro or posting into the relevant subforum. I can't be any more concrete than this without more detailed input.
 
1 members found this post helpful.
Old 03-26-2012, 11:22 AM   #10
ulkoma
Member
 
Registered: Feb 2012
Distribution: CentOS
Posts: 69

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by i92guboj View Post



"Installing" grub can be many things. You can install the grub (or grub2) package. For that, you'd use the distro package manager, or one of its frontends). You can also install the grub payload on the MBR or your hard disk, that's usually done via the grub-install command. In grub2 and a pc you'll probably use grub2-pc-install, but it really depends on your distro (or whatever live disk you use to install grub2).
Now that makes sense! Ubuntu's latest versions installs GRUB2 payload on the MBR during the installation however I dont have any grub package on my system!
 
Old 03-26-2012, 12:50 PM   #11
ulkoma
Member
 
Registered: Feb 2012
Distribution: CentOS
Posts: 69

Original Poster
Rep: Reputation: Disabled
How do I know what version of the payload I have on my MBR?
 
Old 03-26-2012, 12:55 PM   #12
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,736

Rep: Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918
If you run the command I suggested and you get a result like I did you have GRUB2.
 
1 members found this post helpful.
Old 03-26-2012, 01:36 PM   #13
ulkoma
Member
 
Registered: Feb 2012
Distribution: CentOS
Posts: 69

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 273 View Post
If you run the command I suggested and you get a result like I did you have GRUB2.
You rock! Solved
 
Old 03-26-2012, 01:37 PM   #14
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 6,736

Rep: Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918Reputation: 1918
Quote:
Originally Posted by ulkoma View Post
You rock! Solved
Sorry for confusing you earlier and glad I could help.
 
  


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
[SOLVED] When I type "sudo grub" it says "command not found" in Ubuntu 9.10 Live CD. msbstar Linux - Newbie 9 07-17-2017 12:27 PM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM
uninstall boot loader "Lilo" install "Grub" sethis Linux - Newbie 6 11-30-2006 09:32 AM
"GRUB _" when booting, nothing but "ctrl+alt+del" functions rabidpencil Linux - Newbie 15 08-08-2006 10:20 AM
Can't install "glibmm" library. "configure" script can't find "sigc++-2.0&q kornerr Linux - General 4 05-10-2005 02:32 PM

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

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