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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-21-2005, 06:20 PM
|
#1
|
LQ Newbie
Registered: Feb 2005
Posts: 3
Rep:
|
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?
|
|
|
02-21-2005, 06:27 PM
|
#2
|
Newbie
Registered: Aug 2002
Distribution: Debian, RH, ubuntu
Posts: 22
Rep:
|
edit /etc/lilo.conf with vi then change default=linux to default=windows
|
|
|
02-21-2005, 06:30 PM
|
#3
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
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).
|
|
|
02-21-2005, 06:31 PM
|
#4
|
LQ Newbie
Registered: Feb 2005
Posts: 3
Original Poster
Rep:
|
ok thanks im gonna try that the next time i reinstall. thanks
|
|
|
03-07-2005, 03:12 AM
|
#5
|
Member
Registered: Nov 2004
Location: New Zealand
Distribution: Slackware 10.0
Posts: 37
Rep:
|
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
|
|
|
03-07-2005, 06:39 AM
|
#6
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
Add the line below somewhere at the top of your /etc/lilo.conf
|
|
|
03-08-2005, 11:54 PM
|
#7
|
Member
Registered: Nov 2004
Location: New Zealand
Distribution: Slackware 10.0
Posts: 37
Rep:
|
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.
|
|
|
03-09-2005, 12:05 AM
|
#8
|
Member
Registered: Aug 2004
Location: MI, USA
Distribution: Fedora Core 3
Posts: 137
Rep:
|
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.
|
|
|
03-09-2005, 12:14 AM
|
#9
|
Member
Registered: Aug 2004
Location: MI, USA
Distribution: Fedora Core 3
Posts: 137
Rep:
|
Also Grub uses default=1 or default=2, etc.
Maybe LILO swiched to this system.
Couldn't hurt to try.
|
|
|
03-09-2005, 12:15 AM
|
#10
|
Member
Registered: Nov 2004
Location: New Zealand
Distribution: Slackware 10.0
Posts: 37
Rep:
|
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 
|
|
|
03-09-2005, 03:04 AM
|
#11
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 03:44 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|