Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
My install does not boot after hard reboot (ext3 broke)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Elv13
Guru
Guru


Joined: 13 Nov 2005
Posts: 388
Location: Socialist land of North America

PostPosted: Wed Aug 27, 2008 1:17 am    Post subject: My install does not boot after hard reboot (ext3 broke) Reply with quote

Hi, my computer gone crazy for apparently no reason when I was writing a text and with suddent rise from 0 to 100% cpu, disk write and ram, gentoo became quickly frozen. I had no choice but to do an hard reboot. But it broke ext3 and the journal fail to do his job. At that time, gentoo was booting fine, but USB was broken (no mouse and keyboard, only the emergency ps2 keyboard that is connected just in case). I rebboted on Ubuntu and did a fsck to reapair the disk, but after that, /bin was missing! Really funny... So I copied the /bin/bash binary from Ubuntu live cd and did a chroot. In the chroot, I emerged portage (portage was not broken apparently), emerged baselayout and did emerge --deep world + ctrl+c + while [ 1 ]; do emerge --deep world --resume --skipfirst; done .

10 hours layer, my 1200 packages were all rebuilded (2 error on java things, I dont care about those), quad core @3.2ghz rock 8) . Then I tried to boot, but it didn't, only the kernel (that I had rebuilded too) started. It did also mount root, but fail to load rc/init. Why does those package still broken/inexistent? Arent they suppose to be restored after a succefull emerge -e world?

How can I fix this?

EDIT: Ok, after some googling, I found that -combine in make.conf + core2 + gentoo + baselayout 2 are not good friends, so I emerged base layout without that. rc-update and rc are back and the system can boot to bash by itself. But:
-No USB
-No network
-No graphical term (xterm, aterm, konsole and gnome-term fail to open)

So after all this, none of the problem that forced me to do a emerge -e world are solved. What should I do? untar the gentoo 2008.0 archive, do a regenworld and then a emerge -ekav world? (I used -b, so bin package were created, can I use them? I also noticed that the boot prosess did a -lot- of warning about missing "net" for all network dependant package, but net.eth0 exist.

EDIT2: Ok, after doing a lot of ln -s, etc-update and env-update (and source /etc/profile), usb work again (i got a mouse!!!) but not net. I copied net.eth0 from 2008.0 stage 3 (the file was gone), but it did not help. The error is
Code:
 * Caching service dependencies ...                                       [ ok ]
 * Starting eth0
/etc/init.d/net.eth0: line 253: cd: /net: No such file or directory
ls: cannot access *.sh: No such file or directory
/etc/init.d/net.eth0: line 329: bash_variable: command not found
 *       no interface module has been loaded
 * ERROR: net.eth0 failed to start


And caused by the line
Code:
MODULES_DIR="${svclib}/net"

${svclib} is empty, so it think that /net exist. I modified it to /lib/modules/`uname -a ...`/kernel/net, but it did not work. It is also looking for some iptable file in this directory
EDIT3: I did a cp -i from the stage 3 tp /sbin and /bin, some file were missing (including function.sh required by net.eth0), but until now it did not help.
Back to top
View user's profile Send private message
Elv13
Guru
Guru


Joined: 13 Nov 2005
Posts: 388
Location: Socialist land of North America

PostPosted: Wed Aug 27, 2008 11:13 pm    Post subject: Reply with quote

Ok, so after playing a little with it again, I think that I found the problem. /sbin/functions.sh seem to contain a lot of gentoo specific boot/init functions, but it is not loaded by the newly upfated (at least on my install) baselayout (2.0.0), so init script cant find their env vars and functions, so they just fail. How can i prevent that?

EDIT: I masked baselayout2 and emerged baselayout1, it did fix all function.sh junk. It is not a bad idea to upgrade, if you get problem like mine, resore baselayout.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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