PDA

View Full Version : [SOLVED] grub wont install to mbr



dnh500
May 1st, 2010, 10:59 PM
On installing 10.04 alternative I got an error installing grub, grub legacy and grub2.

I tried installing it from live cd with
https://help.ubuntu.com/community/Grub2#Reinstalling%20from%20LiveCD
but I get an error there too :( I install it on my ubuntu partition and get:

/usr/sbin/grub-setup: error: no signatureWhat does it mean by no signature ? :S

My partitions on both drives:


Device Boot Start End Blocks Id System
/dev/sda1 * 1 9722 78091933+ 7 HPFS/NTFS
/dev/sda3 1025 3574 20482875 f W95 Ext'd (LBA)
/dev/sda5 ? 135644 379400 1957973695+ bc Unknown

/dev/sdb1 2 9964 80027767 f W95 Ext'd (LBA)
/dev/sdb5 2 9263 74396983+ 7 HPFS/NTFS
/dev/sdb6 9264 9304 329301 82 Linux swap / Solaris
/dev/sdb7 9305 9964 5301418+ 83 Linux

dnh500
May 1st, 2010, 11:44 PM
anyone? :/

oldfred
May 1st, 2010, 11:57 PM
Some BIOS have a lockout that you have to allow writing to the boot sector in the BIOS.

dnh500
May 2nd, 2010, 12:18 AM
Some BIOS have a lockout that you have to allow writing to the boot sector in the BIOS.

Hey! thanks for replying.
My phoenix bios doesn't support locking :/

oldfred
May 2nd, 2010, 12:36 AM
I just reread you first post. You say you are installing to the partition? You should be installing to the MBR. Grub2 does not like to be in a partition and if you really have to install it there, I think it requires --force but that was with 1.97.

dnh500
May 2nd, 2010, 12:48 AM
I just reread you first post. You say you are installing to the partition? You should be installing to the MBR. Grub2 does not like to be in a partition and if you really have to install it there, I think it requires --force but that was with 1.97.

I'm not sure, it's been a long night lol. I was aiming to install it in the mbr.

From the live cd I'm mounting my ubuntu partition with

sudo mount /dev/sdb7 /mnt

and running grub setup with

sudo grub-install --root-directory=/mnt/ /dev/sda

oldfred
May 2nd, 2010, 06:26 PM
What you are doing looks ok.

I do like to have the MBR and the operating system on the same drive so a drive failure only breaks one system and I can still boot the other if I have to. I would install grub to sdb and in BIOS set to boot from the drive that is sdb.

Some BIOS also required a boot flag on a primary (assumes windows) even though linux does not use it. I might put a boot flag on sdb1. You should not put a boot flag on a logical even if that is what you are boot for linux.

dnh500
May 4th, 2010, 09:48 PM
What you are doing looks ok.

I do like to have the MBR and the operating system on the same drive so a drive failure only breaks one system and I can still boot the other if I have to. I would install grub to sdb and in BIOS set to boot from the drive that is sdb.

Some BIOS also required a boot flag on a primary (assumes windows) even though linux does not use it. I might put a boot flag on sdb1. You should not put a boot flag on a logical even if that is what you are boot for linux.

Thanks! I installed grub to sdb and setted bios to boot from that drive. :D