LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Edit files help (https://www.linuxquestions.org/questions/linux-newbie-8/edit-files-help-186731/)

flira 05-27-2004 08:13 PM

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

marghorp 05-27-2004 08:43 PM

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!

Mathieu 05-27-2004 09:31 PM

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).


All times are GMT -5. The time now is 04:43 PM.