A simple solution for problems related to dracut when centos7.1 is installed on a USB flash drive

Source: Internet
Author: User

A simple solution for problems related to dracut when centos7.1 is installed on a USB flash drive

Today, I was free, so I took the time to recall what kind of pitfall I encountered when I installed the Nanjing specialty CENTOS7 on a USB flash drive.

When the USB flash drive system became used to it, the Chinese cabbage tool was used to engrave a CentOS 7.1 minimun ISO image to the USB flash drive. This started with a nightmare.

If someone, like me, thinks it should be done after the plug-in disk is installed just like WINDOWS, a lot of errors related to dracut will be reported, and after a few minutes, the figure # Behind dracut is like this:

The following solutions are available on the Internet:

1) In command mode, check which sdaXX devices are available under/dev, and change the repo = hd:/dev/sdb1 of the startup command one by one. I tried four devices, not yet. I have vomited blood. Give up!
2) how to display the Mount list in vmlinuz initrd!

After four hours of hard work, I was nearly desperate. When I was trying to install the last dial on the CD, I suddenly felt strange that the original default command did not specify a device. How can I install it? Then, let's take a look:

In the installation menu, select Install CentOSLinux7 and then press e to modify it. (If the disc is installed by tab, This is a pitfall)

When you see inst. stage2 = hd: LABEL = CentOS \ x207 \ x20x86_64, you can see it! It turns out to be installed according to the device LABEL!

This name is a transcoding identifier, that is, find a device labeled as "CentOS 7 x86_64", and then look at the LABEL of the USB flash drive: cabbage USB flash drive! Tian Sha's tool has changed the LABEL! Therefore, you can directly change the USB flash drive to CentOS 7 x86_64, insert it, restart it, and select installation. The installation graphic interface is displayed immediately.

To sum up one sentence: to install CentOS7 on a USB flash drive, ensure that the volume is marked as "CentOS 7 x86_64 "! If not, modify the volume label! This is simple, and the system will automatically find it. Otherwise, SDA will try it one by one. Unless it is a new hard disk, it will cause you to vomit blood!

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.