Re: Grub2 floating around...
Originally Posted by
madtowneast
I used the Ubuntu LiveCD version of GParted to unset the boot flag on the Fedora install (sda3) and then used Disk Utility (same program on both Ubuntu and Fedora) to change the partition type from EFI System Partition to MBR Partition Scheme, since some googling revealed that MBR Partition scheme is supposed to be the same as ghe gdisk code 0700. Fedora has this Disk Utility installed but nothing like GParted. Neither LiveCD has gdisk.
No, "MBR partition scheme" is a type code reserved for partitions that will themselves contain an MBR -- say, for use by a virtual machine. You should definitely not give a Linux partition that type code. A GPT Linux partition should have no flags (as viewed under GParted) or should have a type code of 0700 or 8300 (as viewed under gdisk). Furthermore, AFAIK, you can't set that type code in parted or GParted, so I really have no idea what you've done with your disk. Once again, please post the output of "sudo gdisk -l /dev/sda" or "sudo parted /dev/sda print".
You can install gdisk in an Ubuntu live CD by typing "sudo apt-get install gdisk" or by downloading the package for your version and double-clicking it in the desktop. (See download links here.) Alternatively, you can use an emergency disc like PartedMagic, which comes with parted and gdisk pre-installed.
The error is:
Code:
[root@localhost liveuser]# grub-install /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
/dev/mapper/../dm-0 does not have any corresponding BIOS drive.
As I suspected, that's quite different from what you initially reported ("it just gave me error saying that there is no bios driver installed"). A "BIOS drive" refers to the BIOS identification code for a hard disk, whereas a "BIOS driver" would perhaps be some sort of software to interface to a BIOS subsystem, although there's not much that qualifies as that under Linux, or perhaps a driver loaded by the BIOS.
The actual message indicates that the specified device file can't be tied to a specific BIOS-accessible hard disk. This is actually normal for a device in /dev/mapper, so it's not really an error, and I don't think this is an error message.
Did grub-install report anything else, or was that the complete output? Normally it finishes with something like:
Code:
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.
# this device map was generated by anaconda
(fd0) /dev/fd0
(hd0) /dev/sda
If you saw output like that, then GRUB installed correctly. If you saw some other output, then perhaps something else went wrong and you've ignored the true error message because of confusion about the meaning of the message you did report.
If I've suggested a solution to a problem and you're not the original poster, do not try my solution! Problems can seem similar but be different, and a good solution to one problem can make another worse. Post a new thread with your problem details.
Bookmarks