Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

GRUB boot failure and fix HOW TO

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
penguinlnx
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 124
Joined: Thu Mar 17, 2005 9:20 am
Location: Ice Station Alert AFB
Contact:
Contact penguinlnx
Website

GRUB boot failure and fix HOW TO

  • Quote

Post by penguinlnx » Wed Apr 27, 2005 12:19 pm

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.
Firewall HardwareCUPS
Top
penguinlnx
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 124
Joined: Thu Mar 17, 2005 9:20 am
Location: Ice Station Alert AFB
Contact:
Contact penguinlnx
Website

  • Quote

Post by penguinlnx » Wed Apr 27, 2005 9:34 pm

See also the other thread, GRUB stopped working suddenly for some other ideas and associated problems.
Firewall HardwareCUPS
Top
Post Reply

2 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy