LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 09-07-2008, 02:33 AM   #1
williamv2
LQ Newbie
 
Registered: Sep 2008
Posts: 4

Rep: Reputation: 0
Lightbulb Installing GRUB or GRUB2 from scratch


Dear members,

I am a Windows Vista user and i would like to go over to a linux-based system. i fell on to Fedora and i am currently downloading a dvd-copy.
My question is: how can i install grub or grub2? I am not an expert in the matter and am willing to learn.

When trying to research on the internet, grub is explained but a simple step by step guide for Windows-users is not present.

Please advice.
Thank you in advance!
 
Old 09-07-2008, 02:37 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Fedora will (or should) do that automatically.
 
Old 09-07-2008, 03:01 AM   #3
williamv2
LQ Newbie
 
Registered: Sep 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Nylex View Post
Fedora will (or should) do that automatically.
Thank you for your quick reply.

Anyway, i am still intrigued by the way to do this manually? Do i need to make a bootable cdrom or can i do this from within the windows platform?
Please advice.
Sincerely,
 
Old 09-07-2008, 03:08 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
I'm not really sure to be honest, and I'm not sure why you'd want to! After you've installed Fedora, if you've chosen not to install GRUB (if it gives you the choice), you can probably boot from the CD and use "rescue mode" (or the equivalent) to install GRUB. Other than that, perhaps the Fedora live CD has the grub-install program and you can use that, but again, I'm not sure about this.
 
Old 09-07-2008, 03:28 AM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
FIRST
Fedora 9 is not meant / geared for the NEW Linux user depending on your hardware fedora 9 may not install or run without some "Fixing"


do you have a Vista install dvd a real install disk and not a "rescue" disk from the manufacture incase something goes wrong .
you will need to use the Windows vista tool to resize and repartition the vista disk ( this might KILL vista) .

install fedora . the default settings will replace the windows vista bootloader with GRUB on the MBR
read the documentation
http://fedoraproject.org/
http://docs.fedoraproject.org/install-guide/f9/en_US/
http://optics.csufresno.edu/~kriehn/...les/f9/f9.html
http://optics.csufresno.edu/~kriehn/.../f9.html#howto
---------------------------
but getting vista to boot from grub is NO PICNIC .XP would and is done automatically
 
Old 09-07-2008, 03:48 AM   #6
williamv2
LQ Newbie
 
Registered: Sep 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by John VV View Post
FIRST
Fedora 9 is not meant / geared for the NEW Linux user depending on your hardware fedora 9 may not install or run without some "Fixing"


do you have a Vista install dvd a real install disk and not a "rescue" disk from the manufacture incase something goes wrong .
you will need to use the Windows vista tool to resize and repartition the vista disk ( this might KILL vista) .

install fedora . the default settings will replace the windows vista bootloader with GRUB on the MBR
read the documentation
http://fedoraproject.org/
http://docs.fedoraproject.org/install-guide/f9/en_US/
http://optics.csufresno.edu/~kriehn/...les/f9/f9.html
http://optics.csufresno.edu/~kriehn/.../f9.html#howto
---------------------------
but getting vista to boot from grub is NO PICNIC .XP would and is done automatically
Thank you for your quick reply.

You are talking about repartitioning the harddrive. I presume this is to create a new partition for the fedora platform?
Which tool in vista you are talking about and why would it kill vista?

I am not interested in installing grub into the MBR, as i have read some articles that do not advice this option. instead i could install it to the windows partition?

Is there a possibility to backup first the current boot options??

Thank you for your response.
Sincerely.
 
Old 09-07-2008, 04:32 AM   #7
williamv2
LQ Newbie
 
Registered: Sep 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Dear John,

I particulary like your mentioned articles:
http://optics.csufresno.edu/~kriehn/...artitions.html
http://optics.csufresno.edu/~kriehn/...dual_boot.html

I have already found all of my answers in here. Thank you!

The only thing i need to know now is how to manually install grub legacy or grub 2 from scratch, presuming on,ly windows vista is installed.
Please advice.

Last edited by williamv2; 09-07-2008 at 04:49 AM.
 
Old 09-07-2008, 09:30 AM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,492

Rep: Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488Reputation: 2488
Here's a link to the Grub Manual whre you can find an explanation of creating a Grub boot floppy or CD:

http://www.gnu.org/software/grub/man...node/index.htm

It also has pages explaining how to install Grub although I don't know why you would do that if you are only using vista.
 
Old 09-07-2008, 11:12 AM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
-- WARNING --
I do not recommend using GRUB to boot a vista ONLY box , so when you FUBAR it don't ask me to fix a vista only box


Quote:
I am not interested in installing grub into the MBR, as i have read some articles that do not advice this option. instead i could install it to the windows partition?
This IS the MBR if you PUT THE LINUX GRUB ON THE WINDOWS PARTITION , grub requires a nix partition to run
---------------
put the fedora dvd into the drive and reboot
go into rescue mode (9 fallow the on screen}
and after you do
Code:
chroot /mnt/sysimage

--- then run ---
grub-install /dev/sda
maybe or maybe not , most likely NOT the system will boot .
BUT most likely you will have a brick
 
Old 09-07-2008, 08:56 PM   #10
CJS
Member
 
Registered: May 2008
Location: California, USA
Distribution: Ubuntu 8.10
Posts: 247

Rep: Reputation: 49
Quote:
Originally Posted by John VV View Post
-- WARNING --
I do not recommend using GRUB to boot a vista ONLY box , so when you FUBAR it don't ask me to fix a vista only box



This IS the MBR if you PUT THE LINUX GRUB ON THE WINDOWS PARTITION , grub requires a nix partition to run
---------------
put the fedora dvd into the drive and reboot
go into rescue mode (9 fallow the on screen}
and after you do
Code:
chroot /mnt/sysimage

--- then run ---
grub-install /dev/sda
maybe or maybe not , most likely NOT the system will boot .
BUT most likely you will have a brick
I don't believe the grub-install command will work as you give it, because that tells Grub to install into the MBR of sda but look for its files in whatever partition you run that command from, which is the Fedora DVD. I believe the correct syntax is:
Code:
grub-install --root-directory=/dev/sdaX /dev/sda
That will install Grub to the MBR and point it to partition sdaX for all its system files, including menu.lst/grub.conf. The grub-install command does not create a menu.lst/grub.conf though, but you can do that with the "update-grub" command (but you should be chrooted into the linux partition).

Also, I'm curious why you are so against using Grub to boot Vista? The Vista MBR merely chain loads whichever primary partition on the hard drive is marked active, i.e. has its boot flag set. Grub is perfectly capable of chain loading the Vista partition, and I have many friends who use Grub to boot Vista with ease. Why do you think Grub will "brick" Vista?
 
Old 03-31-2009, 09:31 PM   #11
devilsclaw
LQ Newbie
 
Registered: Mar 2009
Posts: 1

Rep: Reputation: 0
if you want to install grub manually you will have to setup your system to compile from source.

which means install all the basic dev packages.. that is if you plan on compiling.

then you will need to get the dependencies for things like fat32 reiser, and maybe others for other modules.

once you compile and install.. which requires you to have root access to actually install..

then you run

grub-install --root-directory=/ /dev/sda

/dev/sda is your drive and you do not point it to the partition that is why you do not see a 1 or 2 or what ever next to the sda.

the root directory should stay like it is and you should have a folder called boot in the root of your drive and inside there, there should be a folder called grub.

/boot/grub

once you do that, then you have to configure the grub.cfg in the /boot/grub folder. then your done.
 
  


Reply

Tags
boot, fedora, grub, grub2, windows



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
grub problem and looking for grub2 docs m-jackson Linux - Newbie 1 10-27-2006 02:18 AM
Grub Legacy or Grub2? RAVC Linux - Software 2 01-21-2006 09:43 AM
Error 18 when trying to boot with GRUB or GRUB2 DaneM Linux - Software 6 09-20-2005 02:45 PM
Editing GRUB2 ssinustwo Fedora - Installation 1 07-20-2004 09:16 PM
ali aladdin v agp stinks :scratch: :scratch: :scratch: Mr Marmmalade Linux - Hardware 1 07-08-2003 05:11 AM

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

All times are GMT -5. The time now is 11:11 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
Open Source Consulting | Domain Registration