I admit that I am so greedy. since I installed fedora16 on my computer and turned it into a dual system, I was actually interested in opensuse. as a result, I was eager to install a three-system game, but in fact, I don't know much about linux at all. as a result, when installing opensuse grub, we will directly install the grub... I admit that I am so greedy. since I installed fedora16 on my computer and turned it into a dual system, I was actually interested in opensuse. as a result, I was eager to install a three-system game, but in fact, I don't know much about linux. as a result, during the installation, the grub boot of opensuse was directly installed on the MBR, and the grub2 boot of the original fedora16 was overwritten, as a result, the computer could not recognize fedora16, and opensuse could not recognize my wireless network card. the whole problem was solved.
Nowadays, children like to install systems, such as win7 + fedora. it is quite simple to install win7 Ora first and then win 7. This article also applies this method.
If LiveCD does not know why, please baidu
If you do not know how to create LiveCD, Please Baidu
If you do not know how to use LiveCD, Please Baidu
[To take care of some young people who just want to play fedora, save your time on Baidu]
Step 1: http://fedoraproject.org/download more than 600 M livecd image file, the home page is 32-bit, you can click more to download 64-bit
Step 2: https://fedorahosted.org/liveusb-creator/ download liveusb production software, official.
Step 3: Prepare a USB flash drive. (it doesn't matter if there is data in it. it's not like pe in the production process. it Will format you and keep the original data ),
Use the software to select the ISO you just downloaded, and then select your USB drive letter, and persistent storage to select 100 MB (this is equivalent
In Livecd, the/home mount point does not need to be written into the USB flash drive.) click "creat" to complete the creation.
Step 4: adjust the boot sequence of your bios or the notebook now supports quick boot. select the USB flash drive to start it.
Start fedora 16 will appear after startup. press enter to enter
[Some USB flash drives cannot be started after being created using the official windows liveusb creator. try another USB flash drive. Or
Http://unetbootin.sourceforge.net/download this software for trial]
[English is used by default. if your English is poor, click the live user name in the upper-right corner of the screen, select system settings, and
Select region and language. in the displayed dialog box, select chinese. Click the user name, log out,
After logging out, you will be asked if you want to change the name of the folder under home. I suggest you do not make it Chinese, because it is troublesome in shell]
After LiveCD is started, you should first specify the partition where your fedora is installed. the current hard disks should all be sata.
/Dev/sdax, x is a number, 1 ~ 4 indicates the primary partition, and 5 is the logical partition. If you are using an IDE hard disk in a writable environment, it corresponds to/dev/hdax.
Open your Disk utility or Disk unity and find the partition where the fedora installation is located. I am on sda10, so let's take this description below ..
Su
Mount-t ext4-o rw/dev/sda10/media
Mount the installation partition of fedora to the current LiveCD file system. if you are too lazy, for example, me :), double-click it in the file manager.
Next, the partition will be mounted under/media/_ FEDORA _ ***.
Originally, the fedora installed on the hard disk only hangs the file directory. there is no hardware resource, and nothing can be done. it can only be used to copy/paste data,
Now, give the resource of the current system to him.
Su
Mount-t proc none/media/proc
Mount-o bind/dev/media/dev
Mount-o bind/sys/media/sys
Mount-t devpts/media/dev/pts
In particular, do not write/dev as/dev /.
/Dev is not a block device
After mounting, use the chroot command to switch to the original fedora.
Su
Chroot/media
Grub2-install/dev/sda
Of course, the above command indicates that grub2 is installed on the hard disk MBR for recovery boot. if you want to install it in the current partition for other software to boot, it should be
Grub2-install/dev/sda10
OK
Exit
Umount/media/proc
Umount/media/dev/pts
Umount/media/sys
Umount/media/dev
Umount/media
Reboot
Of course, the above-mentioned grub is the original grub, and opensuse is gone. In fact, grub2 is very powerful and can automatically identify n Systems. you only need to regenerate the configuration.
File.
Su
Grub2-mkconfig-o/boot/grub2/grub. cfg
Reboot
Congratulations
I encountered some problems when I was helping others fix them today. I 'd like to write them down and share them.
First of all: the partition of this computer is not a simple one/partition I wrote above, using LVM and a boot partition (sda8), then it will be mounted separately during mounting. In LVM, there is a root logical volume group and a swap volume Group, located in/dev/mapper/vg_fedora_root, and/dev/mapper/vg_fedora_swap (this name is defined by yourself, if you use the default system partition for installation, the name is different if it is not manual)
Su
Mount-o rw/dev/mapper/vg_fedora_root/media
Mount-o rw/dev/sda8/media/boot
Then mount the write resource.
Second: An error occurred while executing the grub2-install
[Root @ Fedora sunhao] # grub2-install/dev/sda
/Sbin/grub2-setup: warn: Your embedding area is unusually small. core. img won't fit in it ..
/Sbin/grub2-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged ..
/Sbin/grub2-setup: error: will not proceed with blocklists.
The embedding area between mbr and sda1 is too small. it should be the default value of 63. if it is 32, this problem will occur, but I run fdisk-lu, the computer is already 63, for unknown reasons.
Google did not find the solution or the installation was not possible. later I saw this usage on the wiki and forced installation.
Grub2-install -- force/dev/sda
It can be installed and started successfully ~
I just want to promote the senior technical blog and share it with friends who like linux. I hope you can support it.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service