Tag Archives: No Caching mode page found

Solution to the problem of no caching mode page found when installing CentOS 7

Geeks, please accept the hero post of 2021 Microsoft x Intel hacking contest>>>

After the image of CentOS 7 is engraved on the USB flash disk, when installing to the server, there are two startup options when using the USB flash disk. One is UEFI startup option, and the other is the default startup option. If you do not use UEFI to install, there is no problem. If you choose UEFI to install the system, the following prompt will appear when booting the system:

  [sdb] No Caching mode page found

  [sdb] Assuming drive cache:write through

  ….
  Could not boot
  /dev/root does not exist

Then the command line is stuck here. Now you just need to wait patiently. After a while, you will continue to scroll error warnings. If you continue to wait, then the command line input interface will come out. At this time, you can enter the following commands:

ls /dev/sd*

After entering the command, all the storage devices will be listed. At this time, generally, the first hard disk is SDA. If there are multiple partitions, they are sda1, sda2 and so on. If there are two hard disks, they are SDB. Generally, the U disk is the last number. If there is one hard disk, then the U disk is SDB. If there are two hard disks, then the U disk is SDC, Generally, the USB flash disk has SDC and sdc4 options. SDC belongs to the storage of USB flash disk, and sdc4 is the partition where the image is located. Generally, there is no problem. If there is a problem, it is better to configure it several times. Next, enter the command reboot to restart the computer. In the installation interface, do not choose to install first. At this time, press the e key to enter the editing interface, Move the cursor to modify as follows:

In the second line, the default is: vmlinuz initrd = initrd.img inst.stage2 = HD: label = CentOS/x207/x20x86_ 64 rd.live.check quiet

Change this line to: vmlinuz initrd = initrd. Img inst.stage2 = HD/dev/sdc4:/quiet

That is to change the content between HD: and quiet to the location of the U disk image. In this way, it should be written as/dev/sdc4:/

Then press the CTRL + X key according to the prompt to start the installation. Now you can enter the installation interface normally

One more thing to add about Zoning:

If you choose UEFI to boot, in addition to the 200-500m boot partition, swap partition and root partition, you should also divide it into a/boot/EFI partition with the size of 164M. Therefore, it is recommended to divide the root partition finally and give all the space to the root partition, so as to maximize the use of Linux space

If you choose a normal boot, which is essentially a BIOS boot, then there is no/boot/EFI partition, but a BIOS boot partition, which needs 1m

During the installation process, the above boot partition system will prompt you to create it. If you are not clear, you can install it according to the system prompts

In server installation, it is recommended to install the infrastructure server option, which is slightly more complete than the minimum installation command

This article is reproduced to: https://www.cnblogs.com/freeweb/p/5213877.html