Table of Contents: 1, Boot bootloader Summary
2, the installation and configuration of Lilo
3. Installation and configuration of grub
4. Switch between two boot programs
5. Attached: Lilo settings when compiling the kernel
1. Start Boot Program Summary
2, the installation and configuration of Lilo
3. Installation and configuration of grub
4. Switch between two boot programs
5. Attached: Lilo settings when compiling the kernel
One of the files associated with Lilo is:/etc/lilo.conf (this file is generated by the Liloconfig Directive).
In the case of dual systems, the execution lilo.conf does not seem to detect my win7 system, and after compiling the kernel, it only recognizes two cores. Here are the steps to add the original window startup item.
5.1 View your device name
sudo fdisk-l
Some of my results are as follows:
device start start end sector Size Id type/DEV/SDA1 *4096 94380031 9437593645G7hpfs/ntfs/ExFAT/dev/sda294384126 488396799 394012674 187. 9G F W95 Extension (LBA)/dev/sda594384128 241180671 14679654470G7hpfs/ntfs/ExFAT/dev/sda6241184768 304099327 6291456030G7hpfs/ntfs/ExFAT/dev/sda7304099392 346042431 4194304020G7hpfs/ntfs/ExFAT/dev/sda8346044416 366061567 20017152 9.6G theLinux/dev/sda9366063616 378073087 12009472 5.7G theLinux Switching/Solaris/dev/sda10378075136 381071359 2996224 1.4G theLinux/dev/sda11381073408 429117439 48044032 A.9G theLinux/dev/sda12429119488 433121279 4001792 1.9G theLinux/dev/sda13433123328 464371711 31248384 -.9G theLinux/dev/sda14464373760 480387071 16013312 7.7G theLinux/dev/sda15480389120 484390911 4001792 1.9G theLinux/dev/sda16484392960 488396799 4003840 1.9G theLinux
When I install dual system, it is under the Win7 of 240G solid-state drive, use partition tool Diskgenius to draw 71G for idle, then use U-disk to start the way of installing ubuntu16.04, in order to customize the partitioning way, in free space to the different directory partition.
Above/dev/sda8 when the Linux root directory is mounted on the area,/DEV/SDA1 is the C-Zone of my window.
5.2 Adding window Startup items to/etc/lilo.conf
At the end of the file add:
=/dev/sda1 "win7-64bit" =/DEV/SDA
Note: The Other:linux system boot entry uses an image, while other systems use other, followed by the area where the system started
Label: Here is the name displayed in the Launcher panel, the length cannot exceed 16 characters
Table: The partition table is located on the external device, my hard drive is a solid state drive, said that the partition is the Sdax name, table to fill, is to remove the number after the device name, I here is the corresponding/DEV/SDA
If it's a normal hard drive, I'm not sure if it's Hdax or HdX, it's the name of the number that was placed in the blanks:/dev/hda or/DEV/HD
After you add it, save it and go to the next step.
5.3 Re-execution
Sudo
Let the result change take effect. If there is an error, continue to modify it. (Syntax reference: Man lilo.conf)
See the list of results listed containing your window that proves successful, reboot to see window options.
linux--boot loader Lilo and Grub