LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-27-2004, 09:13 PM   #1
flira
LQ Newbie
 
Registered: May 2004
Location: Florida
Posts: 9

Rep: Reputation: 0
Edit files help


I am ver sorry for this question ...i really am...
I am a noob to linux so pls dont come yelling at me ok?
I installed the slackware 9.1 on a partition of itself...
But lilo refuses to show the option to boot windows at the start up
I got the following code to edit in one of the forums:

/etc/lilo.config
other=/dev/hda
label=windows
table=/dev/hda1

First question

Is this code right?

Second question(dont laugh)

How do i do to edit the liloconfig file?
I mean a litle simple step by step thing

I guess that question expands to files that are not lilo as well.

I'm really trying to avoid microsoft so pls help me
Thank you
 
Old 05-27-2004, 09:43 PM   #2
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
You use an editor. Any editor will do.

I prefer Emacs. Just start console(terminal) and type:

su
<your root password here>
find / -name lilo.conf

This will produce a result in form like: /boot/lilo.conf

Then all you have to do is :

emacs /boot/lilo.conf (or the path you will get from the find command)

This should open the file in emacs.

Just edit it the way you want.

When you are finished:

press CTRL+X+S (this saves the file, hold CTRL, press X, then press S)
press CTRL+X+C (this closes emacs, hold CTRL, press X, then press C)

This should do the trick.
I don't really know how lilo works, as I am using GRUB, but running lilo should do it, I think.

In console type:

lilo

That should do the trick.

Reboot. Good luck

Peace!
 
Old 05-27-2004, 10:31 PM   #3
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Here is an example of lilo.conf
Code:
boot=/dev/hda                      
map=/boot/map                      
install=/boot/boot.b               
prompt                             
timeout=50                              
image=/boot/vmlinuz-2.4.x       
        label=linux                
        root=/dev/hda3             
other=/dev/hda1
        label=windows
        table=/dev/hda
There are many text editors, the easiest one is probably pico (or nano -- modern version).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cannot Write/Edit files on hd.. Mmc245 Linux - Hardware 3 07-03-2005 07:08 PM
vi to edit files?? Andknig Linux - Newbie 2 04-22-2005 05:18 AM
how do i edit files???? zexter Mandriva 9 11-06-2004 11:02 AM
Edit files thread flira Slackware 2 05-27-2004 09:33 PM
How to Edit .img files safrout Linux - Software 2 08-13-2003 08:54 AM

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

All times are GMT -5. The time now is 08:46 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration