Get the App
SLTechnology News&Howtos  ›  Servers  › 

How can Windows7 coexist with Ubuntu

Shulou Source: shulou.com Published: 2022-06-01 06:25:32 10月03日 Update

This article mainly shows you "how can Windows7 and Ubuntu achieve coexistence", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how can Windows7 and Ubuntu achieve coexistence" this article.

How do you use grub to boot Fedora12 (or Ubuntu)?

Method A, a master will tell you, with what command, when it comes to orders, we rookies really have a big head, or engraved to the simple (I do not like engraving ah! ).

Method B, a smart person will tell you that it doesn't matter if there is no boot.ini in Windows 7, we will add one ourselves, fill in a grldr.mbr to the root directory of disk C, and add a grldr.mbr= option to boot.ini. This method is really clever! After reboot, select Ubuntu to enter the simulated Ubuntu livecd, and then, cd / enter, sudo umount-l isodevice enter, you can use the CD-livecd method to install.

There are two drawbacks in this method: 1 when boot.ini grldr grldr.mbr menu.lst is added to the C disk of Magi Windows 7, you can only choose the Fedora12 (or Ubuntu) option, enter the livecd of the simulated Fedora12 (or Ubuntu), select the Windows 7 option, and cannot enter Windows 7 (I am like this, I don't know what other people do? ) 2, after installing Ubuntu, rejoin the Windows 7 startup item.

Refer to the boot process of Windows 7 and Windows XP.

How can the defect of method B be solved? This is a smart thing to do, but can there be a better way?

I finally came up with the third method, the method of changing beams for pillars. And the experiment is successful. Now that win7 boots by default bootmgr, why don't we rename grldr to bootmgr and let win7 find the fake bootmgr, which goes directly to menu.lst, so that we can boot the livecd of Linux by writing a menu.lst simulation?

Yes, of course.

However, how to turn on Windows 7? Is Windows 7 powered on through bootmgr?

Don't worry, listen to me carefully. Let's change the name of the original bootmgr of win7's C disk to: bootmg8. The changed name of bootmgr is still looking for Windows 7 by default, just like the renamed grldr is still the default menu.lst. Then, by adding a bootmg8 startup item to the menu.lst, we can start Windows 7 from bootmg8 and write here. Do you understand? Attach a win7 boot diagram for your reference:

The contents of disk C menu.lst of grub boot Fedora 12 liveCD under Windows 7 are as follows:

# (1) Windows title [1] launch Windows 7 find-- set-root / bootmg8 chainloader / bootmg8 boot title [2] launch Fedora 12 liveCD on / dev/sda7 (enter here) root (hd0,6) kernel / LiveOS/vmlinuz0 root=/dev/sda7 ro liveimg rhgb initrd / LiveOS/initrd0.img title [3] launch Ubuntu9.10 live on / dev/sda1 (enter here) root (hd0,0) kernel (hd0,0) / vmlinuz boot=casper noacpi iso-scan/filename=/karmic-desktop -amd64.iso ro quiet splash-- label check live-install initrd (hd0,0) / initrd.lz above are all the contents of the article "how can Windows7 and Ubuntu coexist" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Methods content cleverness articles names commands defects references learning help success changing pillars but no it doesn't matter two practices CD-ROMs can be passed easy to understand yes Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Shulou Technology OPPO Reno Huawei Shulou Information