LinuxQuestions.org
Review your favorite Linux distribution.
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 04-23-2005, 04:47 AM   #1
rrrssssss
Member
 
Registered: Mar 2005
Posts: 284

Rep: Reputation: 33
Beginner - Need Help With VI Editor


Hello forum,

I am very inexperienced with the technical aspects of Linux.

I want to edit the lilo.conf file using the recovery console and the VI editor because Mandrakelinux 10.1 will not boot without a kernel panic (no init found).

I have already viewed the lilo.conf file with the VI editor and it makes reference to /dev/hda5 when I THINK it should say /dev/hda1 since my root partition is on hda1. It presently reads root=/dev/hda5.

Would anybody be so kind as to tell me step by step how to make these changes to the lilo.conf file using the VI editor while in the recovery console? I printed out the manual for the VI editor but it is Greek to me.

Any help would really be appreciated.

Roy

Last edited by rrrssssss; 04-23-2005 at 04:58 AM.
 
Old 04-23-2005, 04:59 AM   #2
Ephracis
Senior Member
 
Registered: Sep 2004
Location: Sweden
Distribution: Ubuntu, Debian
Posts: 1,109

Rep: Reputation: 49
First you need to know that vi operates in two modes. In the first mode you do stuff like "go to end of line" or "remove line above cursor" and so on. In the other mode you just type in text.

So you start vi and reads lilo.conf, you have come that far. Now you press Enter until the line you want to edit comes up. You can move forward and backwards by using h and l. Now, when you are at your line then you press a to append text after the cursor or i to insert it before it. (I and A do the same but at the beginning and end of the line). Now you are in text mode and you may edit the line you're at. Then when you are done editing you press "ESC" to go back to command mode. To save the file you type :w and to quit you type :q. If you want to quit without saving you just type :q!
 
Old 04-23-2005, 05:03 AM   #3
samael26
Member
 
Registered: Oct 2004
Location: France, Provence
Distribution: Debian
Posts: 848

Rep: Reputation: 30
Hi,

Using the VI editor is not the simplest way of handling things here.
Did you try a new install of Mandrake 10.1 ? Could save you the
hassle of using VI, which you could learn later with a running system, couldn't it ?

If you have a kernel panic, it means that your system can't be booted because
LILO didn't find it. It is a matter of installing it right from the install.

Mandrake asks where to install LILO, it must be on the MBR (master boot record)
otherwise, no go (or difficulties ahead).

Hope that helps
 
Old 04-23-2005, 12:12 PM   #4
Boow
Member
 
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
Try nano or pico or joe which are easier text editors
 
Old 04-23-2005, 12:24 PM   #5
just_dan
Member
 
Registered: Jul 2004
Location: Sunny south wales (cwmbranistan)
Distribution: Colbalt/fedora 6
Posts: 71

Rep: Reputation: 15
If you still want to use VI after that

there heres a tutorial

http://www.collaborium.org/onsite/ve...nux_guides/vi/
 
Old 04-23-2005, 03:41 PM   #6
rrrssssss
Member
 
Registered: Mar 2005
Posts: 284

Original Poster
Rep: Reputation: 33
I want to thank you all for the input. Without forums like this, it would be more difficult for me to troubleshoot problems. I actually depend on you.

Samual26 is probably correct when he said the VI editor is not the simpliest way of handling things here. Yes, I could indeed do a clean install of Mandrakelinux and then install what few probrams I run on it in a few hours. I may have to end up doing just that. But what gets me is I can't do an upgrade install without it saying "oops, no root partition". An upgrade install would preserve all my installed programs and settings with nothing really lost, which is what I would rather do of possible.

In case anyone would want to chance helping me fix what I already have installed vs a clean install, I would be more than glad to supply you with whatever info you may want. For instance, when I mount my partitions in rescue, it says "found Mandrake root partition on /dev/hda1" plus it mounts all of my other partition too. But it still will not let me do an upgrade install without it saying "oops, no root partition. And I have tried reinstalling Lilo several times, it saying "found Mandrake root partition on /dev/hda1". Plus I have rewrote the MBR twice, repeating the above steps but it still says "oops, no root partition" during an upgrade install.

I am really interested in learning how to troubleshoot problems I have with Linux because it gives me a good feeling inside knowing I was smart enough to do that. But it looks like this little eposide might let me down. My expertise stops with the message "oops, no root partition".

Feel free to offer suggestions because I know there are many Linux gurus on this forum who "know their stuff" well.

Roy

Oh, and one more detail, I am able to perform a clean install with no problem. I did it just to see if it would work. But then I ran my restore again to get it back the way it was with Acronis True Image mirroring software. The people from Acronis say that the MBR will not be restored if only one partition is backed up and restored, you must do the entire hard drive. I have Windows XP and Linux both on one hard drive.

Last edited by rrrssssss; 04-23-2005 at 04:03 PM.
 
Old 04-23-2005, 03:42 PM   #7
rrrssssss
Member
 
Registered: Mar 2005
Posts: 284

Original Poster
Rep: Reputation: 33
Just For The Record

I fixed that particular problem by doing a clean install without letting Mandrakelinux format the partition so I could keep all of my programs. But lo and behold, the Xserver KDE would not start - a new problem. So I finally broke down and did a clean install /w format and installed all of my programs one by one and now it works great plus I have dual boot with XP and Mandrakelinux.

Last edited by rrrssssss; 04-24-2005 at 05:59 PM.
 
  


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
beginner needs various help. meeep Linux - Software 44 08-21-2005 01:10 AM
Help this beginner weng Linux - Newbie 5 12-20-2003 09:55 AM
Beginner (Help Me!!) Kylejb2663 Linux - Networking 29 05-15-2003 03:00 AM
I am THE beginner please help me :( statuszero Linux - General 10 05-26-2002 04:44 PM
beginner archangel Linux - Security 11 09-03-2001 06:44 PM


All times are GMT -5. The time now is 10:55 AM.

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