Converting legacy GRUB menu entries to GRUB 2

Posted by WindowsEscapist on Super User See other posts from Super User or by WindowsEscapist
Published on 2012-06-23T20:00:22Z Indexed on 2012/06/23 21:18 UTC
Read the original article Hit count: 301

Filed under:
|
|
|

I would like to change an entry for a solution to boot from CD from legacy grub (looks like title bla bla bla) to an entry to a format compatible to grub 2 (the one that looks like menuentry "bla bla bla" {.

The original legacy GRUB entry is as follows:

title Boot From CD/DVD Drive
    kernel /boot/grub/memdisk.din
    initrd /boot/grub/sbootmgr.dsk

Is there any sort of conversion rule to change this to something like the example I've put here on the next line? (This is from my precise's grub.cfg.)

menuentry 'Ubuntu, with Linux 3.2.0-25-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    gfxmode $linux_gfx_mode
    insmod gzio
    insmod part_msdos
    insmod ext2
    set root='(hd0,msdos8)'
    search --no-floppy --fs-uuid --set=root efc87ac0-daac-4a32-9a85-ea57beff0e28
    linux   /boot/vmlinuz-3.2.0-25-generic root=UUID=efc87ac0-daac-4a32-9a85-ea57beff0e28 ro   quiet splash acpi_osi= $vt_handoff
    initrd  /boot/initrd.img-3.2.0-25-generic
}

© Super User or respective owner

Related posts about ubuntu

Related posts about boot