How to pin a USB drive letter

Source: Internet
Author: User
Tags ini

We re-install the system into the WinPE system, in different computers, the drive letter is different, and some computer USB drive letter is C, which gives us the system to bring a lot of inconvenience, so, fixed USB drive letter is necessary. Now for you to introduce the fixed USB drive letter two methods, provided that the WinPE system starts to recognize your USB flash drive, if the WinPE system does not recognize your USB flash drive, you can use show command in the INI file to assign a drive letter to the USB stick.

  Method One:

1, in a certain location of the U disk to place an INI file, temporarily named "Changeusb.ini", placed in the root directory of the U disk, INI file only need two lines (red for comment):

SUBJ%curdrv%//delete the drive letter of the original USB drive

Show R:1,u//to the U disk new allocation drive letter for you:

2, add a line of load command in the kernel configuration file of WinPE, this line load command is recommended to fix the USB drive, the "Changeusb.ini" file on the USB flash drive is automatically loaded by the leader of the load command.

3, this method is applicable to the WinPE system startup can identify the situation of the U disk, if the WinPE system does not recognize your USB flash drive, you can use the PECMD.EXE Show command to assign the drive letter to the U disk.

4. If your USB drive already has INI file, you can merge these two lines into the existing INI file.

 Method Two:

Take advantage of the init command's u parameter.

1, the init command to the kernel configuration file Pecmd.ini of WinPE plus u parameter;

2. Add the following two lines of code in the appropriate place after executing the init command (Red is commented):

TEAM subj%usb%|show r:1,u//delete the drive letter of the original USB drive and reassign the drive letter to U

TEAM ENVI $USB =u:|envi $USB 1=u://Reset two environment variables related to USB drive letter

3, method Two principle and method one is consistent, the advantage is not on the U disk to place the INI file, the results obtained are the same as the method.

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.