Linux+ Question
Hey, I have this question from 2 studyguides and am confused. Can you help?
Q: A site admin. instructs the technician to install Linux as a secondary OS on an existing Workstation. He wants to use the boot loader of the primary OS. When requested where to place LILO, the tech should select which location: a. BIOS b. /etc/disktab c. MBR d. Partition superblock A: B :scratch: Another question I got was similar. But it was multi-booting Windows, OS2, Linux. It said to put LILO on the Partition Superblock. Makes sense because of OS2. I thought the answer to the above question would be either C or D. Can somebody help?? |
Re: Linux+ Question
Quote:
If you want your system to be able to boot, but you want some other system to control the Boot Loader, then you install the LILO boot loader on the partition superblock or boot partition in which the system is located, for example, /dev/hda5. Personally, I try to manage all of my disk partitions from my Linux system. I use what's called a chain loader any time I need to access some foreign system, such as Windows or BSD, otherwise, I either list each of my kernels directly on each partition I use, or I cheat and use the chain loader approach to access them, too. GNU GRUB is the boot loader I use whenever possible, otherwise I use LILO. If you don't want to do that, however, there are certainly other ways and other approaches to take. Here's another one - Quoting an article: NT Bootloader tutorial E. Jansson, 02 October 2002 Here is the link to the original tutorial: http://gazonk.org/~eloj/articles/linux-bootloader.html Linux Administration - Part 3: NT Bootloader Introduction Sorry, but you'll have to endure yet another Linux-related article until I've done enough research to publish the other two articles in my queue. Anyway, this time I thought I'd talk a little about how to get Linux booting off the harddrive, and specifically, how to get it booting if you want(?!) or have to keep an NT-installation in place on the same boxen. As we all know, NT is a real bastard, and very picky about how it can be booted. From my experience, though admittedly somewhat limited, NT will want to boot off the first partition of the first harddrive, and getting it to boot with anything but the NT Bootloader is sort of out of the question. So, if you want to be able to dualboot into Linux, you'll have to install another bootloader in front of NTs, or you'll have to get Linux into the NT Bootloader menu somehow. Let's explore the latter of these options. This was tested on NT4 by myself, and I have confirmation it works under Windows 2000 too. Get it on! For you as the administrator, the booting process of NT is governed by the file boot.ini found in the root directory of your booting drive. Here's a typical example: [boot loader] timeout=3 default=multi(0)disk(0)rdisk(0)partition(1)WINNTS [operating systems] multi(0)disk(0)rdisk(0)partition(1)WINNTS="Windows NT Server Version 4.00" multi(0)disk(0)rdisk(0)partition(1)WINNTS="Windows NT Server Version 4.00 [VGA mode]" /basevideo /sos Now, one would think that adding in Linux would be as simple as adding a similar line to the ones above, changing the disk and partition parameters? Haha. Yeah, right. To be able to boot Linux you'll have to install a bootloader into the Linux root/boot partition. Please note my wording, you will not be intalling it to the MBR, you will be writing it onto a Linux partition. I use LILO. My /etc/lilo.conf looks like this: boot = /dev/hdb2 delay = 3 image = /vmlinuz root = /dev/hdb2 label = Linux read-only image = /vmlinuz.old root = /dev/hdb2 label = rescue read-only The statement boot = /dev/hdb2 tells LILO to install into the root-block of this partition. You probably have LILO or some other loader installed already, if not, you'll have to pick one and install it. When the LILO configuration looks in order, run lilo to install it as a bootloader. If your configuration is similar to mine you will get a warning that the root-partition isn't on the first drive. Ignore it. What we will have to do now is to extract the bootsector from our Linux installation into a file, move it over into the NT-world, and add in a reference to the file in boot.ini. To do this, login as root and extract the bootsector using the command dd. It should look something like this: dd if=/dev/hdb2 of=bootsect.lnx bs=512 count=1 You must of course change the if parameter to the drive and partition of your linux root partition, matching your LILO configuration. This will get you a 512-byte file called bootsect.lnx. Now, move this file over to the root of the NT-boot partition - by means of a mounted shared FAT-partition, a floppy, or whatever - the same directory where you'll find the boot.ini. Now we must give NT some attention by editing boot.ini. Please note that boot.ini is a hidden system file, so you'll have to attr -r -h -s boot.ini before you can edit it. [boot loader] timeout=3 default=c:ootsect.lnx [operating systems] multi(0)disk(0)rdisk(0)partition(1)WINNTS="Windows NT Server Version 4.00" multi(0)disk(0)rdisk(0)partition(1)WINNTS="Windows NT Server Version 4.00 [VGA mode]" /basevideo /sos c:ootsect.lnx="Linux" As you can see we have added a line at the end, referencing the bootsector. We've also changed the default entry to be Linux. Now, if you did everything correctly, and if the invisible pink unicorn is with you, you will be able to reboot, see the Linux entry in the boot menu and after three seconds your Linux kernel will be decompressing and booting. As always, everything can't be all neat, tidy, working and done. You might have to redo the process of extracting the bootsector and moving it over to the NT partition when you upgrade your kernel. If you boot and get a hang or wierd lockup it's probably because you have updated your kernel. Keep that boot-disk handy, you will need it. Eddy doesn't want to keep NT around, but he has to. For this cowardice you can LART him. (c)2000 Eddy L O Jansson. All rights reserved. All trademarks acknowledged. |
Re: Linux+ Question
Quote:
one doesn't know WHAT the primary OS is ... I've only heard of /etc/disktab in relation to HP-UX and some DEC Unices. And secondly, it's also a text-file there, not a binary bootloader for other OSes ... As for OS/2 ... you could put lilo into the partition superblock of your Linux, and have OS/2's boot-manager start it from there :} or have lilo in MBR and start OS/2 and winDOHs from there... Cheers, Tink |
Thanks both of you! Eventhough I am fairly new to the beautiful world of Linux, I actually understood most of what was said! Scary. Thanks again.
|
All times are GMT -5. The time now is 07:22 AM. |