Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

My Ubuntu Server 12.04 LTS asking me during "apt-get dist-upgrade" where to install "GRUB" update. So how i can simply found out which partition/disc is the proper answer? I mean how to found out where GRUB is currently installed? I found similar question and answer but how to do it without installing additional script? I will be grateful for your advice.

Similar question: How to know the partition where grub is installed

Cheers :)

share|improve this question
    
How is your question different from the one you gave on the link? –  Anwar Shah Oct 23 '12 at 15:32
add comment

marked as duplicate by Thomas W., Jorge Castro, Kevin Bowen, Stephen Myall, Eliah Kagan Jul 3 '13 at 16:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

3 Answers

up vote 4 down vote accepted

Disclaimer

dd command is extremely dangerous . Should be used with caution . Use it at your own risk. Bellow command interferes dd is tested by me and will not harm your system. Do not change the format of the command , the only thing you can change are the letters of the device

eg: /dev/sda , /dev/sdb, /dev/sdc ...etc


You can examine the first 512 bytes of the device with dd command through strings

For /dev/sda

sudo dd bs=512 count=1 if=/dev/sda 2>/dev/null | strings

The results in my device

ZRr=
`|f 
\|f1
GRUB
Geom
Hard Disk
Read
 Error

as you can see , GRUB is there.

source

share|improve this answer
    
Fdisk displayed inf. So where should GRUB upgrade go on Windows Azure - dev/sda or dev/sda1 ? –  amoooc Oct 24 '12 at 12:59
    
Grub can be installed anywhere but from default installed only in the MBR of the device. /dev/sda1 is not a device is a partition. It is not recommended for the bootloader to be installed in a partition. You should always check the letters of the device /dev/sda or /dev/sdb , not /sda1 or sdb1. –  NikTh Oct 24 '12 at 14:35
add comment

https://help.ubuntu.com/community/Grub2/Installing try this documentation from official source

share|improve this answer
add comment

During installation, you will be offered to choose the "Device for bootloader installation". Please select: * either the disk (eg /dev/sdX, not /dev/sdXY) on which the BIOS is setup to boot (recommended for normal use) * OR the partition (eg /dev/sdXY, not /dev/sdX) on which Ubuntu (/boot, else /) will be installed (only if you want to chainload it from another bootloader; if any doubt, do NOT choose this)

REFERENCE : https://help.ubuntu.com/community/Grub2/Installing

share|improve this answer
add comment

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