Re: lilo not in MBR

From: Robert Heller (
Date: 02/01/04

Date: Sun, 01 Feb 2004 15:58:36 +0000

  Nikola Skoric <>,
  In a message on Sun, 1 Feb 2004 15:28:22 +0000 (UTC), wrote :

NS> Hello,
NS> I have the following disk configuration (on 40GB disk):
NS> type pri/log active size
NS> ------------------------------------
NS> NTFS pri + 21GB
NS> Linux Ext2 pri 9GB
NS> Linux Swap log 1GB
NS> FAT32 log 8.2GB
NS> In that order. On NTFS partition I have working Win XP system. On Linux Ext2
NS> partition I installed Mandrake 9.2 and I put lilo on /dev/hda3, which is that
NS> Linux Ext2. What I planned to do was to change the boot sequence in BIOS, start
NS> Mandrake and then do the "dd if=/dev/hda3 bs=512 count=1 of=linux_boot_sector"
NS> thing and paste the result of that command into boot.ini in my C:\ on Win XP.
NS> But forgot that I can only change disks, not partitions (I mixed "active
NS> partition" with "boot sequence"... :-\ well I am a newbie, after all :-) ).
NS> Now, is there a way to get of this situation? What I could do is change the
NS> active parititon from Win XP with PartitionMagic to Linux Ext2 partition, boot
NS> Linux, do the "dd" command and then change the active parititon from Linux.
NS> That would work, right? It's just my wild quess, and we saw what the result of
NS> my last wild quess was :-) OK, if that works, can somebody give me precise
NS> instructions how to change active partition in Mandrake 9.2? If that doesn't
NS> work, is there any way to boot that Linux?

If you just want to boot up linux, grab the LILO boot record from the
boot sector of your Linux partition, you can just boot from a boot
floppy or from your install CD (for RedHat install CDs it is usually
'linux rescue' at the CD's boot prompt). Then you just need to mount
your FAT32 file system (if it is not already mounted) and do "dd
if=/dev/hda3 bs=512 count=1 of=/mount_point_of_fat32/linux.dat", then
shutdown, boot into WinXP, and add a line to C:\boot.ini that refers to
"D:\linux.dat" as an alternative boot loader.

You don't really need to fuss with your BIOS's boot sequence at all.

Note: this assumes that you have a floppy or CD-ROM drive that you can
boot from. I'm assuming one or the other, since you did manage to boot
the Linux installer somehow...

NS> Now, before you answer me "why all the trouble, just reinstall Linux and put
NS> lilo in hda0", I have to say that's the thing I'm trying not to do :-) I want
NS> to be able to just format the Linux partitions and delete one line from my
NS> boot.ini if I wan't to remove Linux from the machine. If I permit lilo to nest
NS> in hda0, then how to I remove it from there? I reckon it's more trouble to
NS> remove the lilo from MBR when I want to remove Linux than to put lilo on hda3
NS> and then use Windows multiboot menu.
NS> End, if everything fails, how can I accomplish... the thing I wan't to
NS> accomplish? :-) The last resort I have is to install Linux on separate disk and
NS> then I can play with boot sequences from BIOS...
NS> --
NS> Pozdrav/Regards, Nikola [Nick] Skoric.
NS> "...Usne, tice-rugalice - a u oku tajac
NS> Da sam kaput sa dva lica, da sam Gospo'n Propalica..."
NS> - site o Usenetu na hrvatskom!

Robert Heller ||InterNet: || /\FidoNet: 1:321/153