Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

In old GRUB, if I wanted to change boot options, I would use a line starting with the word kernel in "/boot/grub/menu.lst":

kernel /vmlinuz root=/dev/sda1 ro MY BOOT OPTIONS

Now since I'm using GRUB 2, I looked under "/etc/grub.d/10_Linux" for something similar, but I'm not even sure that's the right place to do this. If it is, please guide me. If it's not, guide me anyways.

share|improve this question
    
If it matters, I use Debian. –  Tshepang Feb 24 '11 at 13:28
    
Funny, I remember upvoting this question before... –  phunehehe Feb 24 '11 at 17:16

1 Answer 1

up vote 4 down vote accepted

Edit the file /etc/default/grub and set your parameter in GRUB_CMDLINE_LINUX. For example I have:

GRUB_CMDLINE_LINUX="dolvm"

I learned this from Ubuntu documentation. Other sources are either too hard to find, or I didn't dig deep enough.

share|improve this answer

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.