[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: FIPS -> Dual boot (GRUB vs LILO)



Eddie Sneeh wrote:

1. RH master, Windows slave:
RH installation would not see the other drive:
/dev/hdb.  I suppose this works too but without the
benefit of GRUB or LILO?  Chris, were you able to use
GRUB or LILO this way?

Yes. If you installed windows first with the drive as slave then installed linux then lilo/grub should be able to boot into either without modification. If you installed windows with that drive as the master, then put another drive in as master (to load linux onto) and moved the windows drive from master to slave then linux needs to be informed that it has been swapped over. This is my /etc/lilo.conf file from such a computer (Win NT on hdb1 and vfat32 drive C: not ntfs, and RH 7.3 on hda1):

prompt
timeout=50
default=winnt
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
linear

image=/boot/vmlinuz-2.4.18-3
   label=linux
   initrd=/boot/initrd-2.4.18-3.img
   read-only
   root=/dev/hda1

other=/dev/hdb1
   optional
   label=winnt
   map-drive=0x80
   to = 0x81
   map-drive=0x81
   to = 0x80

Its the map-drive parts you would need. Lilo can be put anywhere, my favourite when I don't want to modify the mbr of a master drive with windows is to put it onto a floppy. To do this, change the "boot=/dev/hda" line to "boot=/dev/fd0". When you run lilo, put a bland floppy in the drive.

a. Choosing GRUB as the boot loader:

I've not used grub, but possibly it needs to be told of the drive swap.

As a side question, is there a way to make a hard
drive "read-only" while installing on another drive
(other than physically taking the drive out)?

Yes. If mounting it automatically at boot time, put "ro" into the 4th field of the line in /etc/fstab mouting that drive. If you look at your file, there is almost certainly already a "ro" option in the line for your cdrom as an example. If mounting with the "mount" command add "-o ro", as in:
"mount -t ext2 -o ro /dev/hdb2 /mnt/win"



b. LILO: LILO has to write over the Widnows MBR to work, so I can't use the Windows drive standalone, so it's not an option for me.

No, see above

Hope this helps

Chris
PS Sorry for the delay, I've been away a few days.









[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]