Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to recover from crash...[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
maverick6664
Guru
Guru


Joined: 13 May 2005
Posts: 413
Location: Tokyo / Japan

PostPosted: Thu Aug 07, 2008 7:06 pm    Post subject: How to recover from crash...[solved] Reply with quote

I encountered power down twice today. Then Gentoo became very very slow; it took 30min to boot. How can I fix it? and what is the problem? One thing I noticed after crash was cmos memory was broken.

Now due to my fault, mbr is broken and I need to write mbr with grub. Any idea? Somehow livecd 2008.0 doesn't boot...... :(
_________________
Tetsuji Rai
a.k.a. Lukiest in the world


Last edited by maverick6664 on Fri Aug 08, 2008 2:53 am; edited 1 time in total
Back to top
View user's profile Send private message
Clad in Sky
l33t
l33t


Joined: 04 May 2007
Posts: 888
Location: Germany

PostPosted: Thu Aug 07, 2008 7:14 pm    Post subject: Reply with quote

Using the minimal CD instead of the live cd might be a good idea.

Boot up with that CD, then

Code:

mount /dev/[your harddrive - hdaX or sdaX] mnt/gentoo
mount -t proc proc proc
mount -o bind /dev dev
chroot . /bin/bash


You should then be able to rewrite your mbr. Since you mentioned GRUB which I do not use I cannot help there. The Gentoo Handbook says:
Default: Setting up GRUB using grub-install

To install GRUB you will need to issue the grub-install command. However, grub-install won't work off-the-shelf since we are inside a chrooted environment. We need to create /etc/mtab which lists all mounted filesystems. Fortunately, there is an easy way to accomplish this - just copy over /proc/mounts to /etc/mtab, excluding the rootfs line if you haven't created a separate boot partition. The following command will work in both cases:

Code Listing 2.5: Creating /etc/mtab

# grep -v rootfs /proc/mounts > /etc/mtab

Now we can install GRUB using grub-install:

Code Listing 2.6: Running grub-install

# grub-install --no-floppy /dev/sda

If you have more questions regarding GRUB, please consult the GRUB FAQ or the GRUB Manual.

Continue with Rebooting the System.

Hope this helps
_________________
Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest
Back to top
View user's profile Send private message
maverick6664
Guru
Guru


Joined: 13 May 2005
Posts: 413
Location: Tokyo / Japan

PostPosted: Fri Aug 08, 2008 2:43 am    Post subject: Reply with quote

Thank you for your advice. But I didn't have to do that.

As I wrote before I had suspected cmos (as bios said the checksum was wrong). So I had set it to "Load to failsafe value" and it has recovered.

Thank you very much. But I still don't know where in cmos was wrong....
_________________
Tetsuji Rai
a.k.a. Lukiest in the world
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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