Two ways to prevent disk space from entering PE after u disk

Source: Internet
Author: User
Tags ini

As shown in the image above to enter the WinPE system to open My computer to see the screen, we can find that the U disk has been occupied by the C disk, and the system disk (that is, the usual C-disk) of the letter is D. Today you start a small set to teach you how to prevent the U disk from consuming other disk letter.

 Method One:

1. Create a new TXT text document in the U disk, and then enter the following two lines of characters in the document (the red word on the right is a comment and no input is required)

SUBJ%curdrv%//Delete the original USB disk letter

Show R:1,u//u disk new allocation letter for u:

2. Rename the text document to "Changeusb.ini" (the suffix must be. INI),

3. Open My Computer under the PE system, locate and open the Pecmd.ini file (this profile can usually be found in the SYSTEM32 folder). Add a line of the load command to the command statement and automatically load the "Changeusb.ini" file you have built in the U disk by using the leader of the load command. With the command:

The load directory Changeusb.ini, where the directory represents the storage path of the Changeusb.ini file, which is stored directly on the U disk instead of in a folder on the U disk, so the command entered is: Load removable disk (G:) Changeusb.ini

 Method two: Using the U parameter of the init command

1. Enter the WinPE system to open My computer, find the WinPE kernel configuration file Pecmd.ini, open it and in the init command plus u parameters;

2. After the execution of the Inti command, enter the following two lines of command arguments (the red word on the right is a comment, no input is required)

Team SUBJ%usb%|show r:1,u//delete original U disk letter and reassign the letter to U

Team ENVI $USB =u:|envi $USB 1=u://Reset two environment variables related to U disk letter

Smart you see comparison of the above two methods, may be compared to which one will be relatively simple, in fact, the two methods used by the same principle, but must be in the WinPE system can identify u disk in the case can use OH.

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.