You are not logged in.

#1 2014-03-05 10:02:36

Lerp
Member
Registered: 2014-03-05
Posts: 35

Grub not booting at launch

When I power on my computer grub doesn't run, instead I get an error saying no boot could be found.

My mobo is a UEFI board but I have disabled UEFI boot sources in the mobo setup and installed Arch & windows as BIOS.

I can use my LiveCD and select "Boot From Existing OS" where Arch & Windows are present in the menu.

I do have a a grub partition, it's flagged with bios_grub, 1MB big but it isn't at the start of the disk, not sure if that matters?

Here's some lsblk info, don't know if it helps

[james@development ~]$ lsblk -o NAME,LABEL,FSTYPE,SIZE,TYPE
NAME   LABEL       FSTYPE    SIZE TYPE
sda                        931.5G disk
├─sda1 SYSTEM      ntfs      100M part
├─sda2 OS          ntfs      186G part
├─sda3                         1M part
└─sda4             ext4    745.4G part

Not sure what /dev/sda1 is, think windows put it there.
/dev/sda2 is windows
/dev/sda3 is the grub partition
/dev/sda4 is my arch partition

Any information you need from me I will be happy to provide.

Offline

#2 2014-03-05 12:37:48

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 334

Re: Grub not booting at launch

Not really sure about this, but when installing in BIOS-mode shouldn't grub be installed to the MBR?

Offline

#3 2014-03-05 12:42:53

Lerp
Member
Registered: 2014-03-05
Posts: 35

Re: Grub not booting at launch

Oh you reminded me, I used GPT because that's what the installation wiki recommended.

Offline

#4 2014-03-05 12:55:20

henk
Member
From: Weert, Netherlands
Registered: 2013-01-01
Posts: 334

Re: Grub not booting at launch

Indeed, it is recommended for UEFI-boot which you seem to have disabled.

Offline

#5 2014-03-05 13:01:26

Kartious
Member
From: UK
Registered: 2013-03-23
Posts: 311

Re: Grub not booting at launch

Do you have a ESP ? If so then look at this. I have never really seen a 1MB partition for boot before, they have all been at least 100 MB...

ESP

Last edited by Kartious (2014-03-05 13:06:24)

Offline

#6 2014-03-05 13:43:06

Lerp
Member
Registered: 2014-03-05
Posts: 35

Re: Grub not booting at launch

Kartious wrote:

Do you have a ESP ? If so then look at this. I have never really seen a 1MB partition for boot before, they have all been at least 100 MB...

ESP

It's possible, I originally had Ubuntu which I replaced with Arch and I can't remember how I set it up the booting because I had issues with the whole UEFI stuff and this is over a year ago now.

I made the grub partition 1MB because the grub docs recommended giving it 1MB for expansion. When I check the partition labels the 100MB label is "Microsoft basic data".

Is there a way I can get more information about the 100MB partition?

Offline

#7 2014-03-05 14:15:17

Kartious
Member
From: UK
Registered: 2013-03-23
Posts: 311

Re: Grub not booting at launch

post the output of lsblk -f

Did you read the guides on how to set this up ?

Dual Boot

Grub

What do you mean you originally have Ubuntu which you replaced with Arch? If you are dual booting Arch with any other system or doing anything it must be followed by the well tailored wiki.

Offline

#8 2014-03-05 14:15:40

ubunchu
Member
Registered: 2012-05-01
Posts: 181

Re: Grub not booting at launch

/dev/sda1 for windows is like an EFI System Partition, it's his "boot" directory, afaik
I have used GRUB, though I had 5MB. It is very important that that partition is set as ef02
Show us the output of:
lsblk
blkid
cgdisk /dev/sda (press q and enter to exit)
gdisk /dev/sda (press q and enter to exit)
Though in the end I recommend switching to EFI - gummiboot (what I did), now I can even get the time it needed to boot with "systemd-analyze"
Also, did you run "grub-mkconfig -o /boot/grub/grub.cfg" after install before reboot?


Don't forget to mark as [SOLVED].

Offline

#9 2014-03-05 14:38:59

Lerp
Member
Registered: 2014-03-05
Posts: 35

Re: Grub not booting at launch

Kartious wrote:

post the output of lsblk -f

Did you read the guides on how to set this up ?

Dual Boot

Grub

What do you mean you originally have Ubuntu which you replaced with Arch? If you are dual booting Arch with any other system or doing anything it must be followed by the well tailored wiki.

I was dual booting Ubuntu and Windows until a recent LightDM made it hang on start up. I had been looking for an opportunity to switch to Arch and this was it smile
I reformatted my Ubuntu partition and installed Arch. I was following the wiki on installation.

james@development> lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 931.5G  0 disk 
├─sda1   8:1    0   100M  0 part 
├─sda2   8:2    0   186G  0 part 
├─sda3   8:3    0     1M  0 part 
└─sda4   8:4    0 745.4G  0 part /
sr0     11:0    1 527.3M  0 rom 
james@development> blkid                                                                                                                            ~
/dev/sr0: UUID="2014-03-01-08-16-11-00" LABEL="ARCH_201403" TYPE="iso9660" PTUUID="72015f2b" PTTYPE="dos" 
cgdisk /dev/sda
Part. #     Size        Partition Type            Partition Name
----------------------------------------------------------------
            1007.0 KiB  free space
   1        100.0 MiB   Microsoft basic data      Microsoft basic data
   2        186.0 GiB   Microsoft basic data      Microsoft basic data
            603.0 KiB   free space
   3        1024.0 KiB  BIOS boot partition       grub
   4        745.4 GiB   Linux filesystem          arch
