You are not logged in.

#1 2017-03-09 16:28:19

Madg0d
Member
Registered: 2017-02-13
Posts: 43

[Solved] GRUB Not Loading Arch, Sends back to BIOS

Hello,

I just seem to be hopping from one error to the next. Most of them I've been able to solve but I've had a few questions answered by the helpful staff and community of this forum.

I'm now trying to do a fresh install of my system, with a new image of arch linux. (As the one i had prior was from half a year ago, not that old, but I wanted to ensure it wasn't an issue) The issue I've been running into has been while installing the GRUB boot loader. There are no errors reported to me during any of the installation or configuration processes, however upon rebooting my system, it gets as far as "GRUB Loading..." and restarts my computer, entering the BIOS.

I've done this multiple times now to ensure nothing was happening wrong during the partitioning phase, but I'm wondering if it has something to do with the file system type of the /boot partition. I've read multiple conflicting posts, and perhaps I'm just not looking in the right place. Currently I have my system set up with a swap partition (2GiB) and my root partition (930GiB). I've tried following the tutorial I had followed last time (separate from the wiki, but this was after trying steps form the wiki), as it had worked when installing the GRUB bootloader.

Originally however I had set up my boot partition to be a 1 MiB partition with the BIOS boot flag set. But upon trying to use that it told me that there was insufficient space (perhaps a misunderstanding on my part). So next, I set up a 256 MiB ext2 partition with the boot flag set. This actually worked and no errors were produced. I was able to grub-install with no issue. I then did a grub-mkconfig and it detected the other files present in /boot (which I had mounted to/from[?] my boot partition /dev/sda1 [and at another time sda3]). I regenerated the fstab after doing a mkinitcpio -p linux CTRL-D'd out of the chroot, unmounted the partitions, and rebooted. Upon reboot with the installation media out it sends me back to the BIOS. If I were to put the installation media back in and hit "load existing OS" it would get as far as  "GRUB Loading..." and then reboot my system.

So after this didn't work I did some research about it and I learned of some issues with GRUB and various file systems. I wasn't sure if this was referring to GRUB-legacy or GRUB however. I had seen reference before about having the boot partition be at the beginning of the disk without a filesystem set and only the GRUB bios flag set in parted (4 with fdisk or ef02 with gdisk). I looked around for how I was supposed to format this partition as it didn't feel right leaving it unformated, but after not being able to find anything and trying it anyway, I was unable to mount this partition as it told me "wrong fs type, bad option, bad superblock".

So these were the exact steps that I took. I'm going to be redoing this again as I'd like to have my /boot separate from my root partition. I'm not sure where I'm going wrong exactly. I figure it has to do something with the configuration of the /boot partition.

1. Pre-Install
    - Set the Keyboard Layout (loadkeys us)
    - Connect to the Internet (via ethernet, done at startup through dhcpcd through systemd)
    - Update the system clock (timedatectl set-ntp true)
    - Partitioned the disk using cfdisk /dev/sda
        - Boot partition at the beginning of the disk with the BIOS boot flag set (in cfdisk type -> BIOS boot)
        - Created 2g swap (half of my 4g of RAM)
        - Created root partition with remaining disk space
    - [url=https://wiki.archlinux.org/index.php/Category:Boot_loaders]Format the Boot partition as ext2[/url] (mks.ext2 /dev/sda1)  
    - Format the / partition as ext4 (mkfs.ext4 /dev/sda3)
    - Mount / to /mnt and /boot to /mnt/boot
    - Enable the swap space (mkswap /dev/sda2)
    - swapon /dev/sda2
    - pacstrap base system and base devel (pacstrap /mnt base base-devel) 
        - I tried it without base-devel as well
2. Config
    - Change root in (arch-chroot /mnt)
    - Set up the locales (UTF en_US and en_CA)
    - Create a symbolic link from /etc/localtime -> /usr/share/zoneinfo/Canada/Eastern
    - echo hostname > /etc/hostname & configure /etc/hosts accordingly 
    
3. Installing GRUB
    - pacman -S grub (no errors)
    - grub-install /dev/sda (no errors)
    - mkinitcpio -p linux (no errors)
    - grub-mkconfig -o /boot/grub/grub.cfg (no errors)

4. Post Install
    - Exit the chroot 
    - Generate the fstab (genfstab -U /mnt >> /mnt/etc/fstab)
    - Unmount /dev/sda3 and then /dev/sda1
    - reboot

These are the exact steps I took while setting up my arch linux distribution. Hopefully you guys can help (again)

Last edited by Madg0d (2017-03-09 18:02:13)


Sheogorath,
Fourth Corner of the House of Troubles,
Lord of the Never-There,
Sovereign of the Shivering Isles

Offline

#2 2017-03-09 16:53:59

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Solved] GRUB Not Loading Arch, Sends back to BIOS

Are you using an MSDOS or GPT partioned drive?
Is this a UEFI or BIOS system?

A BIOS boot partition is not the same thing as a /boot partition. A BIOS boot partition is a separate area of the drive with no filesystem that isn't mounted anywhere - it's only used in BIOS/GPT setups to store GRUB.

Last edited by Slithery (2017-03-09 16:59:13)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-03-09 16:58:41

Madg0d
Member
Registered: 2017-02-13
Posts: 43

Re: [Solved] GRUB Not Loading Arch, Sends back to BIOS

slithery wrote:

Are you using an MSDOS or GPT partioned drive?

A BIOS boot partition is not the same thing as a /boot partition. A BIOS boot partition is a separate area of the drive with no filesystem only used in BIOS/GPT setups to store GRUB.

I think I might be using GPT when I should be using MBR. Investigating...


Sheogorath,
Fourth Corner of the House of Troubles,
Lord of the Never-There,
Sovereign of the Shivering Isles

Offline

#4 2017-03-09 17:00:18

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [Solved] GRUB Not Loading Arch, Sends back to BIOS

If this is going to be a BIOS/MBR setup then start simple, there's no need for a seperate /boot partition at all.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2017-03-09 18:01:46

Madg0d
Member
Registered: 2017-02-13
Posts: 43

Re: [Solved] GRUB Not Loading Arch, Sends back to BIOS

slithery wrote:

If this is going to be a BIOS/MBR setup then start simple, there's no need for a seperate /boot partition at all.

Looks like I was over complicating it. Did another reinstall, set /dev/sda1 as a swap, and /dev/sda2 as my root partition with the boot flag on. All works now. Thanks guys. Marking as solved


Sheogorath,
Fourth Corner of the House of Troubles,
Lord of the Never-There,
Sovereign of the Shivering Isles

Offline

Board footer

Powered by FluxBB