| PAGE INDEX Hard Disk Information. What is the MBR?. What are 'boot sectors'?. What is the 'IPL' for the boot loader?. What does an IPL really look like?. What does the IPL for a bootloader do?. What does a Partition Table really look like?. Is the MBR part of the Windows file system (Partition)?. Can a bootloader's IPL be installed to a partition?. The partition table and partition numbering. Managing My Partitions with GParted. A Birds's eye view of Windows XP... showing the important files needed for booting Installing a Boot Loader for Ubuntu. If you choose <Yes> ( to Install GRUB's IPL to MBR) If you choose <No> ( to Install GRUB's IPL to a custom location) If you choose <Go Back> ( to Install LILO Boot Loader) The Ubuntu Installer Main Menu. |
Hard Disk Information (in brief) The information below here is intended to be sufficiently accurate to try to explain what's happening to someone who is installing Ubuntu in a computer, dual booting with Windows. It is the best I could find out from reading more technical websites and some of those didn't seem to completely agree with each other. My aim is to present the information in less technical terms for those who find the real websites 'dry reading'. There could be more details or facts that are beyond the scope of this web page. Please accept my appologies for any inconvenience that might be caused by any omissions or errors and check other websites for more information. This web page contains links to some excellent websites. ![]() A hard disk viewed from the outside just looks like a metal box with a ribbon cable and some wires plugged into it . ![]() It is not recommended for users to open their own hard drives because even microscopic dust particles will get in it and ruin it. This one's just an old one that's no good anymore so I have opened it to see what's in it. On the inside, there are some shiny platters on a spindle. The hard disk in this picture has only two platters, but most modern ones have more than that, at least three. The arms above and below each platter are controlled by precision electronics. The arms hold tiny read/write heads on the end of them which float on a thin cushion of air just above the spinning disk surface. They can pivot around to sweep the disk in search of the data you want. Data on the hard disk platters is written in concentric rings (like growth rings on a tree stump), called 'tracks'. Tracks are divided up into 'sectors'. There are hypothetically 63 sectors per track, so they could be imagined to be a little smaller than one minute on a watch face. One sector on a hard disk can hold 512 bytes of data. When you read the word 'cylinder' when used in reference to hard disk geometry, it means an imaginary cylinder connecting all the tracks (rings) that are the same size on both the top and bottom of each platter for all the platters in the hard disk. Now, please click on the following link to another website where the author of that website has done an excellent job of illustrating and explaining about sectors, tracks, cylinders and heads, Don't forget to come back to this page when you are finished, in case you start getting interested in the rest of that website! From here on, things get more and more and more complicated. Are you ready? ... By now you should know a little bit about what is called 'Disk Geometry', but now I have to tell you there is actually a lot more to it than that. Really, to use all the space in a hard disk properly, it would be silly to have 63 sectors in the outside tracks and 63 sectors in the inside tracks. As anyone can imagine, the sectors in the outside tracks would be much bigger than the sectors in the inside tracks, so why not divide up the outside track into smaller sectors too, and make better use of the available space in the hard disk? Well, that's exactly what happens, and a lot more besides, which results in lots of fancy mathematics and complicated electronic trickery until we end up with 'fake disc geometry', in which the user and the operating system is tricked into believing there are 63 sectors per track, and so on. What is really inside the hard disk is something much more complicated. The hard disk has firmware in a special electronic card underneath it to translate the real disk geometry into fake disc geometry which is simple enough for the operating system and the user to 'understand'. Originally, DOS used 'CHS', (Cylinders, Heads and Sectors) to plot the co-ordinates of important locations on the hard drive, like the Windows boot sector, or end of one partition, and the start of another partition. The main problem with that turned out to be, when hard disk makers learned how to make things smaller so we could fit more information in the same sized disk, the software didn't know how to address the extra disk space, so the extra space couldn't be used. Linux was able to use the extra hard disk sectors because it didn't think about the hard disk in Cylinders, Heads and Sectors, Linux simply counted each sector starting at the beginning of the disk and gave each sector a number, all the way to the end of the disk. Linux looked at the hard disk kind of like a roll of film. That's called 'LBA' (Logical Block Addessing). That meant Linux wasn't restricted to a maximum number of cylinders, heads and sectors, so Linux could be installed in hard disks over 1024 cylinders, or 504 Mb. ![]() DSCF0473.png What we call the 'beginning' of a disk means the outside edge, and the 'end' is really the part closest to the center. For LBA (Logical Block Addressing), sector numbers of the disk are counted from the outside in. It make sense doesn't it? That's probably why they call it 'Logical'. (block addressing). When you are partitioning and decide to place a partition at the 'beginning of the free space', you are putting it towards the outside of the disc. Placing a partition at 'the end of the free space' puts it towards the center of the disk. Links: StorageReview.com A Brief History of the Hard Disk Drive Partition types Andries Brouwer, aeb@cwi.nl 2007-10-01 Minimal partition table specification Andries Brouwer, aeb@cwi.nl 1999-09-16 Large Disk HOWTO Andries Brouwer, aeb@cwi.nl v2.5, 2004-11-01 Linux Planet Tutorial: Adding Additional Hard Drives in Linux NOTE: Particularly take a close look at that link's excellent illustrations! (On the second and third pages). Recommended! |
What is the MBR?
Link: Master Boot Record -Wikipedia
![]() The MBR (Master Boot Record) is located in the first sector of a hard disk, it is also a boot sector, but it is a very special kind of boot sector. The MBR is the first sector of a hard disk and does not belong to any partitions or the operating systems in them. Rather, the partitions and operating systems in the hard disk belong to the MBR, because the partition table itself is part of the MBR. That is why it is called the Master Boot Record.
Another word for a MBR is a 'disk label'. GParted LiveCD can make several kinds of disc labels. The msdos type disc label is the kind I use, and that is most other people use too, because most new computers come with Windows in them already. There are also amiga, bsd, dvh, gpt, mac, pc98, s390, sun and loop disc labels. Ubuntu isn't restricted to use only the msdos disc label, but this website is about dual booting with Windows, so the msdos type disc label is the kind I'm talking about in this website. 'Formatting' the hard disk means giving it a disc label or MBR. After your hard disk has a MBR, you can make partitions, because the partition table is in the MBR. The MBR also contains a disc signature, to identify the hard disk. The MBR's disc signature is important for Windows Vista, since Microsoft decided to tie Vista's boot loader to the hard disk signature. It is not correct to call a MBR "The (insert-name-of-operating-system) MBR". The MBR does not belong to any particular operating system. The MBR belongs to the hard disk and the hard disk belongs to whoever owns the computer. The MBR has room in it for a some code for a boot loader, but not enough room for an entire boot loader to fit into, so the code there is mainly just for pointing to the boot loader. The boot loader codes for the most modern boot loaders does not touch the 'disk signature' in the MBR. To make sure, Vista users especially may wish to make a backup of thier MBRs before installing Ubuntu, MBR backup and restore. The MBR of a computer's first hard disk is special because the computer's BIOS normally boots the first hard disk when your computer is being booted. BIOS Page. The BIOS will be directed by any boot loader's code it finds in the MBR to look up the boot loader in whichever hard disk and partition that boot loader might be in. If there is no bootloader code in the MBR, the BIOS will go to boot sector of the active partition, (whichever partition is marked with the 'boot flag' in the partition table). If a computer has more than one hard disk, it is possible to boot a non-first hard disk's MBR by using GRUB or another boot loader to 'chainload' it. The non-first MBR must have boot loader code installed in it for that to work. We often say we are 'installing GRUB, LiLo or GAG in MBR', or 'fixing the Windows MBR', but none of those statements are really true. The MBR is only one sector, and one sector of a hard disc can only hold 512 bytes of data. The three main areas of code in the hard drive boot sector are the boot loader code, 446 bytes, the partition table, 64 bytes and the 55aa signature, 2 bytes = 512 bytes. GRUB's stage2 file is about 108 Kb and I think Windows NTLRD is about 244 Kb, so obviously there isn't anywhere near enough room for a whole boot loader to fit inside a MBR, just enough code to make the MBR point to the boot loader. Code for making the MBR point to a boot loader is called an 'IPL' (Initial Program Loader), or 'stage1', or 'first stage' of a boot loader. What is the 'IPL' for the boot loader? The 446 byte area of the 'boot sector' allowed for the bootloader is really too small for any decent boot loader to fit into. There is enough room for a small amount of code called the 'IPL' (Initial Program Loader). 'First stage' of the boot loader is another name for the same code. What does the IPL for a bootloader do? All the IPL or first stage of a bootloader has to do is look at the partition table, and tell the BIOS where on the hard disk to go looking for the larger part of the boot loader. The larger part of the bootloader is called the 'second stage'. If it is the IPL for Windows bootloader, (NTLDR), it points the BIOS to Windows boot sector and on to the right files in the Windows partition to start the second stage. Then the Windows bootloader takes over and does the real work and actually boots the operating system. If the IPL for GRUB or GAG is in the MBR, the BIOS goes to the first track of the hard disk, which is normally empty, so some boot loaders use that for an area to put extra code. GAG Boot Manager pretty near fills up the first track of the hard disk, because it has to fit in there entirely, GAG is 'operating system independant', meaning you can delete any or all operating systems and GAG Boot Manager will still be there. The first track of the hard disk, beginning with the MBR, is not formatted with any file system so it doesn't belong to any particular operating system. GRUB boot loader only uses the first fifteen sectors of the first track for it's stage1_5 files. GRUB's stage1_5 is optional, but it helps GRUB understand file systems and prints some types of error messages, so it helps to have it. From there it looks for the stage2 file of GRUB. Then GRUB's stage2 normally finds /boot/grub/menu.lst and shows the GRUB menu and lets you select which operating system you want to boot. If you select Windows, then GRUB points from Ubuntu to Windows where it 'chainloads' Windows bootloader. GRUB can load other operating system by chainloading the boot sector, or for Linux by booting kernels directly, or by finding and using thier configuration files. If you choose to install LiLo instead of GRUB, LiLo makes a backup of your MBR, and it doesn't write to the first track of the hard disk at all. LiLo can be installed with the 'Alternate' CD. The 'Alternate' CD is the main subject of this web site. If you choose <Go Back> ( to Install LILO Boot Loader). Is the MBR part of the Windows file system (Partition)? If you enter the code 'sudo fdisk -lu' in a terminal, you will see that the first sector of the first partition does not begin until sector 63. Code:
It doesn't matter whether the first partition on the disk happens to be Linux or Windows, the first track of a hard disk (first 63 sectors), are normally empty except for the MBR and not formatted with any filesystems. So you don't need to worry if you have NTFS in Windows in your first partition and you have heard that Linux can't write to it, if that's scaring you from using GRUB. Neither the MBR or even the whole first track are part of any filesystem. (And Linux can write to NTFS now quite safely these days anyway).
You can, if you wish, make a backup copy of the IPL that is in your Master Boot Record now, before installing a new bootloader (or rather the new bootloader's IPL). Then if you decide you are not happy with the new bootloader, you can restore your MBR to the way it is now. Click on the following link, Back up your MBR Warning: If you make a backup copy of your MBR you can copy the entire 512 bytes, which means the entire MBR including the partition table and 55 aa signature. That may be useful sometimes, but be sure you destroy that copy of your MBR if you decide to re-partition your disk later. If you accidentally restore your MBR with an out of date partition table, it will not match your new filesystems. It will cause your disk to be unreadable. Unless it is very important data you will probably have to give it up and reformat and repartition your disk and loose all your data and have to start again. If you only want the to make a backup copy of the bootloader code, you only need the first 466 bytes of the MBR, so it will not include the partition table. That is much safer. That is what I do. The following code will install GRUB to MBR of the first hard disk, from a hard disk installed Ubuntu operating system. Code:
You may need to replace 'hda' here with 'sda' in the case of SCSI or Sata hard disks. You can install Grub to MBR on a non-first hard disk with 'hdb', or 'hdc' and so on. Sometimes there are special reasons why someone might want to do that. The Windows FIXMBR command writes Windows XP's boot loader code to MBR. See this website's Un-install Page for details, and for more ways to restore Windows boot code to a hard disk's MBR. |
| What are 'boot sectors'? This first sector of a partition is known as the 'boot sector'. A boot sector is not to be confused with an MBR, they are two different things. A MBR and a boot sector both may contain code for a boot loader, but a boot sector is not a MBR. 'MBR' stands for 'Master Boot Record', there can only be one Master Boot Record per hard disk, but there can be many partitions. There can be as many 'boot sectors' as there are partitions. There are backup copies of the boot sector in some file systems. In a FAT32 file system, the backup of the boot sector is in sector 6 of the file system. The FAT32 boot sector can be restored from its backup with Linux commands, see When the bootsector is not the same as its backup - FAT32. We can also use TestDisk for restoring the FAT32 boot sector from it's backup, Advanced FAT Repair - CGSecurity. An NTFS file system has the backups of it's boot sector in the last sector of the file system. We can restore the boot sector of a partition containing an NTFS file system with TestDisk. TestDisk is a program you can install in Ubuntu, and TestDisk can easily restore the boot sector in an NTFS partition from the backup, or even rebuild an NTFS boot sector, TestDisk has their own page with illustrations, here is a link, NTFS Boot Sector Recovery. Windows operating systems has the bootloader's code written there by default,so we can always chainload Windows by its boot sector. (Well, almost always). Linux operating systems do not necessarily have any boot code in their first sectors, but a boot loader, (or rather the IPL for one), can be installed there by the user, and in my opinion that's a good idea. Can a bootloader's IPL be installed in a partition? The following code will install GRUB to the first sector of a Linux partition, when issued from a hard disk installed Ubuntu operating system. Code:
Note: this can be done without affecting the MBR or bootloaders on other partitions.
Unless that operating system also owns the bootloader installed to MBR, you would not be able to boot to that partition unless you use another boot manager or a bootloader to chainload it, (point to it). An alternative idea is to install LiLo to the first sector of a Ubuntu partition, rather than Grub, as it can provide you with an auxiliary means of booting my system, in case something goes wrong with my MBR-installed bootloader, GRUB. The Windows FIXBOOT command writes Windows XP's boot loader code to the Windows boot sector. |
The partition table and partition numbering
![]() partition 1 partition 2 partition 3 partition 4 For a while, in times of olde, a disk could only have four partitions. The partition numbers 1,2,3 and 4 are reserved for the partitions which occupy an entry in the Master Boot Record's partition table. Then, someone managed to discover a way to sub-partition one of these four primary partitions, but only one of the four primary partitions is allowed to be divided up in this way. The sub-partitioned primary partition is called an 'extended' partition. It can have the number 1,2,3 or 4. The partitions that are inside it are called 'logical' partitions. They must be 'contiguous', (in a series). They can be separated by free space, but a primary partition is not allowed to be be placed in between logical partitions. ![]() partition 1 partition2 partition 3 partition 4 partition 5 partition 6 partition 7 partition 8 partition 9 Because the numbers 1,2,3 and 4 are reserved for the four primary partitions (or three primary and one extended partition), the partition numbering for logical partitions always begins with number 5. Even if there is only an extended partition and no other primary partitions, the logical partitions can never have a number lower than 5. Logical partition numbering begins at five and counts upwards from there. On an IDE disk, we can make as many as 63 logical partitions inside an extended partition. Each partition we add is given the next available partition number in the order that the partition are created in. They don't have to be numbered in disk order. In other words, I could make partition number 1 first, and place it anywhere on my disk (furthest to the right for example). The next partition I make will be given the number 2, and it can be anywhere, the next, number 3 can be anywhere, and number 4 can be located wherever there is space left over. If I were to delete partition number 1, the number 1 would then be the lowest available partition number. That means time I make a new primary partition, it will be given the number 1, because the number 1 is vacant, and it is the first available number. |
Managing My Partitions with GParted
GParted Web Forums: http://sourceforge.net/forum/forum.php?forum_id=396063 GParted General Documentation "LarryT's Docs": http://gparted.sourceforge.net/larry/generalities/gparted.htm How to resize partition, step by step The livecd-howto ![]() fig 1 partioning Most of us brought our computers home from the store with Windows already installed on one big primary partition like this, with Windows taking up the whole hard disk. Most Windows users would call this their 'C' drive. It is also partition number 1. In Linux it is designated /dev/hda1, or hda1 for short. In Grub terms this is hard drive 0, partition 0, or (hd0,0). ![]() partition 1 partition2 partition 3 partition 5 Now I have installed Ubuntu. The default Ubuntu install makes a new primary partition which is assigned the next available partition number for primary partitions, which is number 2, or /dev/hda2. In Grub's numbering scheme this will be (hd0,1). The swap area (red), is inside another partition. The partition that the swap area is in is called an 'extended' partition. An extended partition is a special type of primary partition and it will be given the next available partition number for primary partitions which in this example will be number 3. The swap area will be partition number 5. Why did we skip the number 4? Because the number 4 is reserved for primary partitions and we have not yet made four of those. Logical partitions always begin counting from 5. Why is all this partition number stuff so important? It isn't very important to most computer users until they decide to start playing around with their partitions. If you don't know what you are doing, it would be easy to cause yourself a quite a lot of trouble by telling your disk partitioning software to perform operations that will change the number of one or more of your partitions. Changing the partition number of an operating system will make the operating system unbootable, or a data partition inaccessable, unless you know how to fix that again. Many new users will not know what to do and might even get impatient and frustrated and feel like formatting their entire disk and starting again. |
| A Birds's eye view of Windows XP The boot.ini file in Windows XP is the file that controls the next part of the process for booting Windows. I will show you how find it and have a look at it from Ubuntu. You will need to have Ubuntu installed in your computer to do this, or you can use the Live CD and mount your Windows partition manually. ![]() fig 4 mbr
Open your hda1 partition with this icon (above illustration) to see boot.ini and other files that are associated with booting Windows. ![]() fig 5 mbr
Here's a view of what my Windows system looks like looking down on it.I opened my boot .ini with our text editor, 'gedit', too see what's inside. (below) ![]() fig 6 mbr
This is what the boot.ini file looks like. If your partition number for the Windows partition ever happened to be accidentally changed, by messing around with disk partitioning software, for example, Windows won't boot. It just needs boot.ini to be edited with the new partition number to fix the problem. But, -- when Windows won't boot, you can't edit boot.ini, and you can't edit boot.ini to boot it, so you would be stuck... Unless... The best solution to the problem of finding your Windows unbootable after using disk partitioning software is to make your own Windows XP boot floppy disk. A Windows XP boot floppy disk contains three vital files, boot.ini, ntdetect and NTLDR. That would even get you out of trouble if you had Windows on NTFS, which is still considered dangerous to write to from Linux. However, you can edit the boot.ini on the floppy disk any time you like, and as often as you like, without hurting anything. How to create your own boot disk for Windows XP As far as I know, the floppy disk must first be formatted in Windows, exactly the way the instructions say, so you might need to use another Windows XP computer. I have not yet tried to make a CD like that, but it might also work, I don't know. If your computer has no floppy disk drive, and you are lucky enough to have the FAT32 filesystem in Windows XP, and you are planning ahead, you can relax the file permissions for boot.ini, so that you can edit it from Linux. To relax the security attributes for the boot.ini file, boot Windows XP, 1) Click Start 2) Click 'Run' 3) Type CMD in the 'Run' box,
Next. you can expect to see a black terminal with prompt like illustrated below:
5) type cd\ after this prompt.
Then you can make changes to your partitions a little more safely, knowing that if you do accidentally have your Windows partition number changed, at least you can edit boot.ini from Linux and still boot it again. 7)
8) To re-assert the security attributes for the file after you finish your partitioning work,
|
Installing a Boot Loader for Ubuntu (when installing with the 'Alternate' CD).
If you choose <Yes> ( to Install GRUB's IPL to MBR) The wording on the panel illustrated above, is brief and practical. There isn't time or room for a page as big as this one to explain exactly what happens. All of GRUB doesn't really get installed on your 512 byte MBR, that's just a kind of an abreviated way of saying things to avoid taking the time to explain what really happens. All bootloaders come in two or three stages. The reason for this is because the space allowed in the MBR is so small, less than 446 bytes are allowed for the bootloader's code. No bootloader could possibly fit in such a tiny space. Instead, only the 'stage1' or 'IPL' (Initial Program Loader), which is the first part of any bootloader goes there. The job of the bootloader's 'IPL' or 'stage1' is to either point to the bootloader files in the operating system's partition or else point to the first sector of the partition, which in turn points to the bootloader's stage2 files. Windows NTLDR works that way too, and so does Lilo. Those both come in two stages, 'stage1' and 'stage2'. 'Stage1' fits in the MBR, and 'Stage2' lives in the operating system. Grub comes in three stages. First, 'stage1' is the bit that fits inside the MBR, 'stage1_5' (optional) is written to the next fifteen sectors of the unused first track of the hard disk, and 'stage2' (the important part) is installed in a partition. Normally, this will be the operating system's partition, (Ubuntu) but it can be installed in a dedicated /boot partition if one has been made. So really what this sign is asking is: "Do you want the first
446 bytes of grub (stage1) written to the MBR ?"
'stage 1' will be copied to the master boot
record if you choose 'Yes'. This will overwrite the 'IPL' code for the bootloader you had installed before. stage1_5 of GRUB, will also be written to the next 15 sectors following the MBR. The advantage of grub's stage1_5 is that it 'understands' many filesystems, and Grub can perform quite a number of useful tricks because of that. The first track of the hard disk is not formatted with any filesystem and so does not belong to any partition or operating system. It is normally empty and is left vacant for this sort of use. In rare instances there can be other types of special programs installed there. There shouldn't be, but you should remember if you have installed any. You should have been notified if someone else installed something there, as it is unusual. Some older BIOSes disks needed 'disk manager' software to see larger hard disks than they were designed for, but those would be rare nowadays. Some models of Toshiba Satellite Notebooks that have the Express Media Player are known to have difficulties with GRUB. LiLo is recommended for those instead. stage2, the second stage boot loader is the part that does the real work. The second stage of a boot loader brings up our new grub menu (below) and later does the real work of loading an operating system's kernel.
The user gets a chance to decide what operating system to load, Windows or Ubuntu, and any others when the GRUB menu shows on boot-up. If the user selects Ubuntu, or another Gnu/Linux operating system with Grub, then GRUB loads the kernel for it into the computer's memory and boots the computer with that operating system. If you choose <No> ( to Install GRUB's IPL to a custom location)
Choosing 'No' doesn't mean GRUB will not be installed, it just means you don't necessarily want to install GRUB's IPL to MBR and GRUB's stage1_5 in the next fifteen sectors. Maybe you want to install GRUB's IPL somewhere else?
This panel comes next, you can type in a custom location on the dotted line to specify where exactly you do want GRUB to be installed. NOTE: Without the inverted commas! If you want GRUB's IPL installed to your second hard disk's MBR instead of your first one, type (hd1) or /dev/hdb here. Some computers have a BIOS that allows the user to easily choose which hard disk to boot. Mine does, click hard disk boot priority to see what I mean. Then you can either enter your BIOS to set which MBR to boot or use another system's GRUB to chainload your second hard disk's MBR. If you want GRUB's IPL installed to the first sector of your Ubuntu partition, type (hd0,1) or /dev/hda2 here (where hd0,1 or /dev/hda2 is the correct designation for your Ubuntu partition. That means you will have to chainload GRUB from another bootloader or boot manager like GAG Boot Manager in MBR or from a floppy disk or a CD. We can install GRUB to floppy disk by typing (fd0) on the line. Grub works very well from floppy disks. You should make extra copies of the floppy disk in case the floppy gets corrupted somehow (like you spill coffee on it or your dog chews it up or something like that). Here is a link to a great website about 'dd' commands in Linux, it explains how to replicate floppy disks, and much more besides, http://www.linuxquestions.org/questions/showthread.php?t=362506 Or, if you are not comfortable with Linux commands yet, you can use the 'Alternate' install CD in 'rescue mode' If you use 'Tab' to select <Continue>, you'll probably get a red warning screen. You can choose <Go Back> if you want. That will bring you back to the panel show in fig 11 below again. If you choose <Go Back> ( to Install LILO Boot Loader)
fig 11 mbr
![]() This is the Ubuntu Installer Main Menu that I keep referring to. If you want to install LILO boot loader, you just select that line and press 'enter', (of course, what else?). Well there is the line titled 'Continue without a boot loader'. I wouldn't recommend that one, I don't know why anyone would want to do that. Well you could, but you would need to boot it with Super Grub Disk. Or you would have to have Grub already installed in another operating system and know how to use GRUB from the Command Line to boot your new Ubuntu installation. Then you would manually edit the /boot/grub/menu.lst in the other Linux operating system with an entry for Ubuntu. Operating System Entries for Multiple Booting More Linux Systems. In this example I have shown 'Install the Lilo boot loader on a hard disk', and below is the resulting panel from that selection. ![]() This panel gives three options, as you can see. LiLo is the polite Linux boot loader, it only writes to the MBR, and not to any other sectors in the first track of the hard disk. LiLo makes a backup of your MBR before it installs there. The MBR backup will be called boot.####, (where # (hash symbols) represent a four digit number), and it will be stored in your /boot directory. If you install LiLo to MBR, your OS should boot right up with LiLo directly off the MBR. I have shown highlighted the one I want to use this time, '/dev/hda2: new Ubuntu partition.' This means the IPL for LILO will be installed in my first sector (boot block) of my new Ubuntu partition. Since I'm not installing to MBR, I will need some other boot loader or a boot manager to boot Lilo with, and Lilo will boot Ubuntu. This other boot loader can be one with an IPL in the MBR already, that can be configured to boot Lilo and Ubuntu. GAG Boot Manager is one I use, GAG can boot Lilo and Ubuntu from a GAG floppy disk, or from a GAG CD-ROM. More info on how to use GAG Boot Manager: GAG Page. This option will not touch your MBR. Or you can use a Super Grub Disk. ![]() This is an illustration of the panel you'll see if you select 'Other choice (Advanced)' from the panel shown in fig13, above. This allows a user to select a custom location to install LILO to, such as (fd0) perhaps. (Floppy disk). Or some other more exotic location. For more about LiLo, please feel free to go to the LiLo Page of this web site. ============================================================ |
