LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-11-2003, 06:51 PM   #1
dsantamassino
Member
 
Registered: May 2003
Location: Dallas, PA
Distribution: Windows XP and Redhat Linux 8
Posts: 283

Rep: Reputation: 30
command for Lilo??


I have an easy question but i don't know the answer. What is the command for lilo?? I know it's some thing like this vi (or something). I think the command for grub is vi /grub/grub.conf. Is that right for grub?? Does that sound right. I need to change it from DOS to say Windows XP. It automatically says DOS that means Windows XP. I can't do that without the lilo command. Please reply back. Thanks guys.
 
Old 06-11-2003, 07:10 PM   #2
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 46
vi /etc/lilo.conf

remember to run "lilo" after making any changes, so lilo updates properly.

 
Old 06-11-2003, 07:36 PM   #3
dsantamassino
Member
 
Registered: May 2003
Location: Dallas, PA
Distribution: Windows XP and Redhat Linux 8
Posts: 283

Original Poster
Rep: Reputation: 30
This is what i typed in vi /etc/lilo.conf and this is the message i got. It was denied.


~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
~
"/etc/lilo.conf" [Permission Denied] 0,0-1 All


Why was it denied?? Please reply back. Thanks. Rick, Do you know anything about lilo??
 
Old 06-11-2003, 08:11 PM   #4
contrasutra
LQ Guru
 
Registered: Mar 2003
Location: New Jersey
Distribution: Arch Linux
Posts: 1,445

Rep: Reputation: 46
are you logged in as root? I believe you have to be.

You dont have to use VI (i dont like it), you can use any text editor.

If you want an easy one: pico /etc/lilo.conf
 
Old 06-11-2003, 08:17 PM   #5
dsantamassino
Member
 
Registered: May 2003
Location: Dallas, PA
Distribution: Windows XP and Redhat Linux 8
Posts: 283

Original Poster
Rep: Reputation: 30
Thanks i try that. I use the terminal window. I like the terminal. I personally don't care to use vi. I'm going to try vi. I believe you are that i have to be logged in as root. I'm a new user to Redhat. I have any problems i will post. I have to log off and restart my computer. Well thanks again.
 
Old 06-11-2003, 08:44 PM   #6
dsantamassino
Member
 
Registered: May 2003
Location: Dallas, PA
Distribution: Windows XP and Redhat Linux 8
Posts: 283

Original Poster
Rep: Reputation: 30
It did not change to Windows XP for some reason. It still says DOS. If i was using grub. It would change for me. Please reply back. Thanks.
 
Old 06-12-2003, 01:18 AM   #7
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: RedHat (RHEL, FC, CentOS), openSuSE, Mac OS X
Posts: 653

Rep: Reputation: 32
ok
after you edit /etc/lilo.conf , using whatever editor you want to (emacs? gedit? jedit? joe? ... whocares? :P)
you need to run
lilo
it's list something like ... hold on, i'll just do this to mine since i've meant to...
bash-2.05b# lilo
Warning: LBA32 addressing assumed
Added Windows_XP
Added Linux_Slackware
Added Linux_2.4.20NEW *

I'm not sure but i don't think the label can contain spaces, cause i get something like this if i make the label "windows xp":
bash-2.05b# lilo
Warning: LBA32 addressing assumed
Unrecognized token "XP" at or above line 40 in file '/etc/lilo.conf'

so, edit the file, save and exit the editor, then as root run lilo
If there are errors, fix em and run lilo again

Last edited by chakkerz; 06-12-2003 at 01:20 AM.
 
Old 06-12-2003, 05:33 AM   #8
dsantamassino
Member
 
Registered: May 2003
Location: Dallas, PA
Distribution: Windows XP and Redhat Linux 8
Posts: 283

Original Poster
Rep: Reputation: 30
I don't understand what this guy is trying to do. The only thing i know is vi /etc/lilo.conf. "I" go down to DOS change that to WINDOWS XP "ESC" Hold down shift and hit "Z" twice. That is the only thing i know. I know i did that right. I don't understand what he is trying to do. Please reply back. Thanks.
 
Old 06-12-2003, 05:38 AM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
once you have updated that file - try a more user friendly editor like pico btw - you will need to run the lilo command itself to update these changes in the bootloader.
 
Old 06-12-2003, 05:46 AM   #10
dsantamassino
Member
 
Registered: May 2003
Location: Dallas, PA
Distribution: Windows XP and Redhat Linux 8
Posts: 283

Original Poster
Rep: Reputation: 30
I personally use text editor under Redhat 8. I'm really new to Redhat. Why do i need an editor?? I was'nt doing it right?? How do i run lilo itself?? You have to explain little more to me so i understand. Please reply back. Thanks.
 
Old 06-12-2003, 05:48 AM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Quote:
why do i need an editor
?? to edit the config file... vi is an editor, just a more advanced one....
 
Old 06-12-2003, 05:54 AM   #12
dsantamassino
Member
 
Registered: May 2003
Location: Dallas, PA
Distribution: Windows XP and Redhat Linux 8
Posts: 283

Original Poster
Rep: Reputation: 30
I understand when i open up the terminal go like this.

su
password
vi /etc/lilo.conf

"I" change it from DOS to Windows XP "ESC" Hold down shift and hit "Z" twice. I understand that. Then when i restart my computer. It still says DOS. It does not say Windows XP. If i was using grub. I only had to do above and then it would say Windows XP. Why in lilo it won't say Windows XP?? Please reply back. Thanks.
 
Old 06-12-2003, 06:01 AM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
yeah you already said that once, didn't make much more sense than the first time... i've already told you you nee dot run "lilo" after you've editied the file.
 
Old 06-12-2003, 06:33 AM   #14
dsantamassino
Member
 
Registered: May 2003
Location: Dallas, PA
Distribution: Windows XP and Redhat Linux 8
Posts: 283

Original Poster
Rep: Reputation: 30
ok, How do i run lilo?? Please reply back. Thanks.
 
Old 06-12-2003, 08:24 AM   #15
chakkerz
Member
 
Registered: Dec 2002
Location: Brisbane, Australia
Distribution: RedHat (RHEL, FC, CentOS), openSuSE, Mac OS X
Posts: 653

Rep: Reputation: 32
you run lilo, by being in the console as root and typing
lilo
followed by hitting enter
lilo will then display a bunch of messages, indicating whether or not it worked.
 
  


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
lilo says command not found prozac Linux - General 1 10-25-2005 05:51 AM
Booting to DOS command line from LILO ninadb Linux - General 4 08-12-2004 11:26 AM
What this command do? lilo -v -v -v && lilo blackzone Linux - General 1 07-06-2004 03:15 AM
LILO error on run at command line HappyFunBall Linux - General 4 08-31-2003 10:27 PM
command lilo niton Linux - Newbie 10 07-17-2002 09:39 AM


All times are GMT -5. The time now is 09:56 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