james@development> sudo gdisk /dev/sda                                                                                                                ~
GPT fdisk (gdisk) version 0.8.9

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.

I did run grub-mkconfig, I checked whether /boot/grub/grub.cfg exists and it does.

Offline

#10 2014-03-05 15:45:30

ubunchu
Member
Registered: 2012-05-01
Posts: 181

Re: Grub not booting at launch

I had a similar problem, but I had 2 HDDs inside my laptop, and fiddling around made the trick. I'm gonna list a few things to check (learned from my experience)
Check if /boot exists on /dev/sda4 when you mount it, and it includes the linux generated goodies, and grub.
Check in bios the options, if possible show what options you have. I think:
-uefi: with secure boot, needs a key
-uefi: no secure boot
-efi: needs a separate partition
-bios mode?
++also, compatibility mode
Check again which of those you have (post screenshots if possible)
Check: mount /dev/sda3 and /dev/sda4 and "blkid" again
Did you have GRUB install errors?
What is the boot order?
Also, how far are you in the installation and customisation?


Don't forget to mark as [SOLVED].

Offline

#11 2014-03-05 16:21:14

Lerp
Member
Registered: 2014-03-05
Posts: 35

Re: Grub not booting at launch

I have done the installation and everything works fine except for having to use the LiveCD to launch the OS.

Edit (Sorry completely glazed over your other questions)
In the BIOS I can enable disable UEFI boot sources and/or "legacy" (bios) boot sources,
I don't know how to take screenshots of the mobo setup menu.

I have disabled UEFI boot sources and set the boot order to USB > CD/DVD > HDD.
If I do not have the Arch CD in I get an error message "ERROR: No boot disk or disk has failed"
If I have the Arch CD in I can boot Arch/Windows from the HDD

I had one initial error from GRUB about it needing it's own partition with GPT.
I made a partition, flagged it as bios_grub and tried again, no errors were printed.

I made sure /dev/sda4 is mounted and I still got the same from blkid.

Last edited by Lerp (2014-03-05 16:28:51)

Offline

#12 2014-03-05 20:02:43

ubunchu
Member
Registered: 2012-05-01
Posts: 181

Re: Grub not booting at launch

As I see it, there must be a problem with the grub installation or the partitioning.
Check if /boot/grub/grub.cfg has the linux and windows entries. Also check if the / partition is marked as bootable.
And let's re-check the grub wiki page, I got it working somehow, but I'm unsure how.

Pictures (from an external camera) of your bios would perfect if you could.
Also, I'd recommend to fiddle around with the options of "UEFI-EFI-BIOS-LEGACY", because maybe it's one of those options that don't let you boot your system, and when you change it, it might "be seen".


Don't forget to mark as [SOLVED].

Offline

#13 2014-03-06 10:02:35

Lerp
Member
Registered: 2014-03-05
Posts: 35

Re: Grub not booting at launch

Okay so I think I know what I've done.

I think I installed Grub on /dev/sda4 instead of /dev/sda3.

I tried to do:

# chattr -i /boot/grub/i386-pc/core.img
# grub-install --target=i386-pc --recheck --debug --force /dev/sda3
# chattr +i /boot/grub/i386-pc/core.img

but I get the following message:

grub-install: error: unable to identify a filesystem in hostdisk//dev/sda; safety check can't be performed.

Is it going to be easier to just use MBR? I really don't understand the difference and only used GPT because the wiki recommended it.

Last edited by Lerp (2014-03-06 10:07:41)

Offline

#14 2014-03-06 10:13:52

Kartious
Member
From: UK
Registered: 2013-03-23
Posts: 311

Re: Grub not booting at launch

Lerp wrote:

Okay so I think I know what I've done.

I think I installed Grub on /dev/sda4 instead of /dev/sda3.

I tried to do:

# chattr -i /boot/grub/i386-pc/core.img
# grub-install --target=i386-pc --recheck --debug --force /dev/sda3
# chattr +i /boot/grub/i386-pc/core.img

but I get the following message:

grub-install: error: unable to identify a filesystem in hostdisk//dev/sda; safety check can't be performed.

Is it going to be easier to just use MBR? I really don't understand the difference and only used GPT because the wiki recommended it.


Mount the /boot directory under sda3 and start installing grub again from scratch (doesn't take too long anyway). you should receive a message that there are no errors when doing the check. What is your current partition layout ? with a UEFI motherboard there isn't much point in taking a step backwards into MBR unless GPT is really causing you issues.

Offline

#15 2014-03-06 16:57:12

silverhammermba
Wiki Maintainer
Registered: 2011-04-14
Posts: 156

Re: Grub not booting at launch

Lerp wrote:

Is it going to be easier to just use MBR? I really don't understand the difference and only used GPT because the wiki recommended it.

When booting with MBR, the BIOS only knows how to read the first 512 bytes of the storage device. All boot code must fit in that space (so most MBR bootloaders are just bootstrappers for starting more sophisticated bootloaders).

When booting with GPT, the BIOS can mount and read an entire partition dedicated to boot code. The bootloader is practically unrestricted in complexity.

However, GPT is designed to work nicely with UEFI (the sophisticated replacement for BIOS). Similarly, most - if not all - BIOS bootloaders are designed to work with the primitive MBR and don't take advantage of GPT's features. So configuring BIOS booting with GPT can actually be more complicated than UEFI-GPT or BIOS-MBR.

tl;dr If you must insist on using BIOS (and don't need the features of GPT), use MBR. Otherwise you should spend the time to learn UEFI.

Last edited by silverhammermba (2014-03-06 16:59:58)

Offline

Board footer

Powered by FluxBB