Re: Grub? Grub2?

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

 



> On 02/23/2012 10:26 AM, Jeffrey Ross wrote:
>> This is a system that was upgraded from F15 to F16 via Yum, how can I
>> do:
>>
>> 1) confirm which version of grub was used to boot the system
>
> # file - < /dev/sda
>
> The dash is important -- tells file(1) to read from stdin.  Example:
>
> _[/root]_(root@atom)_
> # file - < /dev/sda
> /dev/stdin: x86 boot sector; GRand Unified Bootloader, stage1 version
> 0x3, boot drive 0x80, 1st sector stage2 0x138800, GRUB version 0.94;
> partition 1: ID=0x83, active, starthead 32, startsector 2048, 1572864
> sectors; partition 2: ID=0x82, starthead 8, startsector 1574912, 1048576
> sectors; partition 3: ID=0x83, starthead 77, startsector 2623488,
> 56002560 sectors, code offset 0x48
>
>> 2) re-install the boot record (MBR?) for the version of grub I'm running
>> onto a replacement drive?
>>
>>
>
> Take a look at grub2-install or grub-install, depending on what you have
> installed.
>
>   -Scott

Thanks... system responded:

/dev/stdin: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3,
boot drive 0x80, 1st sector stage2 0x3c0e298, GRUB version 0.94; partition
1: ID=0xfd, starthead 32, startsector 2048, 16580608 sectors; partition 2:
ID=0xfd, starthead 254, startsector 16582656, 15360000 sectors; partition
3: ID=0xfd, starthead 254, startsector 31942656, 15360000 sectors;
partition 4: ID=0x5, starthead 254, startsector 47302656, 274368512
sectors, code offset 0x48


which means it was GRUB not GRUB2, and a reinstall should simply be
"grub-install /dev/sdX"

However the binaries for grub 0.94 are not installed on the system but
rather the binaries for grub2 (1.99) and yum doesn't seem to want to let
me install the older version of grub.

Last time I tried to upgrade I ran into problems so I'm hesitant to
upgrade to grub2

I think my problem was /boot and / are on raid 1 partitions, root is on a
raid partition with a superblock of 1.1, /boot is on a superblock of 0.90

I need to get grub reinstalled on /dev/sdb

Thanks, Jeff




-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux