You are not logged in.

#1 2014-12-10 18:18:16

zookeeprr
Member
Registered: 2014-12-10
Posts: 22

New install boots "from existing os" on DVD, but not on hard drive

Besides a virtualbox installation, this is my first Arch install. I am installing alongside a crunchbang and a windows partition.

I chose to install with BIOS and GPT. I set up a BIOS Boot Partition and ran grub-install with no errors, but am unable to access grub when booting on the hard drive. I choose HDD from the boot options menu, but it just brings me back to the menu with no errors, loading messages, etc. I assume grub is just not being detected, but I'm not sure why.

The strangest part is that I can boot into grub with no problem when I choose "Boot existing OS" from my Arch install DVD. Grub loads fine, and I can boot into any of the partitions on my hard drive.
My problem seems similar to the one discussed here: http://forums.scotsnewsletter.com/index … opic=61598

But the solution above was to install with UEFI. Is there a way to fix the BIOS/Grub/GPT setup without scrapping BIOS for UEFI?

Last edited by zookeeprr (2014-12-10 18:20:09)

Offline

#2 2014-12-10 18:22:35

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,749
Website

Re: New install boots "from existing os" on DVD, but not on hard drive

Did you set up /boot/grub/grub.cfg?

# grub-mkconfig -o /boot/grub/grub.cfg

https://wiki.archlinux.org/index.php/Be … guide#GRUB

Offline

#3 2014-12-10 18:36:12

zookeeprr
Member
Registered: 2014-12-10
Posts: 22

Re: New install boots "from existing os" on DVD, but not on hard drive

I did. I was following the Arch begginer's guide. I installed os-prober and ran

# grub-mkconfig -o /boot/grub/grub.cfg

It found my partitions and can recognize them through the "Boot To existing OS" on the install disc, but not when booting on the hard drive, it bypasses grub entirely and reverts back to the boot menu.

Offline

#4 2014-12-10 19:02:29

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: New install boots "from existing os" on DVD, but not on hard drive

So you also ran grub-install. What did it output? Did you install it to the entire disk?

Offline

#5 2014-12-10 19:18:23

zookeeprr
Member
Registered: 2014-12-10
Posts: 22

Re: New install boots "from existing os" on DVD, but not on hard drive

I believe I did. Everything is on /dev/sda, and I ran

grub-install /dev/sda

It completed with no errors.

Offline

#6 2014-12-10 19:19:53

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,749
Website

Re: New install boots "from existing os" on DVD, but not on hard drive

Have you checked your firmware (BIOS) options to make sure that the "CSM" (Compatibility Support Module) or "Legacy" mode is enabled?

This is needed to boot in non-EFI mode from a UEFI motherboard.

Offline

#7 2014-12-10 19:22:11

zookeeprr
Member
Registered: 2014-12-10
Posts: 22

Re: New install boots "from existing os" on DVD, but not on hard drive

I think the crucial difference is that I switched from MBR to GPT. Is there something I could have missed in doing that?

I set up a 2 MiB Bios Boot Partition, but it is not at the beginning of the disc. Would that be a problem?

Last edited by zookeeprr (2014-12-10 19:22:39)

Offline

#8 2014-12-10 19:23:43

zookeeprr
Member
Registered: 2014-12-10
Posts: 22

Re: New install boots "from existing os" on DVD, but not on hard drive

Head_on_a_Stick wrote:

Have you checked your firmware (BIOS) options to make sure that the "CSM" (Compatibility Support Module) or "Legacy" mode is enabled?

This is needed to boot in non-EFI mode from a UEFI motherboard.

I haven't. I'll do that now.

Offline

#9 2014-12-10 19:27:06

zookeeprr
Member
Registered: 2014-12-10
Posts: 22

Re: New install boots "from existing os" on DVD, but not on hard drive

Looks good there. I have both UEFI and Legacy enabled, and Legacy is set as the priority. I should add I've been dual booting with crucnhbang and windows with grub already. I was using a MBR setup though, not a GPT.

Offline

#10 2014-12-10 19:45:31

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,749
Website

Re: New install boots "from existing os" on DVD, but not on hard drive

zookeeprr wrote:

I set up a 2 MiB Bios Boot Partition, but it is not at the beginning of the disc. Would that be a problem?

According to the ArchWiki, as long as it's within the first 2TiB of the disk, it should be fine.
https://wiki.archlinux.org/index.php/GR … structions

However, the ArchWiki does also note that there are sometimes incompatibilities which prevent non-EFI booting on a GPT disk.

ArchWiki wrote:

While GPT support on BIOS systems is theoretically possible it sometimes isn't practical and other times there are complete incompatibilities.

https://wiki.archlinux.org/index.php/GPT#BIOS_systems

There are workarounds listed in that link with some more here:
http://mjg59.dreamwidth.org/8035.html
http://rodsbooks.com/gdisk/bios.html

So you may be best advised to "bite the bullet" and go for a full EFI installation -- you will need an EFI system partition (512MiB, FAT(32) formatted, mounted at /boot) for this.

Offline

#11 2014-12-10 19:51:20

zookeeprr
Member
Registered: 2014-12-10
Posts: 22

Re: New install boots "from existing os" on DVD, but not on hard drive

That must be it. Hopefully the bullet doesn't taste too terrible!

Should I worry about data loss on my other partitions when switching to an EFI installation? Any pitfalls to avoid? I only have experience with the standard BIOS/grub setup.

Offline

#12 2014-12-10 20:09:48

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,749
Website

Re: New install boots "from existing os" on DVD, but not on hard drive

zookeeprr wrote:

Should I worry about data loss on my other partitions when switching to an EFI installation? Any pitfalls to avoid? I only have experience with the standard BIOS/grub setup.

I can't see why data loss would be an issue.

The only caveat is that you must be booted up in EFI-mode for the bootloader/manager to write the entry to your motherboard's NVRAM.
You can check this by running `efivar -l` -- this will return a long list of EFI variables if you are.

I recommend gummiboot -- it's a bootmanager and allows the kernel to boot itself up (and it's the easiest one to use).
https://wiki.archlinux.org/index.php/Be … therboards

Offline

#13 2014-12-10 20:29:38

zookeeprr
Member
Registered: 2014-12-10
Posts: 22

Re: New install boots "from existing os" on DVD, but not on hard drive

Great stuff. Thanks for the help. Wish me luck!

Offline

Board footer

Powered by FluxBB