Jump to content
amenditman

Arch installed system boots from install CD but not by itself

Recommended Posts

Just installed ArchLinux on a laptop and it will boot if I start from the install CD and choose "Boot existing OS" option. But I cannot get it to boot any other way. Obviously, Grub is not being detected and the Bios falls back to the boot options menu. When I choose the hard drive from that list it tries but comes back to the list every time.

 

Basic configuration

BIOS

GPT

bios-boot partition in sectors 34-2047 as recommended

 

Can't figure this out and I've been trying most of last night and today. Reading all wiki pages and install guides, searching forums and google.

I'm just not asking the right questions! >_<

 

I'm considering re-installing and going UEFI, GPT, EFI System Partition (ESP) but don't want to.

 

Any suggestions?

Share this post


Link to post
Share on other sites

is the partition boot flag set (to boot)?

 

a bootable gparted cd will quickly display that info in its gui.

Share this post


Link to post
Share on other sites

No, the flag set by

grub-install

command on the bios-boot partition is "bios-grub".

 

I will do a quick experiment and change it to "boot".

What's the worst that can happen? It won't boot. Already there!

Edited by amenditman

Share this post


Link to post
Share on other sites

I doubt setting the boot flag will make any difference. I run multiple operating systems on all my machines. Only the primary OS has a boot flag on its partition, yet all of mine boot fine using GRUB or LILO.

Share this post


Link to post
Share on other sites

I'm thinking you have a bad install. Does the Arch CD boot that newly-installed system with the kernel from the CD? Or the installed kernel? If it's booting the installed OS with the CD kernel, that's why it's working. Try booting the new install with a Parted Magic or SuperGRUB disk instead.

Share this post


Link to post
Share on other sites

The install boots fine with it's own kernel. I think the problem is in the way bios is trying to load Grub.

The CD's bootloader is finding it and passing the boot to it but the bios is not.

 

I just can't think of why.

Share this post


Link to post
Share on other sites

Grub2 in ArchLinux

 

I've been reading all about UEFI and UEFI bootloaders, what a mess. Maybe in a few years this will be more standardised.

Share this post


Link to post
Share on other sites

Choose the "Existing OS" option. Then after boot, open up a terminal and reinstall grub (as root):

# grub-install /dev/sda
  • Like 1

Share this post


Link to post
Share on other sites

Choose the "Existing OS" option. Then after boot, open up a terminal and reinstall grub (as root):

# grub-install /dev/sda

Unfortunately, that does not change anything.

Reboot takes me to the bios "Boot Menu" and the hdd option fails and returns to boot menu.

 

It's beautiful when it boots from the Install Disk, but there is no optical drive so it won't work even as a temporary wok around.

:bangin: Beating head against wall. :rant:

Edited by amenditman

Share this post


Link to post
Share on other sites

Well, here we are, another day wasted chasing this down and no solution.

 

Giving up!

 

Re-installing using UEFI, not bios. Hope it goes smoother than the bios-gpt install.

Share this post


Link to post
Share on other sites

urban_nuke_zps1bbc4c51.png

 

Dropped a big one from orbit.

 

Nothing survived. :hysterical:

Edited by V.T. Eric Layton
Fixed image. ~Eric

Share this post


Link to post
Share on other sites

I had loads of problems with Suse and PC-BSD installing but not booting (i posted here about it) , yet installing Debian worked fine.

Share this post


Link to post
Share on other sites

Re-installing using UEFI, not bios. Hope it goes smoother than the bios-gpt install.

 

Why did you use bios-gpt instead of grub-bios? I used grub-bios and it worked beautifully for me.

Share this post


Link to post
Share on other sites

grub-bios was what the partition type was labeled after setting up the bios boot using gdisk and type ef02.

When I wrote "bios-gpt" I meant that I used bios, as opposed to Uefi, and gpt, as opposed to Mbr.

 

I've done this before and had zero to minimal problems, this time some weird thing was wrong.

I couldn't track it down, I couldn't find anything the same on the forum, and google didn't have anything just like it either.

It was probably just a bad install. (Or maybe, I had no clue as to how to phrase my search) :drooling:

 

Re-installed last night and set it up using: UEFI, GPT, GRUB2 and all went well.

Not as straight forward as a bios setup.

Some of the instructions on the ArchWiki were a little vague and required reading between the lines.

 

