LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   editing grub.conf (https://www.linuxquestions.org/questions/linux-newbie-8/editing-grub-conf-98174/)

dave37 09-29-2003 07:39 AM

editing grub.conf
 
I can't find this anywhere, how do I edit the grub.conf file?

DrOzz 09-29-2003 07:58 AM

well its located in the /etc folder, so its full path would be /etc/grub.conf and you use a text editor such as vi, joe, pico, etc.....its your own choice which editor to use, and also dependant on if your system has the editor installed, so for example you could use vi /etc/grub.conf to open the file in a text editor for editing...

dave37 09-29-2003 06:51 PM

Thanks, now how do I save the changes I make using vi? I can open the file but what does one do to make any changes stick?
Thank you:scratch:

r4merlin 09-29-2003 09:11 PM

VI can be a bit of a nuisance to start with. Suggest you look in google for vi commands.

Basically you have to Modes which you toggle between using Escape key.

When you have finished editing the document hit escape followed by : (colon)

This should appear at the bottom left of the document then use one of the following

q (quits no save)
q! (force quit)
wq (Save and quit)
wq! (Force Save and Quit)

All of these followed by enter. Might be worth setting up a test file to practice with until you are used to navigating vi.

To do this type vi test

This will create a file for you to practice in remove it when you are comfortable with it.

Otherwise consider using a more user friendly editor such as Joe or Pico.

captainstorm 09-30-2003 02:38 AM

and do not forget to run #grub after you make changes to /etc/grub.conf

captainstorm 09-30-2003 03:01 AM

oh, it should be #grub-install <your device> instead, sorry

dave37 09-30-2003 06:50 AM

#grub-install <your device> What goes in the <your device> section?

Thank you

captainstorm 09-30-2003 07:10 AM

#grub-install /dev/hda
o
#grub-install /dev/hd0

Those are from the GRUB manual


All times are GMT -5. The time now is 07:39 PM.