Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I edit: /boot/grub/menu.lst and /etc/default/grub, but the terminal did not allow to update the Grub

the code from the terminal:

user@user-desktop:~$ sudo update-grub
/etc/default/grub: 29: menuentry: not found
share|improve this question
    
You need to include the menu.lst file in your question if you expect people to help here. Probably you have made a mistake with the syntax of the file. –  Peter Jenkins Mar 29 '13 at 9:37
    
Anyway, the '29' in the error message is the line number where the mistake probably is. –  Peter Jenkins Mar 29 '13 at 9:39
add comment

2 Answers 2

Check the file /etc/default/grub. There is something wrong on line 29. Maybe a typo or something else. Check the entry on this line against other similar entries.

share|improve this answer
    
i cant edit this file /etc/default/grub the edit commend is not working why?? –  user143588 Mar 28 '13 at 9:27
add comment

Try to install grub-pc package,it will create a new grub file inside /etc/default and thereby you can easily update the grub.

sudo apt-get install grub-pc
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.