UUID lost after kernel update or update-grub command

Problem: Debian Etch-Lenny-Ubuntu-Servers do not reboot successful after dist-upgrade or kernel-update and stops with Error = „failed to find root file system…“

Backround: On Debian Etch/Lenny is the /boot/grub/menu.lst set to use old partition name like hda6 not the UUID system. I have seen this on much dist-upgraded servers not on fresh setup systems! A dist-upgrade often do not overwrite or rebuild a correct menu.lst

Solution:

  1. read out UUID of root partition with
    #dumpe2fs /dev/hda6 | grep UUID
  2. edit
    /boot/grub/menu.lst
  3. search
    # kopt=root=/dev/hda6
  4. replace
    #kopt=root=UUID=FULL-UUID-12345...
  5. run as root
     update-grub
  6. edit again menu.list to check..
  7. Check
    /etc/fstab and replace /dev/hda to UUID=12345...
  8. make a test reboot..
  9. That’s it..i hope it help you…