You are not logged in.

#1 2009-07-21 11:02:29

Tera
Member
From: Finland
Registered: 2007-01-25
Posts: 81

[SOLVED]Grub cannot find my new kernel

I'm having a really strange issue with my Grub not finding vmlinuz26zen nor kernel26zen.img. The error is "no such file" kind and produced by Grub on boot up. I even upgraded to Grub2 if it would have made a difference but it didn't.

I have made sure that all the paths are right on grub.cfg and kernel26zen and vmlinuz26zen are in /boot and even have proper file permissions. Still, Grub is saying it can't find the files. I have even re-compiled my kernel twice and it hasn't made a difference.

Here is my grub.cfg's part that matters:

# (0) Arch Linux
menuentry "Arch Linux ZEN" {
set root=(hd0,1)
linux /vmlinuz26zen root=/dev/sda3 ro
initrd /kernel26zen.img
}

and here is the ls -al output of /boot

drwxr-xr-x  3 root root    4096 2009-07-21 13:46 .
drwxr-xr-x 21 root root    4096 2009-07-20 11:52 ..
-rw-r--r--  1 root root 1127548 2009-07-20 08:49 System.map26
-rw-r--r--  1 root root  982292 2009-07-21 13:34 System.map26zen
drwxr-xr-x  2 root root    4096 2009-07-21 13:03 grub
-rw-r--r--  1 root root   66082 2009-07-21 13:34 kconfig26zen
-rw-r--r--  1 root root 6391137 2009-07-21 12:56 kernel26-fallback.img
-rw-r--r--  1 root root 1044185 2009-07-21 12:55 kernel26.img
-rw-r--r--  1 root root 3645155 2009-07-21 13:46 kernel26zen-fallback.img
-rw-r--r--  1 root root  820845 2009-07-21 13:46 kernel26zen.img
-rw-r--r--  1 root root 1868400 2009-07-20 08:49 vmlinuz26
-rw-r--r--  1 root root 1870496 2009-07-21 13:34 vmlinuz26zen

Does anyone have a clue what the frack is going on?

Last edited by Tera (2009-07-21 12:11:23)

Offline

#2 2009-07-21 11:38:01

loafer
Member
From: the pub
Registered: 2009-04-14
Posts: 1,772

Re: [SOLVED]Grub cannot find my new kernel

Should it be:

linux /boot/vmlinuz26zen root=/dev/sda3 ro
initrd /boot/kernel26zen.img


All men have stood for freedom...
For freedom is the man that will turn the world upside down.
Gerrard Winstanley.

Offline

#3 2009-07-21 11:40:56

SpeedVin
Member
From: Poland
Registered: 2009-04-29
Posts: 955

Re: [SOLVED]Grub cannot find my new kernel

Hello first change set root=(sd0,2) becouse you are using sata disc and your /boot partition is on first disc and third partition grub count partitions from 0 wink
That's may help.


Shell Scripter | C/C++/Python/Java Coder | ZSH

Offline

#4 2009-07-21 11:46:45

Tera
Member
From: Finland
Registered: 2007-01-25
Posts: 81

Re: [SOLVED]Grub cannot find my new kernel

loafer wrote:

Should it be:

linux /boot/vmlinuz26zen root=/dev/sda3 ro
initrd /boot/kernel26zen.img

Not in my setup smile But thanks anyway.

To clarify I can boot up the Arch's own kernel just fine. I made a small test a guy in IRC suggested. I wrote "touch /boot/boobies" and then rebooted my computer and went to the Grub's commandline and made a directory list. I can't see there any other files than "System.map26, vmlinuz26, kernel26.img and kernel26-fallback.img". Also, by typing "root(hd0,1)" Grub says Filesystem is ext2". The filesystem is ext4 in reality (no migration from ext3 used). So it looks like a Grub2+ext4 fail. Any suggestions? FYI the partition is my root partition so I cannot re-format it or anything.

Last edited by Tera (2009-07-21 11:50:12)

Offline

#5 2009-07-21 11:48:25

Tera
Member
From: Finland
Registered: 2007-01-25
Posts: 81

Re: [SOLVED]Grub cannot find my new kernel

SpeedVin wrote:

Hello first change set root=(sd0,2) becouse you are using sata disc and your /boot partition is on first disc and third partition grub count partitions from 0 wink
That's may help.

root=(hd0,1) is the only way I can get Grub2 to detect the partition in question.

Offline

#6 2009-07-21 12:10:57

Tera
Member
From: Finland
Registered: 2007-01-25
Posts: 81

Re: [SOLVED]Grub cannot find my new kernel

I shrinked my swap partition and made a new separate ext2 partition for /boot and everything is now working as intended. Marking as SOLVED.

Offline

Board footer

Powered by FluxBB