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 08-04-2003, 03:09 AM   #1
Rave_T
LQ Newbie
 
Registered: Jul 2003
Location: Sweden
Posts: 23

Rep: Reputation: 15
Want XP as default not linux


When LILO loads it has linux as default start option but i want Windows Xp instead. Should I change something in the lilo.conf to make that work or what should i do ???

this is my lilo.conf now:

boot=/dev/hda
map=/boot/map
default="linux"
keytable=/boot/se-latin1.klt
prompt
nowarn
timeout=150
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label="linux"
root=/dev/hdb2
initrd=/boot/initrd.img
append="devfs=mount hdd=ide-scsi acpi=off quiet"
vga=788
read-only
image=/boot/vmlinuz
label="linux-nonfb"
root=/dev/hdb2
initrd=/boot/initrd.img
append="devfs=mount hdd=ide-scsi acpi=off"
read-only
image=/boot/vmlinuz
label="failsafe"
root=/dev/hdb2
initrd=/boot/initrd.img
append="devfs=nomount hdd=ide-scsi acpi=off failsafe"
read-only
other=/dev/hda1
label="windows"
table=/dev/hda
other=/dev/fd0
label="floppy"
unsafe

Last edited by Rave_T; 08-04-2003 at 03:11 AM.
 
Old 08-04-2003, 03:17 AM   #2
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Rep: Reputation: 45
If you can do stuff with a gui, then do it that way, well to start with. Its just easier until you "get your head round command-line stuff".

Any how, mandrake always installs it'self as default, but to change it, boot up the mandrake, go into the mandrake control centre>boot>drakeboot in the top right hand corner click on configure > first box called main bootloader options, just click ok

Second drakboot box highlight the windows box and click modify, select the check box or radio button to make it the default and OK (personally I also change the name to XP.), then I modify "linux" to read mandrake and ok.

I't a good one to remember, cos if you have to re install for any reason, then You know to change the default first.

regards

John

p.s. Tobias, don't be tempted to do the modification via command or text unless you are VERY sure of what you are doing. I know it looks enticing, but as far as I can work out, it's also very easy to screw up. Use the "MCC" first, the look into/learn the text and command route after.

Last edited by bigjohn; 08-04-2003 at 03:19 AM.
 
Old 08-04-2003, 03:25 AM   #3
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Rep: Reputation: 45
Oh, and this is what my lilo.conf looks like

boot=/dev/hda
map=/boot/map
vga=normal
default="XP"
keytable=/boot/uk.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label="mandrake"
root=/dev/hda3
initrd=/boot/initrd.img
append="quiet devfs=mount hdc=ide-scsi acpi=off"
vga=788
read-only
image=/boot/vmlinuz
label="linux-nonfb"
root=/dev/hda3
initrd=/boot/initrd.img
append="devfs=mount hdc=ide-scsi acpi=off"
read-only
image=/boot/vmlinuz
label="failsafe"
root=/dev/hda3
initrd=/boot/initrd.img
append="failsafe devfs=nomount hdc=ide-scsi acpi=off"
read-only
other=/dev/hda1
label="XP"
table=/dev/hda
other=/dev/fd0
label="floppy"
unsafe


Perhaps you can understand my suggestion for changing things via the mandrake control centre. I'm sure someone with expert knowledge/experience would know which bits can be safely ignored, but as you can see, there are similarities, and also enough differences to discourage me from changing it via command or text mode.

regards

John

p.s. I also think that if you can change something via GUI then more often than not, its easier. IMO that is.
 
Old 08-04-2003, 03:49 AM   #4
Rave_T
LQ Newbie
 
Registered: Jul 2003
Location: Sweden
Posts: 23

Original Poster
Rep: Reputation: 15
I did what you told me to do and now when i look at my lilo.conf it has changed but when i restart my computer nothing has changed in LILO. It still got the old names, like lunix and windows, and the default OS is still set to Linux.
Here is what my lilo.conf looks like now:

boot=/dev/hda
map=/boot/map
vga=normal
default="Windows XP"
keytable=/boot/se-latin1.klt
prompt
nowarn
timeout=150
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label="Mandrake 9.1"
root=/dev/hdb2
initrd=/boot/initrd.img
append="quiet devfs=mount hdd=ide-scsi acpi=off"
vga=788
read-only
image=/boot/vmlinuz
label="linux-nonfb"
root=/dev/hdb2
initrd=/boot/initrd.img
append="devfs=mount hdd=ide-scsi acpi=off"
read-only
image=/boot/vmlinuz
label="failsafe"
root=/dev/hdb2
initrd=/boot/initrd.img
append="failsafe devfs=nomount hdd=ide-scsi acpi=off"
read-only
other=/dev/fd0
label="Diskettenhet"
unsafe
other=/dev/hda1
label="Windows XP"
table=/dev/hda

What should i do???
 
Old 08-04-2003, 03:53 AM   #5
arunshivanandan
Member
 
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Rep: Reputation: 30
you should save the new lilo.conf ny running lilo from command line
 
