LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   lilo.conf editing (http://www.linuxquestions.org/questions/linux-newbie-8/lilo-conf-editing-243487/)

Daunted 10-16-2004 02:16 PM

lilo.conf editing
 
Hi
I am trying to edit lilo.conf through a rescue console using vi. lilo seems to be looking in the wrong hda for resuming. I've found how to edit the parts i need to change but how do i save the file? Doesn't seem clear at all

Many thanks

viniosity 10-16-2004 02:19 PM

man vi will give you the commands.

Generally you use the : key to enter a command.

: followed by w will write
: followed by q will quit

If you want to quit without saving use

: followed by q!

cheers!

peyotl 10-16-2004 02:22 PM

Try using command 'chroot'.

--
peyotl

Daunted 10-16-2004 02:50 PM

Sorry guys, a : followed by w that will save the file right? Where do i type that in, i've tried at the end on a new line but that don't seem to work! man doesn't seem to work also.
If someone could spell it out and dumb it down (even more) i'd be greatful

thanks

peyotl 10-16-2004 02:55 PM

Use <Esc> key to switch from Insert to normal mode of Vi,
then :w will save the file.
'I' will drop you to the insert mode again.

good luck

Zolan 10-16-2004 05:51 PM

first press esc then
:wq
w saves your file and q quitts the editing program vi and you return to console.

viniosity 10-16-2004 10:13 PM

Else, try an easier text editor like pico or nano


All times are GMT -5. The time now is 11:14 AM.