You are not logged in.
Pages: 1
Hello everyone,
after installing arch twice with getting the same result and searching through the wikis I am posting my problem here.
I installed my system following the Beginner's Guide
so I installed Grub, having
sda1 --as the boot partition (100mb)
sda2 --as the root partition (20gb)
sda3 --as the swap (4gb)
sda4 --as the home partition(rest)
But when now I boot, the grub shel prompts up and tells me I can't boot and need to load the kernel first.
So I did:
grub > set prefix=(hd0,msdos1)/grub
Pointing grub to the boot partition (right?)
grub > insmod linux
inserting the linux mod
grub > set root=(hd0,msdos2)
pointing grub to the root directory/fs (right?)
But now it cannot find the vmlinuz image anywhere.
Not even with
grub > search --set=root --file /vmlinuz
I don't see the problem and don't see where I didn't follow the instructions.
With this config the installation should have put the kernel somewhere there, right?
Thanks in advance for your answers!
boonana
Last edited by boonana (2015-08-12 16:10:54)
Offline
grub > set root=(hd0,2)
pointing grub to the root directory/fs (right?)
In Grub, partition 0 is the first partition. Partition 2 is the third partition. Your third partition is swap.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Online
Right. Thanks for the quick answer.
The second one actually was:
grub > set root=(hd0,msdos2)
Which was what pressing tab gave me as possibillities for partititions.
Also: shouldn't the search funktion be able to at least locate the image?
thanks
Offline
Run the iso USB, mount sda2 at /mnt and sda1 at /mnt/boot (just like you did during the install) and make sure everything installed where you think it did.
Offline
.
Last edited by yuannan (2023-01-06 04:34:44)
Offline
As 2ManyDogs said.
If I was you I would boot live usb and:
# mount /dev/sda2 /mnt
# mount /dev/sda1 /mnt/boot
# mount /dev/sda4 /mnt/home
# swapon /dev/sda3
# mv /mnt/etc/fstab /mnt/etc/fstab.backup
# genfstab -U -p /mnt > /mnt/etc/fstab
# arch-chroot /mnt
# mkinitcpio -p linux
# grub-mkconfig -o /boot/grub/grub.cfg
# exit
# umount -R /mnt
# reboot
You could skip that mkinitcpio part but it won't harm you.
Offline
if you just want to get it to work a nice GUI installer is evo/lution.
It lets you choose everything and IMO painless way to install.
It has gparted, sudo level terminal and TUI that is already in order so all you have to do is scroll through and configure it, it has most popular desktops envioments and is how i installed Arch.All the "code" is downloaded as you install so you always have the latest Arch, but that does mean you need a ethernet cable though.
Evo/Lution installs Evo/Lution. It does not install Arch Linux. Do not peddle other distros in a technical support thread. I suggest you read and follow the forum etiquette if you wish to continue posting to these forums.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
As 2ManyDogs said.
If I was you I would boot live usb and:
# mount /dev/sda2 /mnt # mount /dev/sda1 /mnt/boot # mount /dev/sda4 /mnt/home # swapon /dev/sda3 # mv /mnt/etc/fstab /mnt/etc/fstab.backup # genfstab -U -p /mnt > /mnt/etc/fstab # arch-chroot /mnt # mkinitcpio -p linux # grub-mkconfig -o /boot/grub/grub.cfg # exit # umount -R /mnt # reboot
You could skip that mkinitcpio part but it won't harm you.
Thank you for your quick reply!
System wouldn't run mkinitcpio with
unknown command: mkinitcpio
So I reinstalled with
pacstrap -i /mnt base base-devel
And it turns out just pressing enter when being asked about which depositiorys to include doesn't set the default(=all) value but
1-n
where n is the number of possible packages, does.
So it seems the whole mkinitcpio never took place in the installations before.
Maybe someone could add this hint with the depositories to the beginners guide?
Thanks!
boonana
Offline
Pages: 1