Old 08-04-2003, 03:56 AM   #6
Rave_T
LQ Newbie
 
Registered: Jul 2003
Location: Sweden
Posts: 23

Original Poster
Rep: Reputation: 15
how do i do that??
 
Old 08-04-2003, 04:02 AM   #7
arunshivanandan
Member
 
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Rep: Reputation: 30
from console,
type 'lilo' <enter>
 
Old 08-04-2003, 09:52 AM   #8
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Rep: Reputation: 45
<frustration>
Rubbish.

Absolutely not necessary (well I'll correct that) shouldn't be necessary.

If you follow the route I have suggested to modify you lilo with the graphic input, you DO NOT need to run lilo in a terminal - that's the whole point of having the facility running with the graphic interface.

Worry about bloody command line shit AFTER you've got some basic knowledge - then you may have enough know how to exploit the apparent power of command line.
</frustration>

regards

John

Last edited by bigjohn; 08-04-2003 at 09:53 AM.
 
Old 08-04-2003, 10:00 AM   #9
arunshivanandan
Member
 
Registered: May 2003
Location: Kerala,India
Distribution: RedHat,Mandrake,Debian
Posts: 643

Rep: Reputation: 30
Quote:
Originally posted by bigjohn
<frustration>


Worry about bloody command line shit AFTER you've got some basic knowledge - then you may have enough know how to exploit the apparent power of command line.

</frustration>



One is not going to learn anything about command line with such a mindset.
 
Old 08-04-2003, 10:00 AM   #10
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Rep: Reputation: 45
Well, Rave T

I done some digging around and am stumped as to why you can't modify the lilo.

So I will stand back and let someone else confuse the hell out of you - my humble efforts are only available in english - some of the others out there only speak "geek", and I don't know if you are familiar with that dialect!

regards

John
 
Old 08-04-2003, 10:09 AM   #11
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Rep: Reputation: 45
No arunshivanandan,

You are quite correct. But I still suffer from having too much residual windows stuff in my head.

The experienced users approach of "if in doubt reach for the command line" is ok for EXPERIENCED users.

But vvv frustrating for n00b's.

Sure, I have heard of various commands, but that is absolutely no good, if I don't or can't understand what is happening when using the commands or interpreting the output.

From the n00b angle, at least if you are dropping/dragging stuff or imputing into dialogue boxes - it SEEMS more straight forward.

You have to admit, your view is going to be coloured by you superior levels of knowledge and issuing commands (and understanding what the commands are doing) should, at your level, be second nature.

Hence I often take the no command line view - I have enough trying to follow what mandrake is trying to tell me that it's doing, without additional confusion of command line input/output. The only part of most output that I can understand is that magic word

ERROR


regards

John
 
Old 08-04-2003, 10:48 AM   #12
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Hi Rave T

Yes - using an editor from the command line simply change the

default="Linux"

line to

default =Windows

(or whatever label name you're using for WinXP)


then: as Root user run

/sbin/lilo

from the command line

Last edited by Skyline; 08-04-2003 at 10:52 AM.
 
Old 08-04-2003, 02:30 PM   #13
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Rep: Reputation: 45
Wotcha Skyline,

doesn't he have to be "root" to do the edit i.e. will get the permission denied thing unless logged in as root

regards

John
 
Old 08-04-2003, 04:37 PM   #14
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
John

I assumed he already knew that to do this task at the command line he would have to be Root user - (next time I won't assume this)

Second - It's not sufficient - as was suggested - just to save any changes to the Expert tab in Mandrake and for that to have created the neccesary changes for next boot - whether you change Lilo.conf from the Expert tab or from an Editor, you always have to run the map installer /sbin/lilo - simply because - in running this program, amongst other things, LILO reads the lilo.conf file and creates a new map file based on the directives within - including the default = directive - it also re-installs itself to the boot sector designated in the boot = directive.

Just the mere act of saving lilo.conf on its own, whether in the Expert tab or in an Editor - does none of these things.

Regards

Skyline

Last edited by Skyline; 08-04-2003 at 04:53 PM.
 
Old 08-05-2003, 09:35 AM   #15
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Rep: Reputation: 45
Quote:
I assumed he already knew that to do this task at the command line he would have to be Root user - (next time I won't assume this)
Oh, er, right. I'll get me coat!



regards

John
 
  


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
Details about default web Browser & default Email client sudhasmyle Linux - Software 4 06-15-2006 12:45 PM
Default Drowser & Default E-mail Cli sudhasmyle Linux - Networking 1 11-20-2004 11:42 AM
How to change default boot? (from linux to linux-up) namgor Linux - Software 4 07-09-2004 04:41 PM
setting default page size and default tray lived4eva Linux - General 1 11-04-2003 03:39 PM
New Virtual Servers Default to Default Server Page? DigiDave Linux - Software 4 10-18-2003 04:23 AM


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