Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

grub dumps to grub rescue on startup

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
sumerman
n00b
n00b
User avatar
Posts: 51
Joined: Sun Jun 26, 2005 8:24 pm
Location: New York, NY

grub dumps to grub rescue on startup

  • Quote

Post by sumerman » Mon Feb 02, 2015 3:35 am

Hi. I had a fine working Gentoo system. I had my system files on /dev/sda5 (ext4 formatted) and my home directory on a btrfs array of four partitions. Last week I ran btrfs-check on /dev/sda5 and it returned errors, and the btrfs-repair function did not fix it. Although the computer still worked fine, I copied the files from /dev/sda5 to a new partition, /dev/sda4. Using that as my new system also worked without any problems (I used grub2 as my bootloader throughout).

Then the funniness started to happen. I installed a new kernel, ran

Code: Select all

grub-mkconfig -o /boot/grub/grub.cfg
as usual, and it created the grub.cfg as expected. However, when I rebooted, the menu didn't show the new kernel; the grub2 menu was unchanged and didn't have the new kernel listed. I then realized that it wasstill loading from the grub.cfg on /dev/sda5. I tested this by manually editing the sda5 grub.cfg a bit and restarted grub, and the change showed up, proving that the sda5 grub.cfg was being read. I could manually edit the file on startup and run my new kernel, and it worked without any problem, but I couldn't get the grub.cfg on /dev/sda4 to be read.

Finally, I deleted /dev/sda5. Now when I start the computer, I get the grub rescue command line with no grub menu. grub2 complains with

Code: Select all

error: no such device 2ebca304-4af8-4666-b556-98f5136dcd6a
This was the UUID of the deleted partition /dev/sda5! So far I tried clearing the MBR (I have an MBR/GPT system) and reinstalling grub, but still I can't get past the grub rescue command line at the startup. If I try to start from the rescue command line using grub commands, grub complains about an "unknown filesystem" (which is ext4).

I hope someone can shed some light on this sticky problem. I don't know how to eliminate this remnant from a deleted partition.
Top
sumerman
n00b
n00b
User avatar
Posts: 51
Joined: Sun Jun 26, 2005 8:24 pm
Location: New York, NY

Fixed

  • Quote

Post by sumerman » Mon Feb 02, 2015 2:37 pm

I installed grub on another hard drive and it worked. Then I tried installing back on the original drive (sda) and it worked again. So I'm back in business. I suspect it has something to do with btrfs and its stickiness and the fact that you cannot change the UUID on a drive or partition. At least that's my working hypothesis.
Top
Post Reply

2 posts • Page 1 of 1

Return to “Installing Gentoo”

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

 

 

magic