You are not logged in.

#1 2009-08-03 20:12:45

kapz
Member
Registered: 2009-03-26
Posts: 88
Website

[Closed]:Help - upgraded kernel and MBR corrupted.

Hi ya...yesterday upgraded system and kernel as well. Now soon after installing the kernel pacman did a dry run, but when it started like parsing hook,pata and sata and stuff it gave a continuous error saying that /lib/initcpio/ : line 136 stat not found' and now the arch wont boot!....the fallback image and the single user didnt help either.

Error message while booting - VFS: Unable to mount fs root filesystem on unknown-block (0,0)..

Please advise if some more info is required and how?!?................

I tried booting with live cd and then chroot and reinstall kernel but the same error comes up...help..

Thanks
[Edit: made few small changes in error message]

Last edited by kapz (2009-10-04 22:01:51)


I wonder how it would be like to use the rest 99% of my brain..:P

Registered Linux User: 487155

Offline

#2 2009-08-04 23:27:26

kapz
Member
Registered: 2009-03-26
Posts: 88
Website

Re: [Closed]:Help - upgraded kernel and MBR corrupted.

Alright...the specs:

Initially.....
HDD - 80 GB SATA. 20 GB sda1 (NTFS), 20 GB sda2 (NTFS), 10 GB sda5 (NTFS), 2 GB (swap), 12 GB (ext4 Arch).

[P] = Primary.

Now broke sda-2&3 to multiple parts, so now its like:

[P] sda1(NTFS), [P] sda2(UFS-PC Bsd), [P] sda3(zfs-opensolaris), sda5(ext3), sda6(reiserfs), sda7(ext3), sda8(ext4), sda9(ext3), sda10(ext10), sda11(swap), sda12(ext4 for ARCH).

After doing this partition the arch was running fine, did couple of upgrades to softwares as well. But yesterday when I upgraded the kernel it gave me some messages[ I believe they are the same as follows]...and then I rebooted the PC, but it wont boot!.....Error mesage mentioned as above.

All my directory structure is mounted on sda12, i.e I dont have a separate boot partition.

so i booted with live cd and mounted arch under /mnt, mounted proc and sysfs and did mount -o bind /dev to /mnt/dev and did chroot /mnt /bin/bash..I logged into the bash all fine. Again reinstalled kernel, here is the output in parts:

Upgrading kernel26
>>>
Warning: /boot appears to be a separate partition but it is not mounted. This is not likely what you want. Please mount your /boot partition and reinstall the kernel unless your sure it's OK.(Is this because am doing it from live cd? coz my grub is in /sda12/boot and its working fine)
Then it starts upgrading kernel.. after sometime:

[Parsing: SATA]
/lib/initcpio/functions: line 136: stat: command not found
/lib/initcpio/functions: line 136: stat: command not found
/lib/initcpio/functions: line 136: stat: command not found
...............................................................................................(repeats many many times)

Unrecognized file format '/libmodules/2.6.30-ARCH/kernel/fs/squashfs/squashfs.ko /lib/modules/2.6.30-ARCH/kernel/fs/squashfs/squashfs.ko 00' line 408
Unrecognized file format '/libmodules/2.6.30-ARCH/kernel/fs/reiserfs/reiserfs.ko /lib/modules/2.6.30-ARCH/kernel/fs/reiserfs/reiserfs.ko 00' line 410

(Then the error message is repeated till the end, the only change in it is reiserfs.ko changed to squashfs.ko/ufs.ko/xfs.ko and so on... and the line no. changes...)

Generating image '/boot/kernel26-fallback.img'-success

now if I chroot to livecd and do ls /dev/

I get sda1/2/3/5/6/7/8/9/10/12/13/14/15!

whereas chroot to my hdd system shows output - sda1/2/3/5/6/7/8/9/10/11/12

so changed the UUID format to /dev/sda12 for root in fstab and /dev/sda11 for swap, modified grub and it doesnt help either....

Help guyz, m not able to boot the system and as Arch is my main distro and has all apps installed on it so my system is kind of vegged out and is of no good use!....Thanks

Last edited by kapz (2009-08-05 01:11:49)


I wonder how it would be like to use the rest 99% of my brain..:P

Registered Linux User: 487155

Offline

#3 2009-08-05 09:14:38

schuay
Package Maintainer (PM)
From: Austria
Registered: 2008-08-19
Posts: 564

Re: [Closed]:Help - upgraded kernel and MBR corrupted.

pacman -Qo $(which stat )
/usr/bin/stat is owned by coreutils 7.4-1

Have you tried installing coreutils before updating the kernel? If it still doesn't work, is your $PATH set correctly?

Offline

#4 2009-08-05 20:18:22

kapz
Member
Registered: 2009-03-26
Posts: 88
Website

Re: [Closed]:Help - upgraded kernel and MBR corrupted.

It seams like the partition table is corrupted...all partitions are mounted incorrectly in other distros as well......
maybe due to mbr is wrong....tried fdisk then x f w, but no joy...


I wonder how it would be like to use the rest 99% of my brain..:P

Registered Linux User: 487155

Offline

#5 2009-10-04 22:02:59

kapz
Member
Registered: 2009-03-26
Posts: 88
Website

Re: [Closed]:Help - upgraded kernel and MBR corrupted.

Fresh Install was the only QUICK workaround at that time. hmm


I wonder how it would be like to use the rest 99% of my brain..:P

Registered Linux User: 487155

Offline

#6 2009-10-05 12:44:43

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: [Closed]:Help - upgraded kernel and MBR corrupted.

Did you use parted or qtparted or fdisk before things went wrong?

My experience is that parted (or qtparted that uses parted I believe) or fdisk tend to do a bad job at leaving the partition table in a good state, now I only use cfdisk to create the partitions and I try not to move or resize them afterwards. I may use qtparted to format them though but that doesn't mess things up.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#7 2009-10-05 18:06:20

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: [Closed]:Help - upgraded kernel and MBR corrupted.

Never had a problem with any of them myself, always found those programs to be very reliable.


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#8 2009-10-06 06:27:32

kapz
Member
Registered: 2009-03-26
Posts: 88
Website

Re: [Closed]:Help - upgraded kernel and MBR corrupted.

No, I never use any other partition tools other than cfdisk. But whenever i tried to write the partition it would say failed to update mbr, please reboot. It happened for a couple of times(as I kept breaking partitions and install other OS). And finally everything messed up in all Linuxes(partitions were mounted incorrectly), but Arch wont boot. But thats history now I got Arch up and running smile


I wonder how it would be like to use the rest 99% of my brain..:P

Registered Linux User: 487155

Offline

Board footer

Powered by FluxBB