You are not logged in.

#1 2020-01-12 13:38:20

vorojan
Member
Registered: 2020-01-10
Posts: 12

grub command line after installation

Hello, friends!

A have an another trouble with installation.
After restart i see grub command line instead arch linux boot.
During installation i used this commands in chroot:

# pacman -S grub-bios
# grub-install /dev/sda
# grub-mkconfig -o /boot/grub/grub.cfg

No errors. Ony 1 warning about 32 line and possible problems with it in future (grub-install).

I found right partition (hd0,3) usung grub console, but in boot/grub
but there are no any files like "vmlinuz" or ".img"

b2117368e950.jpg

Offline

#2 2020-01-12 17:56:44

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,042
Website

Re: grub command line after installation

You have to install a kernel inside the chroot, then the pacman hooks will create an .img ramdisk for you in the pacman hook.
Make sure the /boot partition is mounted correctly inside the chroot.

Offline

#3 2020-01-12 20:11:18

vorojan
Member
Registered: 2020-01-10
Posts: 12

Re: grub command line after installation

I used instructions, that always working before now (all steps after boot from ISO and automatic enter to archiso):

1. I defined disk using #lsblk it's 'sda' for me
2. I make parts of disk using #fdisk /dev/sda:
sda1: boot, 512M
sda2: swap, 4GG
sda3: arch, 20G
sda4: home, other
Don't forget to mark bootable part (sda1) using 'a'
and swap part with it's hex-code of (LINUX SWAP)
(L to see all hex codes)
3. I format parts
#mkfs.ext2 -L boot /dev/sda1
#mkfs.ext4 -L arch /dev/sda3
#mkfs.ext4 -L home /dev/sda4
4. And format swap part:
#mkswap -L swap /dev/sda2
activate swap:
#swapon /dev/sda2
5. Mount parts:
#mount /dev/sda3 /mnt
#mkdir /mnt/{home,boot}
#mount /dev/sda1 /mnt/boot
#mount /dev/sda4 /mnt/home
6. Check Internet connection with #ping -c4 google.com
success
7. Check mirrors #nano /etc/pacman.d/mirrorlist
(I comment all mirrors except Germany)
8. Install the system:
#pacstrap /mnt base base-devel
9. Generate fstab:
#genfstab -U -p /mnt >> /mnt/etc/fstab
10. Chroot to new system:
#arch-chroot /mnt
11. Install grub-bios and some other needed packets for me:
#pacman -S brub-bios iw wpa_supplicant wpa_actiond dialog net-tools bash bash-completion networkmanager
12. Activate NetworkManager:
#systemctl enable NetworkManager.service
13. Install GRUB:
#grub-install /dev/sda
14. Configure GRUB
grub-mkconfig -o /boot/grub/grub.cfg
15. Set root rasssword:
#passw
16. Exit from chroot:
#exit
17. Unmount "home" and "boot" parts:
umount /mnt/{home,boot
18. Reboot:
#reboot

And after reboot see the grub's command line.
At what step I have to install a kernel?
Please, tell me how to do this? I read the official ArchWiki about kernels, but there are no commands to install (or I didn’t understand something).

Offline

#4 2020-01-12 22:33:44

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,197

Re: grub command line after installation

Maybe adding --target=i386-pc to your grub-install instruction as documented here is important?  I'm not honestly sure what that does, but it may be signficiant.


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

#5 2020-01-13 13:40:00

vorojan
Member
Registered: 2020-01-10
Posts: 12

Re: grub command line after installation

levi, this is default value of this option:

--target=TARGET
install GRUB for TARGET platform [default=i386-pc]; available targets: arm-coreboot, arm-efi, arm-uboot, arm64-efi, i386-coreboot, i386-efi, i386-ieee1275, i386-multiboot, i386-pc, i386-qemu, i386-xen, i386-xen_pvh, ia64-efi, mips-arc, mips-qemu_mips, mipsel-arc, mipsel-loongson, mipsel-qemu_mips, powerpc-ieee1275, riscv32-efi, riscv64-efi, sparc64-ieee1275, x86_64-efi, x86_64-xen

Source

Offline

#6 2020-01-13 18:43:49

vorojan
Member
Registered: 2020-01-10
Posts: 12

Re: grub command line after installation

Hello again! May be I have used wrong ISO (archlinux-2019.12.02-i686)?
d26df074bdfa.jpg

Offline

#7 2020-01-13 19:59:12

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,197

Re: grub command line after installation

Yes, it seems you could run the upstream archlinux if you wanted.  That shouldn't stop you being able to run the 32 bit version though.

Does grub present a menu before dropping back to its own terminal?  If not in my experience it usually means the menu configuration hasn't been properly generated.


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

#8 2020-01-14 04:48:31

vorojan
Member
Registered: 2020-01-10
Posts: 12

Re: grub command line after installation

levi wrote:

Yes, it seems you could run the upstream archlinux if you wanted.  That shouldn't stop you being able to run the 32 bit version though.

Ok, I understood, I will continue to run 32 bit version)

levi wrote:

Does grub present a menu before dropping back to its own terminal?  If not in my experience it usually means the menu configuration hasn't been properly generated.

No other menues. Grub's terminal only appears after black screen when I switch on the computer.

Last edited by vorojan (2020-01-14 04:49:55)

Offline

#9 2020-01-14 05:28:52

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,197

Re: grub command line after installation

Okay, check you've actually got a grub.conf inside /boot/grub.  Your step 14 should generate it correctly so if it hasn't, dig into that.


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

#10 2020-01-18 12:15:29

vorojan
Member
Registered: 2020-01-10
Posts: 12

Re: grub command line after installation

levi wrote:

Okay, check you've actually got a grub.conf inside /boot/grub.

On the first screenshot I performed:

ls /boot/grub

And the file grub.cfg is appears, but extension is different.

Offline

#11 2020-01-18 20:11:58

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,197

Re: grub command line after installation

Extension is different?  Not as I see it.  You shouldn't have a vmlinuz-linux file in there by the way, that should be one level up.  I think your step 13 of calling grub-install is responsible for building that as well as the initramfs.img files, and you should easily notice it doing the latter.

By the way, I find your image host a bit of a pain to use.  I can't click through to make it bigger to read it, but if I remember to right click it and hit view image it works.


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

#12 2020-01-20 06:01:16

vorojan
Member
Registered: 2020-01-10
Posts: 12

Re: grub command line after installation

You say about grub.conf but I have grub.cfg
I don't understand what I'm doing wrong in step 13 and how to fix it.

I'm using this image host because it's never deletes any images. But I agree with you, it's not comfortable now. It was better in the past.

Offline

#13 2020-01-20 07:05:00

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,197

Re: grub command line after installation

Oh right, sorry.  Evidently that was my fingers doing spelling correction for me and my brain not noticing.  Damn you auto-correct-fingers! wink

Do you actually have a vmlinux-linuz inside your /boot folder (not inside grub inside there, in the top level of the potential boot partition).  Grub-mkconfig should squark about it on the terminal, but I'm not actually sure if it puts it there or it was already populated by grub-install.


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

#14 2020-01-20 07:33:18

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,042
Website

Re: grub command line after installation

Question: did you install grub or grub-legacy?
Did you check out: https://wiki.archlinux.org/index.php/GRUB
Inside the chroot, did you make sure your /boot partition is mounted in the chroot before installing grub
or calling any grub scripts.
Did you install the BIOS version of grub?
grub-install --target=i386-pc /dev/sda
Did you get any error messages while doing so?
Did you call grub-mkconfig -o /boot/grub/grub.cfg
("And the file grub.cfg is appears, but extension is different.", the extention cannot get different)
Are you sure your boot partition is actually the same partition you are installing grub on?

Offline

#15 2020-01-20 18:37:03

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,197

Re: grub command line after installation

His documentation in post #3 of this thread indicate he ran grub-install and grub-mkconfig.  But good memory on making sure boot is mounted/not mounted appropriately; that's caught me out before now.

And the stuff about the extension on grub.cfg being wrong was all down to my own typo.  It looks good to me.


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

Board footer

Powered by FluxBB