LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-29-2003, 07:39 AM   #1
dave37
Member
 
Registered: Sep 2003
Location: Ottawa, Canada
Distribution: Ubuntu Dapper
Posts: 70

Rep: Reputation: 16
editing grub.conf


I can't find this anywhere, how do I edit the grub.conf file?
 
Old 09-29-2003, 07:58 AM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
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...
 
Old 09-29-2003, 06:51 PM   #3
dave37
Member
 
Registered: Sep 2003
Location: Ottawa, Canada
Distribution: Ubuntu Dapper
Posts: 70

Original Poster
Rep: Reputation: 16
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
 
Old 09-29-2003, 09:11 PM   #4
r4merlin
LQ Newbie
 
Registered: Nov 2002
Distribution: Redhat 9
Posts: 24

Rep: Reputation: 15
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.
 
Old 09-30-2003, 02:38 AM   #5
captainstorm
Member
 
Registered: Jun 2003
Location: Oricola, Italy
Distribution: RH 9, so far
Posts: 261

Rep: Reputation: 31
and do not forget to run #grub after you make changes to /etc/grub.conf
 
Old 09-30-2003, 03:01 AM   #6
captainstorm
Member
 
Registered: Jun 2003
Location: Oricola, Italy
Distribution: RH 9, so far
Posts: 261

Rep: Reputation: 31
oh, it should be #grub-install <your device> instead, sorry
 
Old 09-30-2003, 06:50 AM   #7
dave37
Member
 
Registered: Sep 2003
Location: Ottawa, Canada
Distribution: Ubuntu Dapper
Posts: 70

Original Poster
Rep: Reputation: 16
#grub-install <your device> What goes in the <your device> section?

Thank you
 
Old 09-30-2003, 07:10 AM   #8
captainstorm
Member
 
Registered: Jun 2003
Location: Oricola, Italy
Distribution: RH 9, so far
Posts: 261

Rep: Reputation: 31
#grub-install /dev/hda
o
#grub-install /dev/hd0

Those are from the GRUB manual
 
  


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
doubt in editing "grub.conf" in multi distro machine b0nd Linux - Newbie 6 08-06-2005 09:46 AM
Editing grub.conf Richlw Linux - Newbie 5 04-28-2005 03:05 PM
Need assistance with grub.conf editing genepooldesign Fedora 6 12-05-2004 11:28 AM
editing grub.conf in recovery mode dave37 Red Hat 2 12-01-2004 06:23 AM
create lilo.conf or grub.conf through commands newpenguin Linux - Software 1 11-28-2003 08:22 PM

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

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

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