Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
----------------------
Ok well, I just got my new laptop and I was trying to dual boot BT and Windows. I did this on my other laptop so I though it would be a piece of cake this time. Well, I have it all setup but im trying to make Windows be above BT when lilo loads up so if I don't press anything it will load into windows. Well I tried doing this:
image = /boot/vmlinuz
root = /dev/sda1 (sda1 is my windows partition)
label = Windows
read-write
other = /dev/sda7 (sda7 is my back|track parition)
label = back|trackNow when I type: lilo -v in the console, it gives me an error message like cannot boot from sda7 or something like that.
Also, when I start my PC I get an error message saying file system set to read-write...add "ro" tag to fix this problem and get rid of this annoying message.
Finally, I got a message saying I needed to run e2fsdk or something but when I tried to run it, it said DO NOT RUN while mounted.
Thanks for the help guys!
Intel E6300 Core 2 Duo
G.Skill 1GB DDR26400
Sapphire Radeon X1900XT
Seagate 320GB HDD
Windows XP Professional

You made a few errors in your lilo.conf
file, but they will be fairly easy to fix.The best idea is to let the Linux installer set up lilo for you, then edit lilo.conf to set the default OS. If you have the original lilo.conf file saved, use it, and change the line:
default="SomeLabel"
by replacing "SomeLabel" with "Windows" so it looks like this:
default="Windows"
Here is an incomplete example of a lilo.conf file:
# Global entries go first:
default="Windows" # Sets default OS.
# Note the "" surrounding Windowsboot=/dev/sda # Puts lilo in the MBR
keytable=/boot/us.klt
compact
prompt
# There may be other entries in the global
# section. See man lilo.conf for details
# in a terminal window or console display# Next are the sub-sections.
# There is one sub-section for each OS.
# The commands for each sub-section
# should be indented for readability.
# I use (TAB) to indicate indent
# Linux sub-sections begin with:
# image=image=/boot/vmlinuz
label="linux"
(TAB)root=/dev/sda? # (the Linux partition).
(TAB)initrd=/boot/initrd.img# Other OS's are referred to as 'other'
other=/dev/sda1
(TAB)label="Windows"If your Linux installation is to be named back|track, you would replace "Linux" with "back|track" in the image= line
HTH,
Ernie Registered Linux User 247790
ICQ 41060744

Ok so will this make Windows be the default OS that loads if I don't press anything during startup?
Intel E6300 Core 2 Duo
G.Skill 1GB DDR26400
Sapphire Radeon X1900XT
Seagate 320GB HDD
Windows XP Professional

The content of my first reply was intended to be used as an example.
The lilo.conf file usually starts with a global section. The commands in the global section control lilo and possibly all OS's.
Each OS has its own section, so in your case, there is one section for Linux and another for Windows.
There are two ways to choose the default OS.
First way: Add a default="SomeLabel" line in the global section. If the label for Windows XP in your lilo.conf file is "Windows", add a default="Windows" line in your global section. Lilo will then load the OS with the label in this line if no choice has been made.
Second way: Put the section for the OS you want to boot by default first after the global section. If no default= line exists, lilo will load the first OS listed.
I prefer using the default= line because then there is no doubt as to which OS will be loaded by default, and the default OS can be changed by simply editing this line.
After you edit /etc/lilo.conf you must run lilo as the root user in a terminal window or a console display to write your changes to disk.
You can read the documentation for lilo by opening a terminal window or console screen and executing:
man lilo
and
man lilo.conf
The first command gives information on the lilo program, and the second command gives information on the lilo.conf file.
If you need help setting up your lilo.conf file, I (we) need to know which OS is installed in which partition on which HDD.
HTH,
Ernie Registered Linux User 247790
ICQ 41060744

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |