| View previous topic :: View next topic |
| Author |
Message |
gringo Advocate


Joined: 27 Apr 2003 Posts: 3584
|
Posted: Thu Jul 05, 2012 1:41 pm Post subject: yaboot : filesystem corruption |
|
|
Hey all,
its been a while but in the last few days i tried to get my alubook up to date, just to play with a few things there.
Yesterday morning when i booted it up again ( it worked perfectly fine the days before) i was presented by yaboot with a screen saying more or less "filesystem unknown or corrupted". Worth to mention that yes, i updated yaboot the day before ( and re-run ybin) and e2fsprogs(-libs) and added static-libs as requested.
After using an old livecd from fedora ( gentoos didnt work for me) i checked every single file system on the disk and it all looked fine. I even re-emerged yaboot and deps again just to check if maybe some file there was corrupted but no joy.
So, any clues ? I really have no idea what could be wrong.
TIA |
|
| Back to top |
|
 |
JoseJX Developer

Joined: 28 Apr 2002 Posts: 2771
|
Posted: Sat Jul 07, 2012 3:15 am Post subject: |
|
|
Stable or unstable yaboot? What kind of filesystem for the root partition? When is it happening in the boot sequence? _________________ Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml |
|
| Back to top |
|
 |
gringo Advocate


Joined: 27 Apr 2003 Posts: 3584
|
Posted: Sat Jul 07, 2012 8:42 am Post subject: |
|
|
- im on unstable, latest yaboot in the tree
- root is on ext4, /boot is ext2
- it doesnt get to load the system, if i hit enter in yaboot to load the kernel it says literally"(OF route to the /boot partition): Unknown partition or corrupted filesystem)
Macos boots, i supposed the problem was that the bootstrap partition was corrupted so that i tried to rewrite the hole bootstrap partition with mkboot, which succeded without errors but i get the same message when i try to boot afterwards.
TIA ! |
|
| Back to top |
|
 |
neopablo2000 n00b


Joined: 21 Jun 2005 Posts: 65
|
Posted: Sat Jul 28, 2012 7:16 pm Post subject: |
|
|
| Hi gringo! did you solve this problem? same here... Just upgraded yaboot, and after that, no matter what i try (booting livecd, reinstalling yaboot, rechecking yaboot.conf, etc) i can get it to boot. Same message: Unknown or corrupt filesystem. Thank you!! |
|
| Back to top |
|
 |
khayyam Veteran


Joined: 07 Jun 2012 Posts: 1250
|
Posted: Sat Jul 28, 2012 8:01 pm Post subject: |
|
|
neopablo2000 et al ...
my pismo died some six months back and so I'm unable to test this at all, however, I think the issue here is with newer yaboot versions (compiled against newer e2fsprogs) and whats currently installed in NVRAM. In simple terms: a mismatch between ex2fs on disk and what the NVRAM expects that filesystem to be like.
Unfortuanately I can't think of a way to fix it as you can't boot to update the NVRAM and it seems the version of yaboot on the boot disk is the version of built against the old e2fsprogs.
Again, I'm speculating on the cause here, but it does seem to fit with current changes. Perhaps JoseJX can suggest a solution or provide a link to a livecd with yaboot-1.3.17-r2.
best ... khay |
|
| Back to top |
|
 |
neopablo2000 n00b


Joined: 21 Jun 2005 Posts: 65
|
Posted: Sat Jul 28, 2012 8:38 pm Post subject: |
|
|
thank you very much for the answer! But a couple of minutes ago, my problem got solved. How? Well, kind of weird.. I kept going into booting livecd (liveusb in fact), and trying and trying.. And only God knows why, i checked my partitions with mac-fdisk, and oohhh, surprise! My partition table had changed... to be more graphic, it was:
/dev/hda1 Apple_partition_map
/dev/hda2 Apple_Bootstrap
/dev/hda3 swap
/dev/hda4 root
/dev/hda5 Apple_free
/dev/hda6 Apple_HFS (aqui tengo Mac os X)
The only thing i did was to update my world with the classic emerge -uDN world, wich updated yaboot. After that, the problem began... The weird thing is that in one of those many reboots with liveusb, i checked my partitions with mac-fdisk and it was as explained before. I never did any change, nor saved anything with the command w inside mac-fdisk, just printed partition table, watched, and quitted (q).
But a while ago, keeping trying to solve this problem, rechecked my partition scheme, and it changed to:
/dev/hda1 Apple_partition_map
/dev/hda2 Apple_Bootstrap
/dev/hda3 Apple_Free
/dev/hda4 swap
/dev/hda5 root
/dev/hda6 Apple_HFS
Why in heaven the free apple partition changed its position in the partition table, is a mystery to me... what i know for sure is that i run yabootconfig, i detected the new scheme, installed, and now i booted succesfully. Perhaps it can help ohters to see if the problem is the same. It is just what happened to me!, Sorry my english, not english-speaker! Again, thanks for the answer, and I`ll keep in touch, just in case! |
|
| Back to top |
|
 |
gringo Advocate


Joined: 27 Apr 2003 Posts: 3584
|
Posted: Sun Jul 29, 2012 6:44 am Post subject: |
|
|
thanks for your answers guys !
| Quote: | | My partition table had changed |
not for me at least, my partition layout is the same as before, no changes there.
Its not that i have much time to play with this laptop, as soon as i have access to it again i will downgrade yaboot and rewrite the bootstrap partition.
Not that i think this will help but who knows ...
in case anyone has any idea pls. let mw know, im happy to test
TIA ! |
|
| Back to top |
|
 |
neopablo2000 n00b


Joined: 21 Jun 2005 Posts: 65
|
Posted: Sun Jul 29, 2012 7:53 pm Post subject: |
|
|
Back here, because my problem is far from solved. After that successful boot (sorry my english, not english-speaker), y continued with what i was doing, it is, trying to put xfce to work. I needed to upgrade udev, wich didn´t compile, complaining about a couple of options in kernel not being set, and a couple, that i should unset. I did it, recompiled my kernel, put it in /boot, made the needed changes, and after reboot.... damn... "unknown or corrupt filesyste". Rebooted with liveusb, rechecked my partitions scheme, and it didn`t change. So, i downgraded yaboot (from r2 to r1), same result... So here Im, stucked again... trying to find out what`s wrong here... before restarting my system from liveusb, i made a fsck to /dev/hda5, just in case... clean... everything is where its supposed to be... what drives me crazy is: why it booted last time? the change in the partition scheme was casualty?... there is some kind of spell over this notebook....? muuuahahahahahaha!!!... It will continue...
P.D.: Gringo, i know you speak spanish, could you please tell me what the heck is TIA??? hahahaha!
P.D.2: Correct me if im wrong: does it mean Thanks In Advance? Just learning english, hahahaha!  |
|
| Back to top |
|
 |
khayyam Veteran


Joined: 07 Jun 2012 Posts: 1250
|
Posted: Sun Jul 29, 2012 8:25 pm Post subject: |
|
|
neopablo2000, gringo, et al ...
I think sys-fs/e2fsprogs is probably the issue here ... note that its added as a dependency, and the yaboot-stubfuncs.patch (for recent e2fsprogs) was added to sys-boot/yaboot-1.3.17-r2. Again, I sadly nolonger have a powerpc machine at hand and so I've no way to test this hypothesis, but if you downgrade yaboot I imagine that e2fsprogs might also need downgraded.
| Code: | % awk '{RS="\n\n"}/1.3.(17:|17-r2)/' <(equery depgraph yaboot)
sys-boot/yaboot-1.3.17:
[ 0] sys-boot/yaboot-1.3.17
[ 1] sys-apps/powerpc-utils-1.1.3.18-r2
[ 1] sys-fs/hfsutils-3.2.6-r5
[ 1] sys-fs/hfsplusutils-1.0.4-r1
[ 1] sys-fs/mac-fdisk-0.1-r7
sys-boot/yaboot-1.3.17-r2:
[ 0] sys-boot/yaboot-1.3.17-r2
[ 1] sys-apps/powerpc-utils-1.1.3.18-r2
[ 1] sys-fs/e2fsprogs-1.42
[ 1] sys-fs/hfsutils-3.2.6-r5
[ 1] sys-fs/hfsplusutils-1.0.4-r1
[ 1] sys-fs/mac-fdisk-0.1-r7 |
HTH & best ... khay |
|
| Back to top |
|
 |
neopablo2000 n00b


Joined: 21 Jun 2005 Posts: 65
|
Posted: Sun Jul 29, 2012 9:22 pm Post subject: |
|
|
Hi! I reached the same conclusion about e2fsprogs, but instead, i`m reemerging yaboot together with all its dependencies with emerge -eav yaboot. If successfull, I`ll post it, if not, I`ll downgrade e2fsprogs to see results. It took me to this package because the error message is kinda clear: unknown or corrupt filesystem. keeping in touch!!  |
|
| Back to top |
|
 |
