LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-17-2007, 10:04 PM   #16
TwoEven
LQ Newbie
 
Registered: Jan 2007
Distribution: Debian
Posts: 8

Original Poster
Rep: Reputation: 0
status


IgnitusBoyone: The SBC has no VGA, hence the serial options in the lilo config. Just for the heck of it I'm going to try adding two options, changing labels, and setting a prompt. Perhaps we'll see something interesting with that. Also, I'm going to let grub give it a go.

In the mean time, has anyone ever heard of a condition where Linux's /dev/hd? is not aligned with the true start of the drive such that lilo is not really writing to the MBR sector?
 
Old 01-18-2007, 09:51 AM   #17
TwoEven
LQ Newbie
 
Registered: Jan 2007
Distribution: Debian
Posts: 8

Original Poster
Rep: Reputation: 0
status

IgnitusBoyone: The SBC has no VGA, hence the serial options in the lilo config. Just for the heck of it I'm going to try adding two options, changing labels, and setting a prompt. Perhaps I'll see something interesting with that. Also, I'm going to let grub give it a go.

In the mean time, has anyone ever heard of a condition where Linux's /dev/hd? is not aligned with the true start of the drive such that lilo is not really writing to the MBR sector?
 
Old 01-18-2007, 10:28 AM   #18
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
OK may be you should try Grub for a change.

First I would put Lilo inside its root partition first. I would forget about the -C parameter as you are using the default /etc/lilo.conf. THus I would make Lilo chainloadable by
Code:
lilo -b /dev/hda1
Then I shall make a bootable Grub floppy as decribed in Chapter 3.1 of Grub manual. This just an operation to dd the files, stage1 and stage2, into a floppy. These two files are stored in the /lib/grub/i386-pc subdirectory in any Debian that supports Grub. If your Debian hasn't got them (My Woody hasn't but Sarge has) you can "source" them from a Live CD like Ubuntu, Knoppix etc.

If you boot up the bootable Grub floppy you get a Grub prompt. Commands asking Grub to load the Lilo in hda1 are
Code:
root (hd0,0)
chainloader +1
boot
That to me is a sure fire method to test the Lilo compiled into the root partition of hda1 (inside its boot sector). Grub counts from zero so as hda1 is the 1st partition of the 1st disk it would be known to gRub as (hd0,0).

You can ask Grub to boot the Lilo in MBR with commands exactly as above but with the first line replaced by "root (hd0)" meaning the root is the whole of the 1st disk (hd0) and that is its MBR.

Ultimately you can fire up Your Linux by Grub with these lines
Code:
root (hd0,0)
kernel /vmlinuz ro root=/dev/hda1
boot
If Grub boots to the old image then you have misled all of us and didn't manage to put the correct version of the kernel in vmlinuz.

I think we are bottoming this one out if Grub is used to give a second opinion of the whole thing.

Last edited by saikee; 01-18-2007 at 10:32 AM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
System Down: Broken LILO after failed kernel upgrade. Please help! Yalla-One Linux - Software 1 03-30-2005 03:53 PM
suse pro 9.1: no longer boots after kernel upgrade (X locks up) abelikoff SUSE / openSUSE 18 03-02-2005 10:22 PM
Lilo won't boot XP after kernel upgrade jafriede Slackware 6 09-22-2004 01:35 PM
lilo and changing where it boots from true_atlantis Linux - General 10 12-01-2003 04:56 PM
RH9 Upgrade from 7.3. LILO stops at LI - boots from boot disk ok zevious Linux - Software 4 04-17-2003 07:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:37 AM.

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