LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-25-2004, 02:28 AM   #1
murkok
LQ Newbie
 
Registered: Feb 2004
Posts: 9

Rep: Reputation: 0
LILO is now LI


OK, so I messed around with the machine a little... Now, when I brought everything back it's previous conditions (or aberrantly not) when I boot up, it seems that LILO get stuck and prints to the screen only "LI" and than the machine freezes.

Any ideas?
 
Old 07-25-2004, 03:45 AM   #2
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
do a rescue boot with your boot CD's and reinstall lilo since it appears you can't boot into any partition...but if you do the CD boot you will be able to boot. Let us know how it goes.
 
Old 07-25-2004, 04:56 AM   #3
murkok
LQ Newbie
 
Registered: Feb 2004
Posts: 9

Original Poster
Rep: Reputation: 0
There is no problem booting using the CD in rescue mode. The problem is that it doesn't seem to see any of the HD partitions. so I don't have any access to the system at all through it...
 
Old 07-25-2004, 10:14 AM   #4
rntm
LQ Newbie
 
Registered: Jul 2004
Location: Hamburg, Germany
Distribution: Slackware
Posts: 22

Rep: Reputation: 15
Don't boot into rescue mode or such but try to boot into your normal system using a kernel on the cd (which distri do you use?). That way getting those things to work again is much easier. first try reinstalling lilo and then we'll see ..
 
Old 07-25-2004, 10:37 AM   #5
murkok
LQ Newbie
 
Registered: Feb 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Solution:
Ok, I was thinking about all the changes this machine went through and came to conclusion that the boot sector could have not gotten damaged in everything that happened. There for, nothing should have changed with LILO. I decided to take a peek at the hardware and played around with the master/slave settings. Seems like both drives get recognized by the BIOS whenever they are either set to master/slave or "cable select" but linux will boot only when they are set to "cable select". The strange thing is that they were set to cable select to begin with, so nothing actually changes but now it works.

NOW, trying to install Windows XP to the second hard drive simply doesn't work since after the initial format and files copy the installation throws a "Windows could not start because the following file is missing or corrupt: <Windows root>\sustem32\hal.dll". This indicates a problem with Windows loader which the installer probably expects to be in the first drives boot sector (which is occupied by LILO). Any why to go around that?
 
Old 07-25-2004, 11:10 AM   #6
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
i the second drive the Slave or master?...Windows will refuse to install onto the slave drive....you might have to swap drives and put Linux as the slave.
 
Old 07-26-2004, 06:15 AM   #7
murkok
LQ Newbie
 
Registered: Feb 2004
Posts: 9

Original Poster
Rep: Reputation: 0
The second drive I'm trying to install windows on is the slave drive. Does Windows always have to go only on the master drive? If I do swap drives how would I go about moving the LILO to the first drive boot?
 
Old 07-26-2004, 08:19 AM   #8
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
err, okay, you will learn your first lesson now.

Boot loader should always go on your MASTER BOOT RECORD (MRB) not the first partition of the first hardrive....unless you have some very unquire setup, but in general you alway put it in the MBR. this way you can wap hardrives and nothing bad happens to your boot loader.
Second, unless you want to get very extra-technical and want to spend the time figuring it out....when duel booting, Windows should always goes on the first hardrive, partition, disk, etc....in general always first. It likes it that way....and that's it period.
 
Old 07-27-2004, 07:08 AM   #9
murkok
LQ Newbie
 
Registered: Feb 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by zLinuxz
err, okay, you will learn your first lesson now.

Boot loader should always go on your MASTER BOOT RECORD (MRB) not the first partition of the first hardrive....
Well, I know THAT.

Question is what is the best way to make the switch?
 
Old 07-27-2004, 09:04 AM   #10
zLinuxz
Senior Member
 
Registered: Feb 2002
Location: Shanghai, CHINA
Distribution: RH 5.0,5.1 6.0,6.1 7.0,7.1,7.2,7.3.,8.0,9.0, RH Enterprise, Fedora C1, C2
Posts: 1,216

Rep: Reputation: 45
well if you know 'THAT' why didn't you do it from the beginning?....and all you would have to do is swap the drives and change the /dev/hda to /dev/hdb for Windows and Linux.

But since you installed the loader on the first partition of the hardrive....things are a bit more complicated. You probably have several choices, doing a new Linux install, also I think you might be able to install the boot loader on the MBR without doing a new install...but I'm not sure how. And I'm sure someone else can suggest another alternative.
 
Old 07-28-2004, 09:51 AM   #11
murkok
LQ Newbie
 
Registered: Feb 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by zLinuxz
... also I think you might be able to install the boot loader on the MBR without doing a new install...but I'm not sure how. And I'm sure someone else can suggest another alternative.
That's exactly what I want to do...
 
Old 07-29-2004, 06:27 AM   #12
murkok
LQ Newbie
 
Registered: Feb 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Anyone?
 
Old 08-05-2004, 05:39 AM   #13
murkok
LQ Newbie
 
Registered: Feb 2004
Posts: 9

Original Poster
Rep: Reputation: 0
Any new ideas about that?
 
Old 08-05-2004, 07:06 AM   #14
jomen
Senior Member
 
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
Take out the disk with linux on it - just for the time you install windows on the other disk - also: install that disk to be a master - not a slave (in linux-language: put it where it would be /dev/hda or /dev/hdc) - this is to be as sure as possible that it will work, because I dont know if windows will have problems being installed to a slave drive
Later after the install of windows, put everything where you want it to be (I suppose that you want linux on the first master-drive and windows on the first slave drive - correct?)

You already installed a boot loader (LILO) so there is no problem getting it to boot your newly installed Windows.
After you booted up into linux you would add the windows you installed to your /etc/lilo.conf and reinstall lilo ( by issuing "lilo -v" - which will rewrite your mbr to contain the option to boot to windows as well as to linux )

To be sure of how to do it, you could post your current /etc/lilo.conf as well as the layout of your system, as it is supposed to be and as it is now (which partition is where...)

As an example I give you my current lilo.conf
It has an entry at the end - which is commented out - because that setup is no longer valid, but I had a setup working which was just like yours --> linux on the first disk (/dev/hda) and windows on the second (dev/hdb)
...the entry which references Windows-XP is the current one and was then: other=/dev/hdb1


here it is:
Jonathan:~$ cat /etc/lilo.conf

boot=/dev/hda

map=/boot/map-bmp
install=/boot/boot-bmp.b

bitmap=/boot/ins64a.bmp
bmp-colors=14,11,,15,9,0
bmp-table=21,287p,2,4,175p
bmp-timer=73,29,12,8,0

prompt
timeout=50


image=/boot/linux-2.6.7
label=linux-2.6.7
root=/dev/hda2
append="video=aty128fb:1024x768"
read-only


image=/boot/lfskernel
label=linux-2.4.24
root=/dev/hda2
append="video=aty128fb:1024x768"
read-only


other=/dev/hda1
label=Windows-XP

# table=/dev/hdb
# map-drive=0x80
# to=0x81
# map-drive=0x81
# to=0x80

# end /etc/lilo.conf
 
  


Reply



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 On
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 01:15 PM
Upgraded kernel, lilo.conf, didn't run /sbin/lilo dtashima Linux - Newbie 4 10-18-2004 11:21 AM
Lilo lost, Install disk failing to restore Lilo on dual boot? Dobie Linux - Newbie 2 05-05-2004 05:00 PM
new kernel causes lilo crash; /sbin/lilo = Warning: device 0x0305 exceeds 1024 cylind dandysf Linux - Software 0 08-26-2003 04: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 06:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:09 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
Open Source Consulting | Domain Registration