neopablo2000 n00b


Joined: 21 Jun 2005 Posts: 65
|
Posted: Mon Jul 30, 2012 4:49 pm Post subject: |
|
|
Hi! Well, my problem got solved in this way: having probed that emerge -eav yaboot didn`t solve the problem, y choose to downgrade e2fsprogs by masking version 1.43.4 and 1.43.3, so i got e2fsprogs-1.42.1. Also downgraded yaboot from version 1.3.17-r2 to 1.3.17-r1. This worked, and now i can boot normally. After downgrading e2fsprogs, trying to downgrade yaboot got me a new kind of error, complaining about a library not being where it was supposed to be, wich i solved reemerging e2fsprogs with static-libs USE. After that, yaboot compiled fine, and system booted normally. Sooooo, in resume, what i did:
1- masked versions 1.43.4 and 1.43.3 of e2fsprogs in /etc/portage/packages.mask
2- emerged e2fsprogs-1.43.1 with "statics-libs" USE
3- masked version 1.3.17-r2 of yaboot
4- emerged yaboot-1.3.17-r1
5- Just in case, reinstalled yaboot with yabootconfig, and that´s it, i can boot normally
Hope this can help you, gringo! You are the owner of this post . I`ll check to see if you did solve this during the day. |
|
| Back to top |
|
 |
gringo Advocate


Joined: 27 Apr 2003 Posts: 3584
|
Posted: Mon Jul 30, 2012 5:17 pm Post subject: |
|
|
had some access to it and i can confirm that downgrading to stable e2fsprogs(-libs) both with static-libs USE enabled works here for me.
downgrading to *any* version of yaboot in the tree was even impossible with lots of "indefined-reference" errors, which i suppose means there is nothing worng with yaboot per se as yaboot is still the latest ~arch one.
Will try to track down which exact version is the latest one that works for me and/or if it might be related to the static-libs USE.
According to my emerge.log i jumped from 1.42_pre0702 ( which isnt in the tree anymore) to 1.42.4 which makes it easy to trackdown.
EDIT 1 : didnt see your post neopablo, gracias !
EDIT 2: @neopablo: yes, TIA means thanks in advance as far as i know.
cheers |
|
| Back to top |
|
 |
Ato n00b


Joined: 22 Dec 2007 Posts: 66 Location: Duisburg, Germany
|
|
| Back to top |
|
 |
neopablo2000 n00b


Joined: 21 Jun 2005 Posts: 65
|
Posted: Thu Aug 02, 2012 1:55 pm Post subject: |
|
|
Pretty interesting post about Grub2! For me, now yaboot is working fine, and like one of the first phrases i read while getting in Linux world: If it`s not broken, don`t fix it . Perhaps when Grub2 gets more documented and stable, I`ll give it a try. Gringo, I think the problem here is the static-libs USE flag. And nothing else. . if i wasn`t dealing with getting Xorg to work on my ppc, I would make tests to see if I`m correct. Perhaps after I solve that, I will. Thank you!!  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|