How to add ubuntu 12.10 entry to grub menu list?

5.5k Views Asked by At

I removed my ubuntu 12.10 entry while editing menu.lst file.

can anyone give me a sample file containing the ubuntu 12.10 entry in menu.lst file.

It should be something like this:

title Ubuntu 12.10
      kernel 
      initrd 

my ubuntu installation is on sda6.

can anyone help me on this?

1

There are 1 best solutions below

0
On

Assuming that you're using Grub2 per my comment above and have not installed a non-default bootloader, here is an example menu entry from /boot/grub/grub.cfg:

menuentry 'Ubuntu, with Linux 3.5.0-23-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,msdos1)'
        search --no-floppy --fs-uuid --set=root 862e9bd8-8641-478a-96a3-d5ad9a53b104
        linux   /boot/vmlinuz-3.5.0-23-generic root=UUID=862e9bd8-8641-478a-96a3-d5ad9a53b104 ro find_preseed=/preseed.cfg noprompt  quiet
        initrd  /boot/initrd.img-3.5.0-23-generic
}

As you can see, the root drives are set via uuid, so cutting and pasting a solution will not work for you.

However you can try the Boot-Repair utility, or follow these instructions.

If you have installed an older version of grub this blog post gives some examples you may find useful.