I already know how to recover from 'grub rescue' and I'm not asking about it.I barely have one HDD and I change its partitions for multiple purpose. But everytime I do so, I got 'grub rescue', I can handle but it is annoying. Is there any way to prevent grub rescue ? (e.g. replace grub with another loader, install my own script, etc.)UPDATE: Add a few more detailsI don't use a partition as /boot but only /My root partition is a part of a bigger extended partitionMy root partition is not /dev/sda1 but /dev/sda5. I use dual-boot (Windows is in /dev/sda1)I guess when I change a part of extended partition, its address/name (i.e. (hd0,msdosX), I don't know what this is) changes, so avoiding 'grub rescue' while still use grub is perhaps impossible. May be change boot loader is the only solutionIn 'grub rescue', I saw that grub know how many partition and whether a partition is ext2/3/4 or not (by ls and ls (hdX,msdosY)), so if I could let grub scan for partition and boot the first found ext partition, problem solved!
How to prevent 'grub rescue' from ever happening?
boot;partition;grub2;grub