LinuxQuestions.org
Review your favorite Linux distribution.
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-02-2005, 05:08 PM   #1
jgottlieb12
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
LILO>GRUB and a little Drivecrypt thrown in...


Ok, so here's my dilemma.

I have a laptop with a 40GB HD. WinXP on the first 30gb. Then dual booted with Debian.

My drive is laid out as follows:

/dev/hda1 = NTFS - 29GB
/dev/hda2 = FAT32 - 1 GB
/dev/hda3 = ReiserFS - 9GB - this is my "/" and also my "/boot"
/dev/hda4 = LinuxSWAP - 1GB

I also use Securstar Drivecrypt for HD encryption on the NTFS partition.

Originally I installed Debian and used GRUB as my bootloader.

When you install Drivecrypt, and enable the boot authentication, it wraps the authentication portion around the existing MBR. So the first thing the MBR does is authenticate, then it goes on to whatever was there before.

With GRUB, when I installed Drivecrypt and kicked on the boot auth, it authenticates fine, then launches GRUB which hangs as it appears to try to load stage 1.5.

So, I went to LILO. When Drivecrypt wraps the LILO MBR up in it's boot auth, it works fine.

I'm not sure if this has something to do with GRUB STAGE1 being more sophisticated than LILO, or possibly just bigger. But it doesn't work.

The catch is after that, if I setup new kernels etc, and have to run LILO again, away goes my boot auth and my ability to get to my WinXP Partition.

So what I want to do is leave LILO there and have LILO point to GRUB on the first sector of the linux partition.

That way, I can tinker with new kernels etc without having to mess with my MBR.

From everything I've read and all the documentation, it should be as simple as running the following:

grub-install /dev/hda3
or
grub-install (hd0,2)
OR
at the grub prompt:
grub> root (hd0,2)
grub> setup (hd0,2)

Now all of these options have run fine... the problem is they all seem to overwrite my MBR and away goes LILO.

I'm not a Linux GURU by any stretch, so maybe I'm just making a stupid syntax mistake, or maybe what I'm trying to do just can't be done.

Any ideas would be great...

Joshua
CISSP, CEH, CCNP, MCSE, CCSA
 
Old 07-05-2005, 09:22 AM   #2
jgottlieb12
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Anybody?

Perhaps I should simplify the question...

How can you get LILO to use the MBR, and then have it point to GRUB using the first sector of a partition? The GRUB partition is the 3rd partition on the physical disk...
 
Old 07-06-2005, 03:12 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
grub-install /dev/hda3 should do it. Have you tried grub-install and then installing lilo?
 
Old 07-06-2005, 04:23 PM   #4
jgottlieb12
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Mara
grub-install /dev/hda3 should do it. Have you tried grub-install and then installing lilo?
That's what I thought... I have tried installing LILO after GRUB. It just wipes it out. It seems that GRUB is just installing into the MBR and not the hda3...
 
Old 07-08-2005, 05:52 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
Originally posted by jgottlieb12
I have tried installing LILO after GRUB. It just wipes it out.
If you install LILO after GRUB, is GRUB on /dev/hda3? Does the option in LILO that should run GRUB work?
 
  


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
Booting of raw ISO from GRUB/LILO (though preferably GRUB) Orkie Linux - Software 28 12-15-2013 09:37 PM
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 01:15 PM
LILO>GRUB, with a little Drivecrypt thrown in... jgottlieb12 Linux - Newbie 1 07-06-2005 02:51 PM
How to prevent the UDP package from being thrown away? fionafhx Linux - Networking 0 12-24-2004 01:49 PM
getting thrown to the login prompt after killing X jdaniel Linux - General 5 09-26-2003 03:21 PM

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

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