Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
grub dumps to grub rescue on startup
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
sumerman
n00b
n00b


Joined: 26 Jun 2005
Posts: 51
Location: New York, NY

PostPosted: Mon Feb 02, 2015 3:35 am    Post subject: grub dumps to grub rescue on startup Reply with quote

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:
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:
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.
Back to top
View user's profile Send private message
sumerman
n00b
n00b


Joined: 26 Jun 2005
Posts: 51
Location: New York, NY

PostPosted: Mon Feb 02, 2015 2:37 pm    Post subject: Fixed Reply with quote

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.
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