LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 05-15-2005, 10:15 AM   #1
kos147
LQ Newbie
 
Registered: Aug 2004
Posts: 27

Rep: Reputation: 15
change starting in linux default


Hi,

I have installed mandrake 10.0 and when my machine boots I get a list of operating systems to choose from:

- Linux
-...
-...
- Windows

Currently if I turn on the machine and don't select anything then Linux boots and if I want to run windows I have to select the down arrow until windows is highlighted then select Enter.

The problem is that I use windows 90% of the time so I would rather I didnt have to do this and instead if I don't select anything then windows should boot by default.

Could someone please let me how to change this?

BTW: Does anyone know what happens if I choose one of the other options in the list, what are the other options for?
 
Old 05-15-2005, 10:28 AM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
If you use Lilo, edit /etc/lilo.conf make Windows the default and then run /sbin/lilo.

If you use Grub, edit menu.lst and make Windows the default.
 
Old 05-15-2005, 10:40 AM   #3
kos147
LQ Newbie
 
Registered: Aug 2004
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks for your help but I don't know what you mean - lilo, grub? what are these - I don't use any of these - could you please explain what you mean and provide further instructions on how to change this.
 
Old 05-15-2005, 11:15 AM   #4
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slackware 14.2
Posts: 845

Rep: Reputation: 33
Grub and Lilo are bootloaders, and yes, you have one installed. You might be running grub. I'm not sure about grub, but its config file should be in /etc. If you're running Lilo then it's /etc/lilo.conf Just edit the file and put the OS you want to boot first on the list.
 
Old 05-15-2005, 11:43 AM   #5
kos147
LQ Newbie
 
Registered: Aug 2004
Posts: 27

Original Poster
Rep: Reputation: 15
I am a total newbie - could you tell me how to get to the etc dir, please so that I can edit the file you are talking about?
 
Old 05-15-2005, 11:44 AM   #6
kos147
LQ Newbie
 
Registered: Aug 2004
Posts: 27

Original Poster
Rep: Reputation: 15
also, how can I tell if I'm running grub or lilo?
 
Old 05-15-2005, 11:44 AM   #7
vimal
Red Hat India
 
Registered: Nov 2004
Location: Kerala/Pune,india
Distribution: RedHat, Fedora
Posts: 260

Rep: Reputation: 34
when u use linux u really use bootloaders like grub or lilo to boot the os in the system. the default boot loader will be grub. so u have to take a terminal console and execute the command "vi /etc/grub.conf". after that edit the line " default=0" to 1,2 etc....
usually 0 denotes the default or first os which is given in the menu. linux counts everything from 0 onwards. that is 0 means 1, 1 means 2 etc... so if windows is listed as the second os change it to 1. now after changing it save the file by typing ":wq". now reboot the system. your default os will be the one you specified . if this helped u click on the thanks button. ...... always feel free to contact and send any of ur doubts bye
vimal
 
Old 05-15-2005, 11:56 AM   #8
kos147
LQ Newbie
 
Registered: Aug 2004
Posts: 27

Original Poster
Rep: Reputation: 15
ok please bare with me as this stuff is new to me.

i use mandrake so I clicked on the star at the bottom left hand corner, then selected, Use a terminal emulator, a black window like ms-dos appeared and I typed in:
vi /etc/grub.conf

the window then cleared and nothing was displayed except

/etc/grub.conf [New file ]

on the bottom of the screen

there was no line that said default. I then closed the window.

could you please tell me what I have done wrong or could you point me in the direction of where I could find more detailed instructions on how to do this?
 
Old 05-15-2005, 12:43 PM   #9
mugstar
Member
 
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305

Rep: Reputation: 30
Looks like you don't have GRUB installed then, and therefore must be using LILO.
Fire up the terminal again and type
Code:
cat /etc/lilo.conf
Post the output here please.
 
Old 05-15-2005, 12:56 PM   #10
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
If you have grub, it can be in several locations, but I usually find it in /boot/grub/menu.lst.

To find where you have menu.lst, you can search for it. Try this as root:

Code:
find / -name menu.lst -print
If that finds something, particularly if it is in /boot/grub/menu.lst or /etc/grub/menu.lst you probably have grub. If that search finds nothing, or the file doesn't have kernels or operating systems listed, then you may have lilo. To find lilo, use the same command as above, modified to now read:

Code:
find / -name lilo.conf -print
Once you figure out what you have, you edit the grub or lilo menu as mentioned above, then the boot choices will be in a different order.

You should also make better use of the search feature, all of this has been asked many times by many people.

Peace,
JimBass
 
Old 05-15-2005, 12:58 PM   #11
kos147
LQ Newbie
 
Registered: Aug 2004
Posts: 27

Original Poster
Rep: Reputation: 15
ok I'm getting somewhere;

i opened up a terminal typed in the command you gave and up popped a load of text

and there was a line which said:

default="linux-smp"

which is the first option in the list when I boot up my machine:

should I change this to "windows"? how do I edit this file? how do I save?
 
Old 05-15-2005, 01:13 PM   #12
kos147
LQ Newbie
 
Registered: Aug 2004
Posts: 27

Original Poster
Rep: Reputation: 15
the command i entered above was cat /etc/lilo.conf

do i still need to run the find commands you mention?

which file should i edit, how do i edit this file and how do i save?

cheers for your help
 
Old 05-15-2005, 01:21 PM   #13
mugstar
Member
 
Registered: Jun 2004
Location: Scotland
Distribution: Anything that'll install...
Posts: 305

Rep: Reputation: 30
Yes, you need to change it to whatever label has been used for your windows partition. It'd be easier to help if you posted the "load of text" which popped up. You need to edit the file /etc/lilo.conf as root, make the change, then run /sbin/lilo to effect the changes.

Google is your friend As is the search feature on this site.

Also, check out http://www.linuxcommand.org/ for an introduction to using the shell. It's worth the effort.
 
  


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
linux not starting after change in xorg einstien Fedora 2 02-10-2005 12:49 AM
How to change default boot? (from linux to linux-up) namgor Linux - Software 4 07-09-2004 03:41 PM
How to change default wm nacha Debian 1 06-10-2004 08:26 AM
How do I change the default boot from Windows to Linux? jdruin Linux - Newbie 4 04-26-2004 06:50 PM
change default login from linux to windows ashesh Linux - General 7 03-13-2003 10:00 PM

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

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