LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-09-2003, 11:14 AM   #1
jxfdasilva
Member
 
Registered: Oct 2003
Posts: 44

Rep: Reputation: 15
Lilo


Hi pals.

I need ur help.
I installed Mandrake 9.1 but I can't add a different HD that I previus installed windows XP. On the linux boot windows, I don't have the windows option. I know that the HD that the windows are installed is hda, but when I try to add windows on lilo options it gives me an error. N idea?


Rgds

Jose
Mozambique

 
Old 10-09-2003, 11:19 AM   #2
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
If you had windows installed first it's probably hda1

try adding

other =/dev/hda1
label=windows

to /etc/lilo.conf

run

lilo

if it doesn't give any errors you should be sorted

as root

fdisk -l (letter L)

will show you your partitions and should figure out from there
 
Old 10-09-2003, 11:38 AM   #3
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
What error does it give you?
 
Old 10-09-2003, 12:17 PM   #4
jxfdasilva
Member
 
Registered: Oct 2003
Posts: 44

Original Poster
Rep: Reputation: 15
Hi Looking_Lost,

Can u give me the algorithm, cause i new on this:


Whst u mean other=/dev/hda1 ? Do u mean Disk:/dev/hda1?

to/etc/lilo.conf ??? where I get this?

then run , lilo cao u be more specific??


Rgds

Jose
 
Old 10-09-2003, 12:26 PM   #5
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
The idea is simply to put an appropriate entry in lilo.conf to enable the booting of Windows

other=/dev/hda1

youre just trying to indicate which partition Windows is on.

To open lilo.conf for editing - open a command line and do:

su
root password

kedit /etc/lilo.conf

Then to run lilo do

/sbin/lilo

as root user
 
Old 10-09-2003, 12:45 PM   #6
jxfdasilva
Member
 
Registered: Oct 2003
Posts: 44

Original Poster
Rep: Reputation: 15
When I try to do that it gives me the following error:

WARNING: the config file is currently NOT ok.
Do you really want to override /etc/lilo.conf?
If you aren't sure, select "no" and click the "Check configuration" button to see the details.
If you don't know what's wrong, try clicking the "Probe" button to auto-generate a working lilo.conf.
If you're getting this message after using the "Probe" button, please send a full bug report,
including the output of "Check configuration" and the generated lilo.conf (displayed in the "Expert" tab),
to bero@kde.org.


Rgds

Jose
 
Old 10-09-2003, 12:47 PM   #7
jxfdasilva
Member
 
Registered: Oct 2003
Posts: 44

Original Poster
Rep: Reputation: 15
that's what I have:

boot="/dev/hde"
map=/boot/map
default="linux-enterpris"
keytable=/boot/us-latin1.klt
prompt
nowarn
timeout="100"
message=/boot/message
menu-scheme=wb:bw:wb:bw
disk=/dev/hde bios=0x80

image="/boot/vmlinuz"
label="linux"
root="/dev/hde5"
initrd="/boot/initrd.img"
append="devfs=mount hdc=ide-scsi acpi=off"
read-only

image=/boot/vmlinuz-enterprise
label="linux-enterpris"
root=/dev/hde5
initrd=/boot/initrd-enterprise.img
append="devfs=mount hdc=ide-scsi acpi=off"
read-only

other=/dev/hde1
label="windows"
table=/dev/hde

other=/dev/fd0
label="floppy"
unsafe

other=/dev/hda1
label="windows 1"
table=/dev/hda


image=/boot/vmlinuz
label="failsafe"
root=/dev/hde5
initrd=/boot/initrd.img
append="failsafe devfs=nomount hdc=ide-scsi acpi=off"
read-only
 
Old 10-09-2003, 12:52 PM   #8
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
get rid of:
other=/dev/hde1
label="windows"
table=/dev/hde
 
Old 10-09-2003, 12:56 PM   #9
jxfdasilva
Member
 
Registered: Oct 2003
Posts: 44

Original Poster
Rep: Reputation: 15
I need this! I can rid it out.


Rgds
 
Old 10-09-2003, 01:01 PM   #10
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
how many installs of windows do you have?
do you have one on
/dev/hde1
and
/dev/hda1?
I thought windows is on /dev/hda1 only. if so, get rid of that entry.
 
Old 10-09-2003, 01:05 PM   #11
jxfdasilva
Member
 
Registered: Oct 2003
Posts: 44

Original Poster
Rep: Reputation: 15
Hi,


