Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GRUB boot failure and fix HOW TO
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
penguinlnx
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2005
Posts: 124
Location: Ice Station Alert AFB

PostPosted: Wed Apr 27, 2005 12:19 pm    Post subject: GRUB boot failure and fix HOW TO Reply with quote

After rebooting, you may find a blank screen with the word "GRUB" on it:
This should work whether or not you are sitting in GRUB, or just hung frozen:
    (1) Reboot with the LiveCD.
    (2) mount the swap drive (make sure you know what the partition was: mine was hda2.)
    a) # mkswap /dev/hda2 <enter>
    b) # swapon /dev/hda2 <enter>

    (3) mount the other boot and root partitions:
    a) # mount /dev/hda4 (yours might be hda3) /mnt/gentoo <enter> (this directory should exist)
    b) # mkdir /mnt/gentoo/boot <enter> ('boot' folder may already exist'. Ignore error.)
    c) # mount /dev/hda1 (the boot partition) /mnt/gentoo/boot <enter>
    d) # mount -t proc none /mnt/gentoo/proc <enter> (this I think is necessary when booting off the liveCD)

    (4) chroot to your hard drive:
    a) # chroot /mnt/gentoo /bin/bash <enter>
    b) # env-update <enter> (this may take a couple of minutes...)
    c) # source /etc/profile <enter>
    (You don't need to do anything else if your file systems are intact, other than the GRUB files.)

    (5) Reinstall GRUB:
    a) # grub-install --root-directory=/boot /dev/hda <enter>
    (if you get an error here, make sure you have chrooted and mounted properly, start again.
    That is, Exit and unmount, by following step 6, and reboot with the LiveCD again:)

    (6) Exit the chrooted environment and unmount all partitions:
    a) # exit <enter>
    b) # cd <enter>
    c) # umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo <enter>
    d) # reboot <enter>
    (don't forget to pull the CD out of the drive after you get the blank screen/BIOS screen.)
Doing this restored my bootup to its usual errors,
some of which I haven't fixed yet. Please post a reply whether this works or not for you.

But see also this thread: GRUB stopped working...


Easy Firewall with IPtables
Hardware Fixes
CUPS Printer Install
Switching Linux from Master to Slave


Last edited by penguinlnx on Sun May 01, 2005 11:09 am; edited 6 times in total
Back to top
View user's profile Send private message
penguinlnx
Tux's lil' helper
Tux's lil' helper


Joined: 17 Mar 2005
Posts: 124
Location: Ice Station Alert AFB

PostPosted: Wed Apr 27, 2005 9:34 pm    Post subject: Reply with quote

See also the other thread, GRUB stopped working suddenly for some other ideas and associated problems.
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