In particular the section where it describes the exact method of installing and configuring grub-install and grub-mkconfig. There are so many variable ways to do it and they are both all jumbled together and spread over several different wiki articles. I had to separate out the lines for my particular install and save them to a document to avoid confusion. Even so, some of the syntax was still not right and the only way I figured it out was reading the UEFI page, UEFI Bootloaders page, the GUID Partition Table page, and the GRUB2 page all at the same time. Referring back and forth between them until I found the part that was missing from one and applied to the other.

 

It was FUN! >_<

Share this post


Link to post
Share on other sites

What I was trying to say was that I use grub-bios and installed to the MBR versus GPT: https://wiki.archlin...ub-bios_package

 

Grub-bios is really simple (it is just a bootloader after all) and only requires 4 commands to install:

# pacman -S grub-bios
# modprobe dm-mod
# grub-install --recheck /dev/sda
# grub-mkconfig -o /boot/grub/grub.cfg

 

Unless you just need UEFI and GPT for a particular reason, it is not required for a basic setup.

Share this post


Link to post
Share on other sites

What I was trying to say was that I use grub-bios and installed to the MBR versus GPT: https://wiki.archlin...ub-bios_package

 

Grub-bios is really simple (it is just a bootloader after all) and only requires 4 commands to install:

# pacman -S grub-bios
# modprobe dm-mod
# grub-install --recheck /dev/sda
# grub-mkconfig -o /boot/grub/grub.cfg

 

Unless you just need UEFI and GPT for a particular reason, it is not required for a basic setup.

That is the procedure for installing Grub in a bios and gpt partitioned disk also, Exactly what I did, and it failed to load grub from the bios. But it would load from the "boot from installed os" on the install CD.

 

Like I said, it was weird.

Share this post


Link to post
Share on other sites

Well the difference between mine and yours is the GPT partitions. I did not use them and that is why I was mentioned it.

Share this post


Link to post
Share on other sites

Some of the instructions on the ArchWiki were a little vague and required reading between the lines.

...There are so many variable ways to do it and they are both all jumbled together and spread over several different wiki articles....Referring back and forth between them until I found the part that was missing from one and applied to the other.

 

It was FUN! >_<

 

glad it is up!

 

when i made those comments i was directed to try another distro.

 

however, i'm not afraid to call a spade a spade, or point out poor documentation.

because the linux community is smaller, and people who "don't know" are universally despised,

the documentation on almost all areas is missing valuable chunks. (there aren't enough good writers & those that might be won't because you "should know")

 

it's not my opinion only, the rest of the community knows that too.

 

ps

as i type, someone has posted.

  • Like 1

Share this post


Link to post
Share on other sites

Well luckily the Archwiki is pretty extensive and covers most everything but there are some things that could be a bit clearer. Also, you are always welcome to edit wiki pages if you feel something is missing or could be better explained....

Share this post


Link to post
Share on other sites

Well luckily the Archwiki is pretty extensive and covers most everything but there are some things that could be a bit clearer. Also, you are always welcome to edit wiki pages if you feel something is missing or could be better explained....

I was working on just that, to help clear up the confusion. Those pages I mention have so much overlap, it's amazing there aren't more problems with them.
  • Like 1

Share this post


Link to post
Share on other sites

[...]

however, i'm not afraid to call a spade a spade, or point out poor documentation.

because the linux community is smaller, and people who "don't know" are universally despised,

the documentation on almost all areas is missing valuable chunks. (there aren't enough good writers & those that might be won't because you "should know")

[...]

In agreement here and I wish the *nix community wouldn't be so defensive about it. I think it was in the past year that someone posted a stern rebuke on this forum to the *nix documentators that by and large instructions are awful. And that poster got slammed.

[rant] But sheesh, majority of instructions are awful and most documentation is inadequate or wrong.

And it is not a 'computer thing', it is *nix thing to prove some sort of geekiness. Often I think it is really laziness.[/rant]

Share this post


Link to post
Share on other sites

@amenditman - super!

@crp - yup.

@securitybreach - i suspect the difference in perception is your extensive knowledge of that distro & your appreciation for, & fondness of it.

Share this post


Link to post
Share on other sites
@securitybreach - i suspect the difference in perception is your extensive knowledge of that distro & your appreciation for, & fondness of it.

 

Could be.... B)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...