[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: GRUB version



On Wed, 30 Nov 2011 15:40:52 +0000, Camaleón wrote:

> On Wed, 30 Nov 2011 08:37:33 -0600, Hugo Vanwoerkom wrote:
> 
>> Is there a way to find out what version of grub is installed in the MBR
>> of a drive?
> 
> "grub-install -v" will tell the installed version.
> 
> Anyway... IIRC, the version is printed at the top of the boot menu.

The question aroused my curiosity, so I tried looking at the boot sector 
itself:

$ sudo dd if=/dev/sda of=mbr_backup.bin bs=512 count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.00038036 s, 1.3 MB/s
$ file mbr_backup.bin
mbr_backup.bin: x86 boot sector; GRand Unified Bootloader, stage1 version 
0x3, stage2 address 0x2000, stage2 segment 0x200, GRUB version 0.94; 
partition 1: ID=0x27, starthead 1, startsector 63, 25173792 sectors; 
partition 2: ID=0x7, starthead 254, startsector 25173855, 208845 sectors; 
partition 3: ID=0x7, active, starthead 254, startsector 25382700, 
44194815 sectors; partition 4: ID=0x5, starthead 254, startsector 
69577576, 243000472 sectors, code offset 0x48, Bytes/sector 190, sectors/
cluster 124, reserved sectors 191, FATs 6, root entries 185, sectors 
64514 (volumes <=32 MB) , Media descriptor 0xf3, sectors/FAT 20644, heads 
6, hidden sectors 309755, sectors 2147991229 (volumes > 32 MB) , physical 
drive 0x7e, dos < 4.0 BootSector (0x0)
$ 

One (slightly) interesting thing is that this reports version 0.94 
whereas the version of GRUB on the partition from where it was installed 
claims to be 0.97.


Reply to: