You are not logged in.
Pages: 1
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"
Offline
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
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
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
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
Offline
Offline
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
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)
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
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
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
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
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
Oh right, sorry. Evidently that was my fingers doing spelling correction for me and my brain not noticing. Damn you auto-correct-fingers!
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
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
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
Pages: 1