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.
About this post
- Posted
- Archived
- Edited
- Score
- 20 · 100% up
- Kind
- Text
- ID
- 5ffkr9
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)
Thank you! You helped out tremendously!
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:
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):
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?
Try
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.
Thank you for that. I took your advice and performed partitioning again. I was able to successfully reboot. I have edited my original post.
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:
And then you need a boot entry for arch like this:
Just do this for BIOS installation:
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.
Follow the wiki for the rest!