You are not logged in.
This is my second Arch install, and it's working almost perfectly. This is my first time trying to install GRUB from scratch, as I am using Refind on my current build. I've been successful in getting Arch to boot and everything runs properly, however whenever I boot up, GRUB boots into the command line. There are no error messages and putting in the commands to boot from the wiki works just fine. I've already run
# grub-mkconfig -o /boot/grub/grub.cfg
with no errors throwing from that. I'm running on an older PC with a BIOS, not UEFI. Below is my grub.conf:
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
insmod part_gpt
insmod part_msdos
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 c7edaa15-8695-4d5b-b156-877840bdd38e
else
search --no-floppy --fs-uuid --set=root c7edaa15-8695-4d5b-b156-877840bdd38e
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_input console
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-c7edaa15-8695-4d5b-b156-877840bdd38e' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 c7edaa15-8695-4d5b-b156-877840bdd38e
else
search --no-floppy --fs-uuid --set=root c7edaa15-8695-4d5b-b156-877840bdd38e
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=c7edaa15-8695-4d5b-b156-877840bdd38e rw loglevel=3 quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux.img
}
submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-c7edaa15-8695-4d5b-b156-877840bdd38e' {
menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-c7edaa15-8695-4d5b-b156-877840bdd38e' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 c7edaa15-8695-4d5b-b156-877840bdd38e
else
search --no-floppy --fs-uuid --set=root c7edaa15-8695-4d5b-b156-877840bdd38e
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=c7edaa15-8695-4d5b-b156-877840bdd38e rw loglevel=3 quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux.img
}
menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-c7edaa15-8695-4d5b-b156-877840bdd38e' {
load_video
set gfxpayload=keep
insmod gzio
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 c7edaa15-8695-4d5b-b156-877840bdd38e
else
search --no-floppy --fs-uuid --set=root c7edaa15-8695-4d5b-b156-877840bdd38e
fi
echo 'Loading Linux linux ...'
linux /boot/vmlinuz-linux root=UUID=c7edaa15-8695-4d5b-b156-877840bdd38e rw loglevel=3 quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initramfs-linux-fallback.img
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
Partition Scheme:
Disk /dev/sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: WDC WD5003ABYX-1
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 8F3A6258-676B-4FCE-9C80-8001B7AB2EA7
First usable LBA: 34
Last usable LBA: 976773134
Alternative LBA: 976773167
Partition entries starting LBA: 2
Allocated partition entries: 128
Partition entries ending LBA: 33
Device Start End Sectors Type-UUID UUID Name Attrs
/dev/sda1 2048 4095 2048 21686148-6449-6E6F-744E-656564454649 0952EBDE-1AB7-6D41-B5D9-75264BD191A1 LegacyBIOSBootable
/dev/sda2 206848 839067647 838860800 0FC63DAF-8483-4772-8E79-3D69D8477DE4 8461A1FF-3E54-1546-AA8F-740009CC0002
/dev/sda3 839067648 964896767 125829120 933AC7E1-2EB4-4F13-B844-0E14E2AEF915 090E0AC2-203D-BB48-AD44-6947E69702CE
/dev/sda4 964896768 976773119 11876352 0657FD6D-A4AB-43C4-84E5-0933C84B4F4F 104E0C7C-B0E4-B24F-80A0-C5C0ED7C3034
Is there something that I've overlooked? I'm rather unfamiliar with BIOS vs UEFI so I wouldn't be surprised. I appreciate any help that you all may provide. Thanks
This is also my first post on this forum and it feels like I'm making a rookie mistake, if this belongs in the Installation topic my all means give it a move.
Last edited by AquilaFasciata (2022-05-28 20:16:13)
Offline
Did you set default target to graphical.target instead of multi-user.target?
Offline
Do you mean it gives you the grub command interface, or does it boot properly and provides you with a tty login prompt? If the latter, then this has absolutely nothing to do with GRUB, and setting aside the grub-specific info in your post, there's nothing left.
What do you expect it to boot to? And why? What have you configured? And how?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Did you set default target to graphical.target instead of multi-user.target?
Let me check.
Offline
Do you mean it gives you the grub command interface, or does it boot properly and provides you with a tty login prompt? If the latter, then this has absolutely nothing to do with GRUB, and setting aside the grub-specific info in your post, there's nothing left.
What do you expect it to boot to? And why? What have you configured? And how?
It boots me into the grub command line. In order to boot into Arch (I have no DE installed) I have to issue the following commands
set root=(hd0,gpt2)
linux /boot/vmlinuz-linux root=/dev/sda2
initrd /boot/initramfs-linux.img
boot
I am expecting either a menu with the Arch install as an entry, or GRUB booting Arch with no user input, whichever is the default behavior. I followed the Arch Wiki for GRUB install instructions, and issued the grub-mkconfig command to automatically create the configuration file
# grub-mkconfig -o /boot/grub/grub.cfg
From my understanding that should be the command that creates the menu entries.
Offline
Fixxer wrote:Did you set default target to graphical.target instead of multi-user.target?
Let me check.
After learning what exactly the target is (learn something new about linux everyday) this appears to only affect systemd. systemd is loaded after GRUB, correct?
That said it is defaulted to graphical.target
Offline
lsblk -f
c7edaa15-8695-4d5b-b156-877840bdd38e isn't in the "partition scheme" (whatever produced that)
Offline