Skip to content

New Install... GRUB _

I would like to thank everyone for responding with their informative and helpful advice. I have a fully functional Arch Linux build with XFCE4, Simple Login Manager, tear free Intel graphics, and WiFi. Sincerely appreciate everything.

I ended up using different partitions, a 30GB, a 2GB, and a 400+GB for /, Swap, and /home. Once that was done, I performed the Wiki instructions as I typed below. I also used fdisk rather than cfdisk, although I don't think that had any impact. I followed post install instructions to get WiFi and a GUI.

Thanks again!

Hello, I apologize in advance for the length of this post. I am trying to be as in depth as I know how.

I have installed Arch Linux for the first time. There were some things I was confused about during the install, but I never received any error messages.

On boot, I get GRUB _ with a flashing _ symbol. I am going to try and summarize my settings:

BIOS

  • UEFI/Legacy - Legacy

  • Fast Boot - Off

  • Secure Boot - Off

Arch

  • Three partitions.

  • 512 MB, MBR, formatted as ext4

  • 16 GB, Swap, mkswap and swapon used

  • ~450 GB, /, formatted as ext4

For what it is worth, cfdisk never asked if wanted to make the partitions bootable or use them as /boot or /. I noticed in some videos that this was offered. Also, please note that I did read the wiki, I only used videos as a reference when I was waiting to get home and try and install Arch.

After the partition, through cfdisk, I used mount /dev/sda1 and mount /dev/sda3. For sda1, the boot, I did the mkdir /mnt/boot before doing mount /dev/sda1 /mnt/boot. For / I used mount /dev/sda3 /mnt

After that, I moved to the pacstrap /mnt base. This was taking a long time so I entered Control and C and changed the mirror list to something closer. After that, I saved the file and performed pacstrap /mnt base and let the install complete.

Performed genfstab and arch-chroot commands as specified in the Wiki.

I did the clock, localizations, and localhost as instructed. Creating files and saving them using nano.

I did not enter the following command: mkinitcpio -p linux

Because the Wiki suggested it was not necessary.

I set the root password and I installed grub with pacman -S grub.

Once that was complete I entered

  • grub-install --target=i386-pc /dev/sda

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

  • The two above commands did not contain error messages

  • exit

  • umount -R /mnt

  • reboot now

Upon reboot, I removed the USB drive and was presented with GRUB and the flashing _

Please note, I also tried the above method with UEFI enabled, however, I changed MBR to EFI partition and I followed the "ESP" instructions. I used the path to ESP as /boot, and my loader.conf file was one line: default with a long string of characters and -* tacked on the end of it.

I would prefer to avoid the UEFI confusion and just do Legacy.

Any advice? Anything I should try differently?

Edited 29 Nov 2016. We only hold this version.

20 points6 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
20 · 100% up
Kind
Text
ID
5ffkr9

Author

1
posts
2
comments
0
media
View profile

6 comments

The MBR is not a partition in the conventional sense, and it is not 512 MB. The MBR is the first 512 bytes (no M and no K) which contains enough data to point to the bootloader and load the initial ramdisk. The MBR will be loaded with it's contents by the grub config command. Is the "flashing_" part of a command prompt or is that all there is? You may want to try ctl+alt+f2 and see if that gets you to a terminal. Unless you loaded a desktop environment a command prompt is all that you can expect from a fresh Arch install. Personally I like to partition with gparted live before installing. You may want to try typing a command like sudo pacman -Syu and see if anything happens. You should be getting a login prompt. Hopefully someone with more experience will show up to help you. You could always cheat and use the ArchAnywhere installer. LOL

https://wiki.archlinux.org/index.php/Arch_boot_process

Here is a link to the old version of the Beginners Guide which is easier to follow.

(https://wiki.archlinux.org/index.php?title=Beginner's_guide&direction=prev&oldid=319699)

5 points

Well, your explanation looks good other than the one minor error that your partition list labels /boot as MBR. These are very different as chardo137 explains. MBR exists even before the partitions. It's an old, but kinda cool way of doing things. These days we leave that blank and just tell the motherboard firmware to look into a partition for a bootloader because the firmware has lots of space to store and load drivers for drive controllers and filesystems.

Anyway, GRUB blinking at you means that it did get installed "somewhere", and your motherboard's firmware knows to load it and pass execution. The question is, where is GRUB and what can it see? I feel that you may have mounted the partitions out of order or a previous installation attempt is interfering which would have yielded GRUB installed correctly somewhere, but the GRUB configuration file is NOT where it expects, under /boot/grub/grub.conf

To clarify: Partitions:

/dev/sda "MBR" (is written raw to early disc)
/dev/sda1 512MB /boot (ext4)
/dev/sda2 16GB (swap)
/dev/sda3 450GB / (ext4)

Bootable flag is unecessary. Make sure you actually mkfs for each using their partition identifier. Then prepare a mini environment for pacstrap to use under the installers /mnt partition as follows (in this very important order):

mount /dev/sda3 /mnt
# /mnt is now replaced with the filesystem from inside sda3
mkdir /mnt/boot
# This "boot" directory is the only thing on sda3.  pacstrap will make more.
mount /dev/sda1 /mnt/boot
# /mnt/boot is now replaced with the filesystem on sda1.

When the system boots on it's own, /mnt/boot is known as just /boot. The /mnt part was just a convenient directory for us to mount things temporarily from within an existing, running system.

There are so many way so configure this, with or without EFI, and they all work. In fact, I have an absolute clusterfuck of a boot sequence which isn't even close to anything on the wiki, and it works fine. So what unusual things could prevent it from working?

  1. Motherboard firmware messing up boot drive order and actually loading a copy of grub from a previous attempt on a different drive or partition. Make sure that you understand how your motherboard deals with boot order. Some can be reviewed in the firmware (BIOS), some you have to interrupt boot with F9 or F12 and select.
  2. Accidents when typing disc identifiers or partitions.
  3. Unordered or misplaced mount points before pacstrap. e.g. making the /mnt/boot directory, then mounting sda1 onto /mnt/boot then sda3 onto /mnt would leave things rather useless.
  4. grub-mkconfig making outlanding assumptions:

Try

grub-install --target=i386-pc --recheck --debug /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg

Note, I haven't installed via "Legacy" BIOS in a very long time. It can certainly be much simpler, but there's no telling what your UEFI capable motherboard might pull out of it's hat when trying to boot that.

5 points

Thank you for that. I took your advice and performed partitioning again. I was able to successfully reboot. I have edited my original post.

1 points

Well i can recommend going to the systemd-boot wiki page and read up a bit more, but overall once its installed you want your configs to look like this:

/boot/loader/loader.conf
default arch
timeout 4 
editor 0

And then you need a boot entry for arch like this:

/boot/loader/entries/arch.conf
title arch linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=/dev/sdaX rw #name of root partition
2 points

Just do this for BIOS installation:

cfdisk /dev/sda

create a swap partition (# 82 Type), lets say 8GB (sda1) and the remaining Linux type partition (# 83 Type) (sda2).

Mark sda2 as bootable, write changes, then exit cfdisk.

mkfs.ext4 /dev/sda2

mkswap /dev/sda1

swapon /dev/sda1

mount /dev/sda2 /mnt

Follow the wiki for the rest!

-1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.