You are not logged in.

#1 2015-08-12 13:48:34

boonana
Member
Registered: 2015-08-12
Posts: 4

new install., grub can't find kernel image

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

#2 2015-08-12 15:07:08

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,797

Re: new install., grub can't find kernel image

boonana wrote:

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

Offline

#3 2015-08-12 16:10:27

boonana
Member
Registered: 2015-08-12
Posts: 4

Re: new install., grub can't find kernel image

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

#4 2015-08-12 17:16:41

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: new install., grub can't find kernel image

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

#5 2015-08-12 23:35:19

yuannan
Member
Registered: 2015-08-12
Posts: 15

Re: new install., grub can't find kernel image

.

Last edited by yuannan (2023-01-06 04:34:44)

Offline

#6 2015-08-12 23:59:20

Rethil
Member
Registered: 2014-08-21
Posts: 83

Re: new install., grub can't find kernel image

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

#7 2015-08-13 01:11:52

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: new install., grub can't find kernel image

yuannan wrote:

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

#8 2015-08-13 13:15:25

boonana
Member
Registered: 2015-08-12
Posts: 4

Re: new install., grub can't find kernel image

Rethil wrote:

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

Board footer

Powered by FluxBB