LinuxQuestions.org

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

Geminias 01-08-2006 08:44 AM

edit grub.conf
 
hi, i need to know how to edit files. I'm on FC4. thanks.

T.Hsu 01-08-2006 08:47 AM

Open it with a text editor like gedit, kate, kwrite, vim, emacs, etc.

anti.corp 01-08-2006 08:51 AM

If you want to edit your grub.conf file type the following in a terminal as root:

Code:

pico /boot/grub/grub.conf
This will open the grub.conf file using the pico editor.

Edit and exit writing changes to document using

ctrl+x

:)

T.Hsu 01-08-2006 08:55 AM

Does FC4 ships with pine? It does have nano though, which is a pico clone with improvements.

Geminias 01-08-2006 08:56 AM

okay i am using vim, how do i save the changes?

thanks for help all.

anti.corp 01-08-2006 08:57 AM

Quote:

Originally Posted by Geminias
okay i am using vim, how do i save the changes?

thanks for help all.

try ctrl+x to exit writing changes :)

T.Hsu 01-08-2006 09:04 AM

ctrl+x? Isn't it for pico|nano?

Quote:

okay i am using vim, how do i save the changes?

Press esc one or multiple times, until terminal beeps or visual beeps, then type
Code:

:wq

Geminias 01-08-2006 09:20 AM

thanks boys, also does anyone know the spacing convention for the grub.conf file. I edited it like so:

Code:


title Fedora Core (2.6.14-1.1653_FC4)
        root (hd0,1)
        kernel /boot/vmlinuz-2.6.14-1.1653_FC4 ro root=LABEL=/ acpi=off rhgb quiet

the point of interest is the "rhgb quiet" because that was initially where i put acpi=off. It looks okay to me, but i feel i better check with you all.

anti.corp 01-08-2006 09:32 AM

Quote:

Originally Posted by T.Hsu
ctrl+x? Isn't it for pico|nano?



Press esc one or multiple times, until terminal beeps or visual beeps, then type
Code:

:wq

You are right about that. Sorry :)

anti.corp 01-08-2006 09:41 AM

Quote:

Originally Posted by Geminias
thanks boys, also does anyone know the spacing convention for the grub.conf file. I edited it like so:

Code:


title Fedora Core (2.6.14-1.1653_FC4)
        root (hd0,1)
        kernel /boot/vmlinuz-2.6.14-1.1653_FC4 ro root=LABEL=/ acpi=off rhgb quiet

the point of interest is the "rhgb quiet" because that was initially where i put acpi=off. It looks okay to me, but i feel i better check with you all.

Looks right to me. I got that works, it looks like this:

Code:

kernel /boot/vmlinuz-2.6.9-1.667 ro root=LABEL=/ rhgb quiet acpi=off
:)


All times are GMT -5. The time now is 10:59 AM.