You are not logged in.

#1 2007-06-27 17:01:34

ProzacR
Member
Registered: 2007-04-29
Posts: 272

Help with GRUB[ok]->kernel panic[ok]->filesystem check failed[&nuked]

So todays story
1.My windows partition was overruned by viruses...
2. I reinstaled windows XP
3. I tried to repair grub but without sucess
So result: unbootable system.
plz help me fix that.

Last edited by ProzacR (2007-06-27 22:43:12)

Offline

#2 2007-06-27 17:26:34

ProzacR
Member
Registered: 2007-04-29
Posts: 272

Re: Help with GRUB[ok]->kernel panic[ok]->filesystem check failed[&nuked]

plz help sad

Offline

#3 2007-06-27 17:56:06

ProzacR
Member
Registered: 2007-04-29
Posts: 272

Re: Help with GRUB[ok]->kernel panic[ok]->filesystem check failed[&nuked]

...40% done i booted into Ubuntu.

Offline

#4 2007-06-27 18:03:11

Kasdeva
Member
Registered: 2007-06-27
Posts: 5

Re: Help with GRUB[ok]->kernel panic[ok]->filesystem check failed[&nuked]

Boot with either Ubuntu/Gentoo/Arch/Knoppix installation/live CD.  Anything will do, but it has to be reasonably up to date.

Open a shell and become root.

Assuming your root partition for Arch is /dev/sda1 and you are booting from /dev/sda (Adjust to your setup)

# mount /dev/sda1 /mnt
# mount --bind /dev /mnt/dev
# chroot /mnt /bin/bash
# grub-install /dev/sda
# exit
# umount /mnt/dev
# umount /mnt


Reboot and good luck.

Offline

#5 2007-06-27 18:24:55

ProzacR
Member
Registered: 2007-04-29
Posts: 272

Re: Help with GRUB[ok]->kernel panic[ok]->filesystem check failed[&nuked]

Ok fixed grub ubuntu and windows boots ok but Arch not. sad
Everythig starts well but:
:: Running Hook [keymap]
:: Loading keymap...done.
blabla
kernel panic -not syncing: Attempted to kill init!

Offline

#6 2007-06-27 18:33:01

Kasdeva
Member
Registered: 2007-06-27
Posts: 5

Re: Help with GRUB[ok]->kernel panic[ok]->filesystem check failed[&nuked]

If you are getting kernel panics,  we are out of the boot loader territory. (Unless the root device is wrong in menu.lst)

To help with this I will need some more info. I am especially interested in the blabla bits.

What does the 5 lines preceding the kernel panic say?

Offline

#7 2007-06-27 18:41:18

ProzacR
Member
Registered: 2007-04-29
Posts: 272

Re: Help with GRUB[ok]->kernel panic[ok]->filesystem check failed[&nuked]

Ok:
...
...
:: Loading root filesystem module...stdin: error 0

Waiting for devices to settle...done
:: Initramfs Completed - control passing to kinit
IP-Config: no devices to configure
Waiting 0 s before mounting root device...
kinit: Unable to mount root fs on device sda4(8,4)
kinit: init not found!
Kernel panic - not syncing:L Attempted to kill init!

Last edited by ProzacR (2007-06-27 18:42:14)

Offline

#8 2007-06-27 18:52:10

Kasdeva
Member
Registered: 2007-06-27
Posts: 5

Re: Help with GRUB[ok]->kernel panic[ok]->filesystem check failed[&nuked]

Thank you, exactly what I needed.

Can be two things:

Grub specified the wrong root file system in menu.lst.

Try appending root=/dev/sda? to the grub boot command for arch (Replace ? with your arch root partition)  If that fixes it,  it was menu.lst in Ubuntu that broke it.


Second posibility: Grub did not specify the correct initrd image for arch.

Try specifying initrd as /boot/kernel26.img to the Grub boot configuration for arch.

It can also be both, then specify both,  I doubt it and suspect the second scenario.

This should get you booted after fiddling a bit.  Please re-run grub-install from the arch instance.

This site gives detailed instructions on how to make grub fly:

http://www.linuxforums.org/forum/linux- … -grub.html

Good luck.  I hope this fixes it for you.

Offline

#9 2007-06-27 19:38:21

ProzacR
Member
Registered: 2007-04-29
Posts: 272

Re: Help with GRUB[ok]->kernel panic[ok]->filesystem check failed[&nuked]

Yes  replaced:
root=/dev/sda4 with root=/dev/sda5
that booted ubuntu and that was funny

So then i tried 1 same panic.

And then 2. No panic -> Yeahho...But filesystem check failed. Cold this be a zero-length partition? "please repair manualy".
That gives me arch root shell.
And i do not know what to do???

Offline

#10 2007-06-27 19:53:51

Kasdeva
Member
Registered: 2007-06-27
Posts: 5

Re: Help with GRUB[ok]->kernel panic[ok]->filesystem check failed[&nuked]

Oh boy.  At least there is progress.

In the arch root shell.  Run grub-install.  This will install the arch version of grub, which, if we are just a little bit lucky, will make all these problems go away.  It can break grub too, in which case, pop the cd in and try and follow my instructions earlier in this saga about re-installing grub.

If not.

What filesystem is giving the problem? /   /home /var etc. 

If its not root,  try fsck.[jfc|etx3|reiser]  on the broken filesystem and reboot. (Please choose the appropriate filesystem. 

If its root, the best option is to boot the ubuntu lifecd, open a terminal, become root and then go fsck.[....] on the filesystem.

That should get you to boot it, which will allow you to run grub-install and hopefully sort the problem.

Offline

#11 2007-06-27 22:42:26

ProzacR
Member
Registered: 2007-04-29
Posts: 272

Re: Help with GRUB[ok]->kernel panic[ok]->filesystem check failed[&nuked]

Nothing helped so after I was boried with this I edited rc.sysinit  quoted some lines about filesystem checking and everything now ok.

Last edited by ProzacR (2007-06-27 22:47:02)

Offline

Board footer

Powered by FluxBB