You are not logged in.

#1 2009-01-18 18:57:53

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

Arch won't boot after switching to ext4

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

#2 2009-01-18 20:37:34

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Arch won't boot after switching to ext4

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

#3 2009-01-18 20:57:25

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,964
Website

Re: Arch won't boot after switching to ext4

Last time I checked grub2 was not able to handle the extents of ext4. But grub from [core] does.

Offline

#4 2009-01-18 21:13:26

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Arch won't boot after switching to ext4

Pierre wrote:

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

#5 2009-01-19 19:24:21

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

Re: Arch won't boot after switching to ext4

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

#6 2009-01-19 19:32:33

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Arch won't boot after switching to ext4

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

#7 2009-01-19 19:50:02

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

Re: Arch won't boot after switching to ext4

skottish wrote:

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

#8 2009-01-19 19:57:59

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Arch won't boot after switching to ext4

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

#9 2009-01-19 20:03:16

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

Re: Arch won't boot after switching to ext4

skottish wrote:

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

#10 2009-01-19 20:38:46

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Arch won't boot after switching to ext4

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

#11 2009-01-20 00:05:14

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

Re: Arch won't boot after switching to ext4

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.


Proud Ex-Arch user.
Still an ArchLinux lover though.

Currently on Kubuntu 9.10

Offline

#12 2009-01-20 00:37:36

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Arch won't boot after switching to ext4

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.

http://bbs.archlinux.org/viewtopic.php?id=60385

Offline

#13 2009-01-20 03:49:43

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

Re: Arch won't boot after switching to ext4

skottish wrote:
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.

http://bbs.archlinux.org/viewtopic.php?id=60385

Hmm, I already downloaded Godane's Live Arch CD tongue

I'll try to fix my system with that...


Proud Ex-Arch user.
Still an ArchLinux lover though.

Currently on Kubuntu 9.10

Offline

#14 2009-01-20 22:33:40

LTSmash
Member
From: Aguascalientes - Mexico
Registered: 2008-01-02
Posts: 348
Website

Re: Arch won't boot after switching to ext4

Wohooo... fixed big_smile

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

Board footer

Powered by FluxBB