0

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?

Wouter J
  • 41,455
  • 15
  • 107
  • 112
sonya kochooloo
  • 114
  • 1
  • 5
  • Try calling `sudo update-grub` from console. It will write a new standard configuration – matcauthon Jul 30 '13 at 19:20
  • this does not help. i need to get it from someone. i need the menu.lst entry in text. – sonya kochooloo Jul 30 '13 at 19:22
  • As long as you are still running ubuntu [this will help!](http://manpages.ubuntu.com/manpages/hardy/man8/update-grub.8.html)...Getting it from someone else will not help, its specific for your configuration. But you can use any of [these helps too](http://askubuntu.com/search?q=menu.lst) – matcauthon Jul 30 '13 at 19:35
  • I'm not working in ubuntu. i actually need exactly that line of code to enter in menu.lst. someone just can copy and paste the menu.lst file content here and that's all. can you help, please? – sonya kochooloo Jul 30 '13 at 19:40
  • 1
    This question should be moved to the Ubuntu site: http://askubuntu.com/ – Robert H Jul 30 '13 at 19:48
  • See this: http://wiki.ubuntuusers.de/menu.lst#Liste-automatisch-generierter-Menueeintraege – matcauthon Jul 30 '13 at 19:50
  • @sonyakochooloo Did you install an older version of Grub? 12.10 uses grub 2 by default and instead uses the grub.cfg file and has since 9.10 – Robert H Jul 30 '13 at 19:56

1 Answers1

0

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.

Robert H
  • 11,520
  • 18
  • 68
  • 110