LinuxQuestions.org
Visit Jeremy's Blog.
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 03-31-2008, 06:15 AM   #1
swisschock
LQ Newbie
 
Registered: Mar 2008
Posts: 12

Rep: Reputation: 0
How to edit Grub


Hi all

pls tel me how do i get to edit grub.conf file or /boot/grub/menu.lst file after booting thro' Supergrub/LiveCD?

I tried but was grappling to find a way out.

Please specify the complete path for this.

thanks
 
Old 03-31-2008, 06:21 AM   #2
puntjuh
Member
 
Registered: Apr 2006
Location: holland
Distribution: Gentoo / debian / suse / mint
Posts: 558

Rep: Reputation: 42
If you want too edit the grub file, you can use (in the shell that is) nano -w /boot/grub/grub.conf

or vim / emacs whichever app you like! But this is the normal way one would edit his grub file.
 
Old 03-31-2008, 06:21 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
You'll have to tell us more about your setup. Do you have Linux installed on the hard drive? If so, then what version?

Are you using the Live CD to boot the installed Linux?

And maybe the most important question: What problem are you trying to solve?--ie why do you need to edit the config file?

The "booting" link below might help also.
 
Old 04-01-2008, 01:58 AM   #4
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
through a live cd, first mount your boot partition to some directory for example:
Code:
mount /dev/hdb1 /boot
in this case /dev/hdb1 is the boot partition then /boot is the directory to mount on.

then edit the grub file there.

you can have more info where your boot files are located by doing or reading (in your local system and not livecd):
Code:
cat /etc/fstab
cat /proc/mounts
ls -l /boot
 
Old 04-03-2008, 08:07 AM   #5
swisschock
LQ Newbie
 
Registered: Mar 2008
Posts: 12

Original Poster
Rep: Reputation: 0
to edit grub

hi

actually while installing RHEL4.0 on my SATA HD i chose to install grub on 1st sector of SATA but after trying to do so 10-15 times, it messed up my XP & stopped booting.

so i tried Supergrub CD, fixing mbr & all stuff i could to rescue my XP, but failed

later on one of my seniors told me that RHEL4.0 requires drivers to get instlld on SATA. which i couldnt get on google.
Now I re-installd XP
& also trying out Freespire LiveCD (its GUI is beautiful)

actually i want to know the procedure of editing that devil grub which ate up my XP.

thats it

thanks a lot
 
Old 04-04-2008, 01:19 AM   #6
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
have you tried the recovery console of a bootable install cd? and ran fixboot or fixmbr?.. that will surely erase your grub in mbr and will require you to install grub again.
 
Old 04-04-2008, 02:26 AM   #7
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by swisschock View Post
hi

actually i want to know the procedure of editing that devil grub which ate up my XP.
thanks a lot
Here is a great beginner friendly tutorial on grub:
http://users.bigpond.net.au/hermanzone/p15.htm
 
  


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
how to edit grub.conf from grub shell during booting pashaikh Linux - Security 1 06-27-2006 05:01 AM
Trying to edit my grub mranderson Red Hat 1 11-25-2003 09:07 PM
edit grub rudey Linux - Newbie 1 09-18-2003 08:42 PM
edit grub digital bots Linux - Newbie 5 11-09-2002 12:09 AM
GRUB edit? walid97 Linux - Newbie 2 10-04-2002 12:07 PM

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

All times are GMT -5. The time now is 11:05 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