You are not logged in.
Hi,
Yesteday I converted my partition to ext4 sucesfully, and I managed to boot once after that, but when I tried to reboot, GRUB2 would say:
error: invalid magic number
while trying to load the kernel. I already chrooted from my Ubuntu partition and tried to fix by reinstalling kernel and fsck'ing, but no luck. ideas? I can't even boot from fallback :S
Proud Ex-Arch user.
Still an ArchLinux lover though.
Currently on Kubuntu 9.10
Offline
I searched around for your error, and I found references to people basically having things named in a way the grub2 doesn't like. Maybe posting your grug.cfg file would help?
Offline
Last time I checked grub2 was not able to handle the extents of ext4. But grub from [core] does.
Offline
Last time I checked grub2 was not able to handle the extents of ext4. But grub from [core] does.
I'm using grub2 and converted my file systems using the tune2fs lines listed here:
http://wiki.archlinux.org/index.php/Cre … t3_to_ext4
Unless I'm missing something, it works fine.
Offline
Ok, here's my grub.cfg
# Config file for GRUB2 - The GNU GRand Unified Bootloader
# /boot/grub/grub.cfg
# DEVICE NAME CONVERSIONS
#
# Linux Grub
# -------------------------
# /dev/fd0 (fd0)
# /dev/sda (hd0)
# /dev/sdb2 (hd1,2)
# /dev/sda3 (hd0,3)
#
# Timeout for menu
set timeout=5
# Set default boot entry as Entry 0
set default=0
#Colors
set menu_color_normal=light-blue/black
set menu_color_highlight=light-cyan/blue
#modules insert
insmod linux
# (0) Arch Linux
menuentry "Arch Linux" {
set root=(hd0,5)
linux /boot/vmlinuz26 root=/dev/sda5 rootfstype=ext4 ro quiet
initrd /boot/kernel26.img
}
# (1) Arch Linux recovery
menuentry "Arch Linux Fallback" {
set root=(hd0,5)
linux /boot/vmlinuz26 root=/dev/sda5 ro quiet
initrd /boot/kernel26-fallback.img
}
menuentry "Kubuntu 8.10, kernel 2.6.27-7-generic" {
set root=(hd1,5)
linux /boot/vmlinuz-2.6.28-4-generic root=/dev/sdb5 ro quiet splash
initrd /boot/initrd.img-2.6.28-4-generic
}
menuentry "Kubuntu 8.10, kernel 2.6.27-7-generic (recovery)" {
set root=(hd1,5)
linux /boot/vmlinuz-2.6.28-4-generic root=/dev/hda1 ro single
initrd /boot/initrd.img-2.6.28-4-generic
}
## (1) Windows
#menuentry "Windows" {
#set root=(hd0,3)
#chainloader +1
#}
BTW, if I change "linux" command for "multiboot", I get this:
alloc magic is broken at 0x19710
Any ideas on what may be causing this? Perhaps changing to GRUB-legacy would help?
Proud Ex-Arch user.
Still an ArchLinux lover though.
Currently on Kubuntu 9.10
Offline
I don't know much about this stuff, but I do know that this works. Obviously it's a very vanilla grub2 config. Hopefully this will help:
# Timeout for menu
set timeout=5
# Set default boot entry as Entry 0
set default=0
# (0) Arch Linux
menuentry "Arch Linux" {
set root=(hd0,1)
linux /vmlinuz26 root=/dev/sda3 ro
initrd /kernel26.img
}
# (1) Arch Linux
menuentry "Fallback" {
set root=(hd0,1)
linux /vmlinuz26 root=/dev/sda3 ro
initrd /kernel26-fallback.img
}
Offline
I don't know much about this stuff, but I do know that this works. Obviously it's a very vanilla grub2 config. Hopefully this will help:
# Timeout for menu set timeout=5 # Set default boot entry as Entry 0 set default=0 # (0) Arch Linux menuentry "Arch Linux" { set root=(hd0,1) linux /vmlinuz26 root=/dev/sda3 ro initrd /kernel26.img } # (1) Arch Linux menuentry "Fallback" { set root=(hd0,1) linux /vmlinuz26 root=/dev/sda3 ro initrd /kernel26-fallback.img }
And what should I do with this? I don't get it :S
Proud Ex-Arch user.
Still an ArchLinux lover though.
Currently on Kubuntu 9.10
Offline
I believe that this line was only necessary for ext4-dev:
rootfstype=ext4
I don't know if will have any effect, but as I mentioned before about sites that I ran into, it seems that little things like this may break grub2.
Offline
I believe that this line was only necessary for ext4-dev:
rootfstype=ext4
I don't know if will have any effect, but as I mentioned before about sites that I ran into, it seems that little things like this may break grub2.
Not really, since the error will show up also if I only execute:
multiboot /boot/vmlinuz26
I investigated a little bit on this, but couldn't find anything else than this
:
http://www.nabble.com/Bug-462835:-grub- … 22694.html
Perhaps I should report a bug upstream and try installing GRUB-Legacy as a workaround could help?
However this will be tough, since none of my Arch LiveCD's have yet the latest kernel, and because of that I can't install GRUB... hmm, any ideas on this?
Proud Ex-Arch user.
Still an ArchLinux lover though.
Currently on Kubuntu 9.10
Offline
You should be able to chroot into your current system through an Arch livecd and run pacman from there. If you don't have web access during that time, I would grab a copy of grub (legacy) and store it where you have access. I've never done this, so I don't know how.
I wish I was more helpful.
Offline
You should be able to chroot into your current system through an Arch livecd and run pacman from there.
Do older Arch LiveCD's support Ext4dev? If they don't, then I guess I could try by installing GRUB-Legacy to my Ubuntu partition, and then fixing from Arch, will try. Hopefully GRUB is the problem.
Proud Ex-Arch user.
Still an ArchLinux lover though.
Currently on Kubuntu 9.10
Offline
skottish wrote:You should be able to chroot into your current system through an Arch livecd and run pacman from there.
Do older Arch LiveCD's support Ext4dev? If they don't, then I guess I could try by installing GRUB-Legacy to my Ubuntu partition, and then fixing from Arch, will try. Hopefully GRUB is the problem.
All that I know of is here. Of course you'll have to download yet another ISO.
Offline
LTSmash wrote:skottish wrote:You should be able to chroot into your current system through an Arch livecd and run pacman from there.
Do older Arch LiveCD's support Ext4dev? If they don't, then I guess I could try by installing GRUB-Legacy to my Ubuntu partition, and then fixing from Arch, will try. Hopefully GRUB is the problem.
All that I know of is here. Of course you'll have to download yet another ISO.
Hmm, I already downloaded Godane's Live Arch CD
I'll try to fix my system with that...
Proud Ex-Arch user.
Still an ArchLinux lover though.
Currently on Kubuntu 9.10
Offline
Wohooo... fixed
Just installed GRUB package from jaunty to my Ubuntu partition, and grub-install'd from there...
Darn, I won't be using GRUB2 in a while again :S
Proud Ex-Arch user.
Still an ArchLinux lover though.
Currently on Kubuntu 9.10
Offline