LinuxQuestions.org
Visit Jeremy's Blog.
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 02-21-2005, 06:20 PM   #1
i am mike3000
LQ Newbie
 
Registered: Feb 2005
Posts: 3

Rep: Reputation: 0
undefaulting linux


Hello I am new to linux so i ned a little help here lol, anyway i have a 120GB hd partitioned into 3 drives. C,D, and E. C is 10GB with windows xp on it, D is 10GB with Mandrake Linux 10.0 offical, and E is 94GB for storage. Anyway when i installed mandrake it made a boot loader thing called lilo. And on lilo it lists linux first (default) and i want to change it to list windows first, as default, how do i do this?
 
Old 02-21-2005, 06:27 PM   #2
smurfix
Newbie
 
Registered: Aug 2002
Distribution: Debian, RH, ubuntu
Posts: 22

Rep: Reputation: 15
edit /etc/lilo.conf with vi then change default=linux to default=windows
 
Old 02-21-2005, 06:30 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Examine your lilo.conf file (probably in /etc). There is a line which reads something like: default=linux. Edit that line to read: default=windows (or whatever the windows installation is named in lilo.conf).
 
Old 02-21-2005, 06:31 PM   #4
i am mike3000
LQ Newbie
 
Registered: Feb 2005
Posts: 3

Original Poster
Rep: Reputation: 0
ok thanks im gonna try that the next time i reinstall. thanks
 
Old 03-07-2005, 03:12 AM   #5
Francis
Member
 
Registered: Nov 2004
Location: New Zealand
Distribution: Slackware 10.0
Posts: 37

Rep: Reputation: 15
Hi guys,

I have a similar problem. I previously had a dual boot system running Redhat 7.1 and Windows ME. I recently installed Slackware 10.0 and kept Windows as well. It all works properly, lilo lets me boot into either operating system, but what I don't like is that lilo seems to consider Windows to be my default OS (when I boot it has "Windows" automatically selected and has "Linux" underneath) which I thought was a bit strange. I'd like to change my lilo.conf file to make Linux my default and I have done this before (to make windows default) however my lilo.conf file seems to be different to previous versions I've modified and different to everyone elses, it doesn't have a "default = " line. Here it is with comments removed..


boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 1200
change-rules
reset
vga = 773

other = /dev/hda1
label = Windows
table = /dev/hda

image = /boot/vmlinuz
root = /dev/hda4
label = Linux
read-only

How do I set Linux to be my default OS? Thanks in advance,

Francis
 
Old 03-07-2005, 06:39 AM   #6
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Add the line below somewhere at the top of your /etc/lilo.conf

Code:
default=Windows
 
Old 03-08-2005, 11:54 PM   #7
Francis
Member
 
Registered: Nov 2004
Location: New Zealand
Distribution: Slackware 10.0
Posts: 37

Rep: Reputation: 15
Grrr

Every peice of documentation I come across says that adding "Default = Linux" to my lilo.conf should make lilo default to Linux - it doesnt. Everyone also says that lilo automatically defaults to the first OS entry in the file if there is no "Default=" entry - it doesn't.

I think I have a retarded version of Lilo?

Not sure what else to try, the two obvious methods of getting Lilo to default to Linux just don't seem to work on my machine, I've tried using the "default=" line in capitals, in lowercase, with spaces, without spaces, with quotation marks, without quotation marks, on different parts of the file, etc. I've tried putting the Linux entry above the Windows entry. Boots fine everytime, but always defaults to Windows

Any suggestions on how to fix a stubborn Lilo? Thanks for your help.
 
Old 03-09-2005, 12:05 AM   #8
volvogga
Member
 
Registered: Aug 2004
Location: MI, USA
Distribution: Fedora Core 3
Posts: 137

Rep: Reputation: 15
Sorry if this sounds redundant.
Where are you putting the default line in?
I would say that the "default" should be one line under the vga lineand all lowercase and the linux should be upper and lowercase exactly as the lable appears.

default=Linux

Hope that works, and sorry if you allready tried that.
 
Old 03-09-2005, 12:14 AM   #9
volvogga
Member
 
Registered: Aug 2004
Location: MI, USA
Distribution: Fedora Core 3
Posts: 137

Rep: Reputation: 15
Also Grub uses default=1 or default=2, etc.
Maybe LILO swiched to this system.
Couldn't hurt to try.
 
Old 03-09-2005, 12:15 AM   #10
Francis
Member
 
Registered: Nov 2004
Location: New Zealand
Distribution: Slackware 10.0
Posts: 37

Rep: Reputation: 15
Bah silly me, just worked it out, you have to run /sbin/lilo after changing lilo.conf

All working nicely now, thanks for the help people
 
Old 03-09-2005, 03:04 AM   #11
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
I've just realised that in my last post I made an error and said do default=Windows. Anyway at least you got it sorted out.
 
  


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
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 10:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 02:49 PM

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

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