Lilo windows 7 boot




















If the kernel name changed, the configuration file will need to be modified to suit before reinstalling LILO. The last method shown above is not what is needed when the embedded machine's root drive is not in the running embedded system. With a Compact Flash disk, for instance, containing the Linux filesystem and mounted on a desktop Linux development machine, a few hoops need to be jumped through in order to install the bootloader onto the Compact Flash card. This method is usually necessary when there isn't already a bootable disk for the embedded machine.

Two sets of directions for doing this are given here. The first set of directions is generic, and will work for desktop Linux distributions which do not include an automounter or have an automounter which doesn't interfere with the process.

The second set details a known workaround. The following steps will need to be performed to install LILO onto a removable drive:. For simpler systems without an automounter, or with an automounter that doesn't try to protect the user from possibly malicious code, follow these directions.

Find out where the device node for the card was created assuming the development machine uses udev by using dmesg. Commit interval 5 seconds [ Since the device node sdb1 was created for the flash card in this example , that device needs to be mounted somewhere accessible. Bind mount the device nodes into the filesystem so that LILO will be able to communicate with the flash card:.

Run lilo with the appropriate LILO configuration file. Be sure to double check to ensure that the configuration file is correct, because a mistake here could render the desktop system unbootable. On many Linux desktops, a memory card will be automounted when it is inserted. While this is a nice convenience feature for most users, it comes at the expense of developers. This automount feature can be a source of frustration for those who haven't already found a way around the issues it causes.

Fortunately, we at EMAC have already found a method which works reliably on our recommended Linux distribution, Ubuntu On other systems, such as Debian, a workaround may not be needed. For a system which automounts, see below. Insert the flash card into the development machine's card reader and wait for the file browser window to appear.

If a messagebox appears asking you to choose what to do, tell it to open a file browser for browsing the files on the card. Find out the device name of the card by looking for the location where the card was mounted. The file browser window will list the name of the card under Devices in the left pane.

Look for this name in the output of the df command:. Therefore, this is the device needed for the next step. Now, switch to the root user account if not already running as root and mount the device on the directory from step 3, without unmounting it first:. Tells LILO what to use as the new boot sector. Makes LILO read the hard drive faster. Normally you want this, but some older systems may hang.

Remove it if yours is one of these. Tells LILO to prompt us at boot time to choose an operating system or enter parameters for the Linux kernel.

Keep this. Tells LILO how long to wait at the prompt before booting the default operating system, measured in tenths of a second. The configuration shown waits for 5 seconds. If timeout is 0 or not present, LILO waits forever if prompt is specified, otherwise boots the default immediately. This begins a section, and the lines that follow give specific parameters for this particular kernel.

You may have up to sixteen image sections, but one should suffice. The first image listed in the file is the default, unless you specify otherwise. The name that is used to identify this image at the LILO: boot prompt. Typing this name will select this image.

In my case, Linux is installed in the second primary partition. It will be remounted as read-write later in the boot process. This is the normal method of booting Linux. Like the image line, this begins a section. It is given the value of the partition where this other operating system lives. LILO will simply load and execute the boot sector of this partition at boot time. Before you begin editing, make sure you create a backup copy of the original lilo. To apply changes, run the following command you will need to be SuperUser :.

If you see anything other than this, something went wrong. Go back through your lilo. Some anti-virus programs will see LILO as a virus!



0コメント

  • 1000 / 1000