Computing.Net > Forums > Linux > Dual booting problems.

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Dual booting problems.

Reply to Message Icon

Name: Boogyman
Date: March 9, 2007 at 23:06:26 Pacific
OS: Win Xp Pro
CPU/Ram: E6300 / 1 GB
Product: Myself
Comment:

----------------------

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|track

Now 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



Sponsored Link
Ads by Google

Response Number 1
Name: ernie
Date: March 10, 2007 at 12:12:32 Pacific
Reply:

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 Windows

boot=/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


0

Response Number 2
Name: Boogyman
Date: March 10, 2007 at 13:44:10 Pacific
Reply:

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


0

Response Number 3
Name: ernie
Date: March 11, 2007 at 13:35:19 Pacific
Reply:

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


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Dual booting problems.

Dual boot problems www.computing.net/answers/linux/dual-boot-problems/23990.html

xp,linux 9,dual boot problem www.computing.net/answers/linux/xplinux-9dual-boot-problem/20703.html

XP, Mandrake 9.0 dual boot problem www.computing.net/answers/linux/xp-mandrake-90-dual-boot-problem/14329.html