You are not logged in.
I have followed the arch wiki as well as possible and have had no problems with most of the process until the Bootloader comes into play. I have my first partition formatted to fat32 and the flag set to boot, esp (using parted). I used the grub-install command with no errors and when I reboot without my live USB my computer enters a GNU Grub shell environment. I have tried loading the OS by setting the root and chainloading to my efi file but that just returns me to the grub shell again.
If anyone needs to see an output from my bash shell to help me determine the cause I am not sure how to do so. Im writing this post from my phone. I could use elinks from my laptop to access the forums but I would need explanation of how to copy output from the shell to the next page.
Offline
I would need explanation of how to copy output from the shell to the next page.
Offline
Thank you for the response I will look into those pastebin style links to share my output. Is there any command output you would recommend that I post to help me fix my Bootloader issue?
Offline
Usually giving the output of journalctl -xb is a good way to start. It gives you a log of important events from boot on. Give it a look at the arch wiki systemd page
Offline
It sounds like you missed out the step of actually configuring grub...
Offline
Incase your uefi shell directly allows multiple entries (most do), you won't need grub and may consider skipping it.
https://wiki.archlinux.org/index.php/EFISTUB
1. copy boot files to ESP/EFI partition
2. setup mkinitcpio hook to sync these files with ESP whenever kernel is updated
3. Use efibootmgr to add entry in UEFI boot menu that points directly to vmlinuz-linux. (double check paths)
Offline
I did use the grub-mkconfig command after installing grub. And Im assuming that the journalctl command should be issued from the chrooted to mount state, yes? If I can boot without grub I may give that a shot after work. How do you cp from one partition to another?
Offline
The output of the journal is unlikely to be relevant as it only records activity once local filesystems have been mounted and it can write to /var.
Assuming you mount the ESP on /mnt from the live media please post the output of (using a pastebin client if needed)
# ls -laR /mnt
#blkidalso the contents of the systems /boot/grub/grub.cfg (so it would be /mnt/grub/grub.cfg assuming you used the ESP as /boot)
Offline
I feel that my partition setup should be shown. Boot is set to the first partition, root to second partition and home data is sda3. Including a swap partition.
Here is the output of ls- laR /mnt.
I couldn't install pastebinit into my live root shell because the partition had no room supposedly. So I had to do so from within chrooted mnt. I exited chroot and did the ls command from root and saved the file to my home directory and used cat | pastebinit.... Although the pastebin file seems to be lacking some bulk.
Offline
The tip box on the wiki page for pastebin clients included instructions without having to install any software.
If you prefer working from inside the chroot the commands need to be adjusted
$ ls -laR /boot
$ cat /boot/grub/grub.cfgOffline
Im aware of the change in path when working from inside the chroot. I tried using the command from the tip box with curl but there were errors so I felt that using a downloaded client would suffice. From the lack of response I imagine the ls command I uploaded to pastebin using pastebinit was sufficient to see the problem but ill go ahead and post my grub config. I apologize for the slow responses I work alot during the week, I have today off though!
Again I have been typing this from my phone so please excuse the autocorrections that may appear xD
Last edited by Zhme (2017-06-14 19:49:24)
Offline
.:
total 71
drwx------ 1 root root 140 Jun 13 06:28 .
drwxr-xr-x 1 root root 120 Jun 13 05:42 ..
-rwxr-xr-x 1 root root 787 Mar 25 05:03 .automated_script.sh
-rw-r--r-- 1 root root 21 Feb 14 13:16 .bash_logout
-rw-r--r-- 1 root root 57 Feb 14 13:16 .bash_profile
-rw-r--r-- 1 root root 141 Feb 14 13:16 .bashrc
drwxr-xr-x 2 root root 40 Jun 13 05:43 .cache
-rw-r--r-- 1 root root 8865 Jun 1 15:30 install.txt
-rw------- 1 root root 64 Jun 13 05:45 .wpa_cli_history
-rw-r--r-- 1 root root 35657 Jun 13 05:43 .zcompdump
-rw-r--r-- 1 root root 16 Jun 13 06:12 .zdirs
-rw-r--r-- 1 root root 23 Mar 25 05:03 .zlogin
-rw------- 1 root root 1271 Jun 13 06:28 .zsh_history
-rw-r--r-- 1 root root 10404 May 16 19:45 .zshrc
./.cache:
total 0
drwxr-xr-x 2 root root 40 Jun 13 05:43 .
drwx------ 1 root root 140 Jun 13 06:28 ..This output does not match what I would expect from /boot or from /mnt. The latter I would expect to be empty.
Offline
Ls -laR /boot
https://pastebin.com/cTdZwk1X
Offline
Offline
vmlinuz-linux, initramfs-linux.img and initramfs-linux-fallback.img are missing from /boot reinstall the kernel package after ensuring /boot is mounted.
Offline
At this point I would rm all of my partitions using parted to start fresh is there a neater way of doing this? I have no problem removing the partitions and reformatting to start from scratch i'm just curious as to whether that would be damaging to my hard disk in the long run.
Offline
Should not be damaging to the harddisk just seems unnecessary to me. It appears /boot was not mounted before pacstrap was run.
Chrooting in reinstalling the kernel package then possibly rerunning
# grub-mkconfig -o /boot/grub/grub.cfgshould resolve the issue. If you do reinstall please ensure you follow this step Installation_guide#Mount_the_file_systems with respect to additional filesystems.
Offline
Success! Booted up with the option to load Arch Linux! Thank you to loqs and anyone else who helped me out. For anyone who has a similar issue my fault was not having my esp (/mnt/boot) mounted before using the pacstrap command to install base. Having started over with the correct mounted partitions formatted prior to install did the trick. Also, don't forget the grub-mkconfig!
Last question, kinda funny yet sad. My hostname file I just put hostname inside... But I can't log in !!
Offline
Did you miss Installation_guide#Root_password?
Offline
No I set the password but I only worked as root for username
Offline
You can not log in as root with the password you set?
If that is the case ( and I am not misunderstanding you ) chroot in and try setting the password again in case it was mistyped also check the Journal for the reason login was refused.
Edit:
This really should be split into a new thread as it is a separate topic see Code_of_conduct#How_to_post
Choose one topic per thread. Long threads are typically discouraged in the technical issue subforums.
Last edited by loqs (2017-06-14 23:51:20)
Offline