I've 2 install: 1 in hde1 & other in hda1.


Rgds


Jose
 
Old 10-09-2003, 01:06 PM   #12
jxfdasilva
Member
 
Registered: Oct 2003
Posts: 44

Original Poster
Rep: Reputation: 15
B.T.W. one is run perfectly - the 1 it is on hde1 -



Rgds

Jose
 
Old 10-09-2003, 01:15 PM   #13
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
I see.

open a terminal window, become root with the su command and then do
/sbin/lilo -v
and tell us what the error messages are ('config file is not ok' is not very informative; error message at teh command line are usually a bit better).
 
Old 10-10-2003, 03:27 AM   #14
jxfdasilva
Member
 
Registered: Oct 2003
Posts: 44

Original Poster
Rep: Reputation: 15
Hi,

here it comes:

[root@cust176-231 jose]# /sbin/lilo -v
LILO version 22.4.1, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2002 John Coffman
Released 27-Jan-2003 and compiled at 11:11:26 on Feb 5 2003.

Reading boot sector from /dev/hde
Using GRAPHIC secondary loader
Calling map_insert_data
Mapping message file /boot/message -> message-graphic
Calling map_insert_file

Boot image: /boot/vmlinuz -> vmlinuz-2.4.21-0.13mdk
Mapping RAM disk /boot/initrd.img -> initrd-2.4.21-0.13mdk.img
Added linux

Boot image: /boot/vmlinuz-enterprise -> vmlinuz-2.4.21-0.13mdkenterprise
Mapping RAM disk /boot/initrd-enterprise.img -> initrd-2.4.21-0.13mdkenterprise.img
Added linux-enterpris *

Boot other: /dev/hde1, on /dev/hde, loader CHAIN
Added windows

Boot other: /dev/fd0, loader CHAIN
Pseudo partition start: 0
Added floppy

Boot image: /boot/vmlinuz -> vmlinuz-2.4.21-0.13mdk
Mapping RAM disk /boot/initrd.img -> initrd-2.4.21-0.13mdk.img
Added failsafe

Boot other: /dev/hda1, on /dev/hda, loader CHAIN
Fatal: Image name, label, or alias contains a blank character: 'Windows 1'
[root@cust176-231 jose]#


....

Rgds

Jose
 
Old 10-10-2003, 08:36 AM   #15
jxfdasilva
Member
 
Registered: Oct 2003
Posts: 44

Original Poster
Rep: Reputation: 15
Hi,

here it comes:

[root@cust176-231 jose]# /sbin/lilo -v
LILO version 22.4.1, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2002 John Coffman
Released 27-Jan-2003 and compiled at 11:11:26 on Feb 5 2003.

Reading boot sector from /dev/hde
Using GRAPHIC secondary loader
Calling map_insert_data
Mapping message file /boot/message -> message-graphic
Calling map_insert_file

Boot image: /boot/vmlinuz -> vmlinuz-2.4.21-0.13mdk
Mapping RAM disk /boot/initrd.img -> initrd-2.4.21-0.13mdk.img
Added linux

Boot image: /boot/vmlinuz-enterprise -> vmlinuz-2.4.21-0.13mdkenterprise
Mapping RAM disk /boot/initrd-enterprise.img -> initrd-2.4.21-0.13mdkenterprise.img
Added linux-enterpris *

Boot other: /dev/hde1, on /dev/hde, loader CHAIN
Added windows

Boot other: /dev/fd0, loader CHAIN
Pseudo partition start: 0
Added floppy

Boot image: /boot/vmlinuz -> vmlinuz-2.4.21-0.13mdk
Mapping RAM disk /boot/initrd.img -> initrd-2.4.21-0.13mdk.img
Added failsafe

Boot other: /dev/hda1, on /dev/hda, loader CHAIN
Fatal: Image name, label, or alias contains a blank character: 'Windows 1'
[root@cust176-231 jose]#


....

Rgds

Jose
 
  


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
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 02:15 PM
Upgraded kernel, lilo.conf, didn't run /sbin/lilo dtashima Linux - Newbie 4 10-18-2004 12:21 PM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 06:00 PM
new kernel causes lilo crash; /sbin/lilo = Warning: device 0x0305 exceeds 1024 cylind dandysf Linux - Software 0 08-26-2003 05:50 PM
Made a bootdisk with RedHat 7.1 to boot: Gave me SYSLINUX, not LILO:Want to use LILO Colonel Panic Linux - Software 0 08-17-2001 07:21 PM


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