LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-17-2006, 09:08 AM   #1
wlaw
Member
 
Registered: Jun 2004
Location: HK
Distribution: Ubuntu
Posts: 242

Rep: Reputation: 30
Smile How to change the default OS in LILO ?


I am running Mandriva Linux 2006. As I am a newbie, could u tell me in detail ?
Thank you !
 
Old 04-17-2006, 09:16 AM   #2
dcdbutler
Member
 
Registered: Jan 2005
Location: Boston
Distribution: slackware
Posts: 502

Rep: Reputation: 30
Just edit the configuration file for lilo as root

# [editor you use] /etc/lilo.conf

add the line

default = [label]

where [label] is the label attribute of the OS you would like to boot first.

Here's mine for guidance

Code:
boot = /dev/hda
prompt
timeout = 50
default = Win2000
vga = normal

image = /boot/vmlinuz-ide-2.4.26
  root = /dev/hda5
  label = Slack_2.4.26
  read-only # Non-UMSDOS filesystems should be mounted read-only for checking

image = /boot/vmlinuz
  root = /dev/hda5
  label = Slack_2.6.15.6
  read-only

other = /dev/hda1
  label = Win2000
  table = /dev/hda
You're on your own for the editor to use. nano or pico are good console editors as is vim (a little more advanced).

IMPORTANT: Always run

# lilo

after editing lilo.conf

Cheers
 
Old 04-17-2006, 09:23 AM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
dcdbutler,

A quality reply!
 
Old 04-17-2006, 09:28 AM   #4
wlaw
Member
 
Registered: Jun 2004
Location: HK
Distribution: Ubuntu
Posts: 242

Original Poster
Rep: Reputation: 30
I am sorry , I only have vi, can you teach me how to use vi ?

Thank you !
 
Old 04-17-2006, 09:44 AM   #5
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Don't be silly.

Just type
Code:
su
and supply the root password to invoke the root privileges to alter system files. You can then use the graphic editor "gedit" by
Code:
gedit /etc/lilo.conf
Learn vi by google it or buy the bible "Linux is a nutshell". It isn't something one can learn from a forum thread, judging from the way you put it.
 
  


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
default lilo.conf dave`2005 Slackware 3 04-10-2006 09:21 PM
Lilo bootup doesnt change afer running lilo zulfilee Linux - Software 7 12-17-2004 10:28 AM
Default LILO Config spaaarky21 Mandriva 9 06-18-2004 03:51 PM
How do I change the Default in LILO.CONF timmy toad Linux - Newbie 3 09-26-2003 02:28 PM
LILO / lilo.conf - can't change the config clearh20 Linux - Newbie 14 06-05-2003 10:20 PM


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