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.