Linux GRUB – Fix GRUB After Moving Root Partition

debiangrublinux

Because I am using one of the new WD disks I am trying to aling my root partition with the real sectors, as described here:

http://community.wdc.com/t5/Desktop/Problem-with-WD-Advanced-Format-drive-in-LINUX-WD15EARS/m-p/10920#M631

So I copied all files to a temp location, deleted my partition (/dev/sda3), recreated it a few cylinders later (same name) and copied the files to the newly created partition. But now when I try to boot, I get my old grub menu but after selecting my kernel version it hangs… Any idea how I can fix it?

Best Answer

Fixed now - the problem was that the partitions UUID has changed as an effect of my actions so I had to update /boot/grub/grub.cfg with the new ids, which I got by running (as root):

blkid
Related Question