Discussion Locked

Linux _windows?

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
1) I have installed linux with my win98,at startup lilo screen appear when i select windows , it will load windows98 otherwise defaultly liunx loaded. if i want to set windows as a default loaded what can i do ?

2) when i select linux at startup initially command prompt will appear how to get windows screen(xwindows). ?
pls explain with proper commands.

7 replies

by r. a. caluste

1) edit /etc/lilo.conf file. under Start LILO global section set the default value to your Windows section label. If you see the example, it has two possible OSes that you can load. each OS section has their label. indicate under the global section default area which is the default os to load.

Ex:

# LILO configuration file
#
# Start LILO global section
boot = /dev/hda
#boot = /dev/fd0
#compact # faster, but won't work on all systems.
delay = 35
vga = normal # force sane state
ramdisk = 0 # paranoia setting
lock
prompt
timeout = 600
message=/etc/lilo.message
default = Win95
append = "hd=1240,64,63"
# End LILO global section

# Linux bootable partition config begins
image = /vmlinuz
root = /dev/hda8 label = Linux
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends

# Windoze 9x bootable partition config begins
other = /dev/hda2
label = Win95
alias = Win9x
table = /dev/hda
change # Begin the partition modification section.
partition = /dev/hda1
deactivate # Deactivate and hide the DOS partition.
set = DOS16_big_hidden
partition = /dev/hda2
activate # Activate the partition Win 95 is being booted
set = DOS16_big_normal # from and make sure it is not hidden.
partition = /dev/hda3
deactivate # Deactivate OS/2's partition. Don't bother
# to hide it because Win 95 can't see an HPFS
# formatted partition.
partition = /dev/hdb1
deactivate # Deactivate and unhide the FAT partition on
set = DOS16_big_normal # the second disk. If it contains an HPFS
# disk, LILO will not change its ID code.
# Windoze 9x bootable partition config ends

2) you can add in your .profile the command to start Xwindows (startx)

hope this helps.

by spellbinder

Q1) after logging in to linux as root, edit the /etc/lilo.conf file and put "default=dos" instead of the line which says "default=linux". then give this command:

#/sbin/lilo -v

this will rewrite the lilo records and load dos (dos is just a name which lilo by default gives to a windows OS too) the next time it runs. now reboot the system and windows will be loaded by default.

Q2) again as root, edit the /etc/inittab file and change the line which says

id:3:initdefault:
to
id:5:initdefault:

and restart the machine to login to linux in the Xwindow mode. note that if you find any number other than 5, in the id:x:initdefault: line, you have to change it to 5 to get the GUI login. this is to set the runlevel to 5 - which is the GUI. for more information on runlevels, give the command: # man 8 init.

by neeraj_rohliyan

run linuxconf
under boot option select dos as default os
1. next time when u press enter at lilo prompt it will load windows
2. for getting xwindows in linux run "startx" or "kdm".
by default for getting xwindows edit the inittab
change the tagdefault initstate = 5
# vi /etc/inittab

This discussion is closed to new replies.