LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 08:08 AM   #1
wlaw
Member
 
Registered: Jun 2004
Location: HK
Distribution: Ubuntu
Posts: 245

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, 08: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, 08: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: 113Reputation: 113
dcdbutler,

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

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, 08: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: 113Reputation: 113
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:48 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
Open Source Consulting | Domain Registration