LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   LILO>GRUB and a little Drivecrypt thrown in... (https://www.linuxquestions.org/questions/linux-general-1/lilo-grub-and-a-little-drivecrypt-thrown-in-339431/)

jgottlieb12 07-02-2005 05:08 PM

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

jgottlieb12 07-05-2005 09:22 AM

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

Mara 07-06-2005 03:12 PM

grub-install /dev/hda3 should do it. Have you tried grub-install and then installing lilo?

jgottlieb12 07-06-2005 04:23 PM

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

Mara 07-08-2005 05:52 PM

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?


All times are GMT -5. The time now is 03:09 AM.