LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-08-2006, 08:44 AM   #1
Geminias
Member
 
Registered: Sep 2005
Posts: 201

Rep: Reputation: 30
edit grub.conf


hi, i need to know how to edit files. I'm on FC4. thanks.
 
Old 01-08-2006, 08:47 AM   #2
T.Hsu
Member
 
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
Open it with a text editor like gedit, kate, kwrite, vim, emacs, etc.
 
Old 01-08-2006, 08:51 AM   #3
anti.corp
Member
 
Registered: Nov 2005
Location: Copenhagen
Distribution: Debian E, Vectorlinux 5.1std, Arch, Gentoo 2006.0
Posts: 576

Rep: Reputation: 30
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


Last edited by anti.corp; 01-08-2006 at 08:56 AM.
 
Old 01-08-2006, 08:55 AM   #4
T.Hsu
Member
 
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
Does FC4 ships with pine? It does have nano though, which is a pico clone with improvements.
 
Old 01-08-2006, 08:56 AM   #5
Geminias
Member
 
Registered: Sep 2005
Posts: 201

Original Poster
Rep: Reputation: 30
okay i am using vim, how do i save the changes?

thanks for help all.
 
Old 01-08-2006, 08:57 AM   #6
anti.corp
Member
 
Registered: Nov 2005
Location: Copenhagen
Distribution: Debian E, Vectorlinux 5.1std, Arch, Gentoo 2006.0
Posts: 576

Rep: Reputation: 30
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
 
Old 01-08-2006, 09:04 AM   #7
T.Hsu
Member
 
Registered: Jan 2005
Posts: 178

Rep: Reputation: 31
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
 
Old 01-08-2006, 09:20 AM   #8
Geminias
Member
 
Registered: Sep 2005
Posts: 201

Original Poster
Rep: Reputation: 30
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.
 
Old 01-08-2006, 09:32 AM   #9
anti.corp
Member
 
Registered: Nov 2005
Location: Copenhagen
Distribution: Debian E, Vectorlinux 5.1std, Arch, Gentoo 2006.0
Posts: 576

Rep: Reputation: 30
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
 
Old 01-08-2006, 09:41 AM   #10
anti.corp
Member
 
Registered: Nov 2005
Location: Copenhagen
Distribution: Debian E, Vectorlinux 5.1std, Arch, Gentoo 2006.0
Posts: 576

Rep: Reputation: 30
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Edit the Grub.conf reply2vinay Linux - Hardware 1 07-26-2005 09:38 AM
How to edit grub.conf? zeroz52 Linux - Newbie 27 03-02-2005 12:58 PM
[SOLVED] How to edit grub.conf filosophem Red Hat 4 02-07-2004 03:04 AM
How to edit grub.conf file? hnash53 Linux - Software 1 12-12-2003 12:33 AM
Edit grub.conf NoviceW Linux - General 1 11-11-2003 05:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration