Poncho

Ⓐ&♥

Update Lenovo Bios on Linux

Just put the extracted Bios Update utilities into the WinPE 4.0 64-bit Image and create a bootable usbstick. Then, from the admin console launch:

InsydeFlashx64.exe <BiosUpdate>.ROM

To extract the bios:

innoextract <Version>.exe

Command Comparison:

DOS Command UNIX or Bash Command Action
DIR ls -l List directory contents
TREE ls -R List directory recursivly
CD cd Change directory
CHDIR pwd Display directory location
TYPE cat Dump contents of a file to users screen
MORE more Pipe output a single page at a time
HELP man Online manuals
EXIT exit Exit a shell
WIN startx Start X-Windows.
REBOOT shutdown -r now Reboot system.

WinPE: Create USB Bootable drive

The default installation runs from memory (RAM disk), so you can remove the drive while Windows PE is running.

Install the Windows ADK

Install the following features from the Windows Assessment and Deployment Kit (Windows ADK): - Deployment Tools: includes the Deployment and Imaging Tools Environment. - Windows Preinstallation Environment: includes the files used to install Windows PE.

Install Windows PE

  1. Start the Deployment and Imaging Tools Environment as an administrator.

2. Create a working copy of the Windows PE files. Specify either x86, amd64, or arm:

copype amd64 C:\WinPE_amd64

3. Mount the Windows PE boot image

Dism /Mount-Image /ImageFile:"C:\WinPE_amd64\media\sources\boot.wim" /index:1 /MountDir:"C:\WinPE_amd64\mount"

4. Create an app directory inside the mounted Windows PE image.

md "C:\WinPE_amd64\mount\windows\<MyApp>"

5. Copy the necessary app files to the local Windows PE directory.

Xcopy C:\<MyApp> "C:\WinPE_amd64\mount\windows\<MyApp>"

6. Unmount the Windows PE image.

Dism /Unmount-Image /MountDir:"C:\WinPE_amd64\mount" /commit

7. Create bootable media, such as a USB flash drive.

MakeWinPEMedia /UFD C:\WinPE_amd64 F:

File creation error

C:\winpe_amd64>MakeWinPEMedia /UFD C:\winpe_amd64 U:
WARNING, ALL DATA ON DISK DRIVE B: WILL BE LOST!
Proceed with Format [Y,N]?Y
Formatting U:...
Setting the boot code on U:...
Copying files to U:...
File creation error - The parameter is incorrect.
Unable to create directory - U:\
ERROR: Failed to copy files to U:\.
C:\winpe_amd64>

Open MakeWinPEMedia.cmd using notepad:

notepad "C:\Program Files\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\MakeWinPEMedia.cmd"

Replace:

xcopy /herky "%WORKINGDIR%\%TEMPL%" "%DEST%\" >NUL

with

xcopy /herky "%WORKINGDIR%\%TEMPL%\*.*" "%DEST%\*.*" >NUL

Source: