Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Normally, there are solutions available out there to restore grub or install grub provided that linux in installed first. How can I install grub while not having any partition which has an installed linux operating system.

Is it even possible to install GRUB like I want?

share|improve this question
    
What's the matter, didn't you get the answer you wanted at serverfault.com/questions/96207/… ? –  John Gardeniers Dec 21 '09 at 10:36
add comment

3 Answers

up vote 0 down vote accepted

Boot from a Linux LiveCD which contains the Grub package.

Google suggests that Ubuntu's does and also points towards Super Grub Disk.

You might want to include more details about what you're trying to accomplish though. Do you only want to install an MBR in order to boot a non-Linux operating system?

share|improve this answer
    
Dan, actually I want to embed my code in GRUB's code (as its opensource) which will copy data sector by sector from one partition to another when system boots up. I was just trying to use as much less space of my hard drive as possible by just installing GRUB but I have installed Linux now so installing GRUB all alone not needed anymore. Thanks a lot for your help. :) If you know which files of the source code of GRUB may be helpful for me and if you find some time it may turn out useful for me. –  baltusaj Dec 21 '09 at 12:55
add comment

Clicky for instructions.

share|improve this answer
add comment

Since Grub is a bootloader, and allows you to specify how one or more partitions may be used to boot a computer, it is normally installed after an operating system is present on one of the partitions.

There wouldn't be much point in installing Grub first — what would you tell it to do if there are no partitions (with operating systems) to boot from?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.