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.

I need to find where GRUB was installed, for example, which drive/partition. Is it possible to figure out where it was installed?

share|improve this question
1  
I have absolutely no idea what you might talk about. –  Sven Dec 9 '11 at 9:13
    
I thought the title is descriptive enough, I did not want to write the same thing again for the content. Sorry for that. I correct my fault. –  Sencer H. Dec 9 '11 at 16:32

1 Answer 1

up vote 7 down vote accepted

Take a look at the Boot Info Script:

# ./boot_info_script.sh 

boot_info_script version: 0.60        [17 May 2011]

Identifying MBRs...
Computing Partition Table of /dev/sda...
Computing Partition Table of /dev/sdb...
Searching sda1 for information... 
Searching sda2 for information... 
Searching sda3 for information... 
Searching sdb1 for information... 

Finished. The results are in the file "RESULTS.txt"
located in "/root/".

and the results:

============================= Boot Info Summary: ===============================

 => Grub Legacy0.97 is installed in the MBR of /dev/sda and looks at sector 
    178241 on boot drive #1 for the stage2 file.  A stage2 file is at this 
    location on /dev/sda.  Stage2 looks on partition #1 for /grub/grub.conf..
 => No boot loader is installed in the MBR of /dev/sdb.
share|improve this answer
    
+1 for superb analytical skill –  kubanczyk Dec 9 '11 at 9:59
    
Life saver tool.. Finaly I can sleep tonite :) –  Sencer H. Dec 9 '11 at 10:23

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.