🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.os.linux.mandrake
Article #546

Re: how do you say "edit lilo.conf; lilo" in GRUB?

#546
From: walt
Date: Tue, 21 Nov 2000 00:00
47 lines
2487 bytes

Dan Jacobson wrote:

> In lilo I remember it was as easy as
> # edit lilo.conf
> # lilo
> # reboot
> to readjust it.  In grub, the man page nor the info pages are upfront
> about what is the equivalent to lilo.conf.  I surmise it is something like
> /boot/grub/menu1st...

You edit /boot/grub/menu.lst and then (one) equivalent
of running lilo is to start the grub shell (type 'grub'
as root).

When you see the grub prompt "grub> " you then tell
grub which is your root partition by typing
root (hd0,n)
where n is the number of your linux partition minus one,
e.g. if /dev/hda3 is your linux partition then n=2.

If you don't know which partition to use then just hit
the tab key at the spot where n should go and grub will
print a list of your partitions for you--nifty.

Once you have specified your root partition then you
actually install the boot sector by typing
setup (hd0)

Note that (hd0) refers to the master boot sector of
your first hard disk.  If you want to install grub
on your root partition so you can use some other
master boot loader you would type something like this:
setup (hd0,2)
e.g. if your linux partition is /dev/hda3.

Grub should then tell you that the boot sector has
been written.

If the machine doesn't boot properly then you can
always re-edit the boot menu in real-time by hitting
'c' or 'e' at the grub boot prompt.  It really is
a great tool--but I suggest you try installing grub
on a floppy disk before trying it on your hard disk.

That's the way I learned my way around grub--try it!
Technical Details
Message-ID: <3A1A7CE2.7020104@hotmial.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8vc7hi$5su$5@taliesin.netcom.net.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109f73,523400822eb48003
X-Google-Attributes: gid109f73,public
X-Google-Thread: f8a83,523400822eb48003
X-Google-Attributes: gidf8a83,public
X-Google-Thread: f9b51,523400822eb48003
X-Google-Attributes: gidf9b51,public
From: walt <wa1ter@hotmial.com>
Subject: Re: how do you say "edit lilo.conf; lilo" in GRUB?
Date: 2000/11/21
Message-ID: <3A1A7CE2.7020104@hotmial.com>
X-Deja-AN: 696162443
Content-Transfer-Encoding: 7bit
References: <8vc7hi$5su$5@taliesin.netcom.net.uk>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii; format=flowed
X-Complaints-To: newsabuse@supernews.com
Organization: Posted via Supernews, http://www.supernews.com
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.17 i686; en-US; m18) Gecko/20001107 Netscape6/6.0
MIME-Version: 1.0
Newsgroups: alt.os.linux.mandrake,comp.os.linux.setup,gnu.utils.help