CN108776596B - Enhancement method and system based on Windows To Go - Google Patents

Enhancement method and system based on Windows To Go Download PDF

Info

Publication number
CN108776596B
CN108776596B CN201810613908.8A CN201810613908A CN108776596B CN 108776596 B CN108776596 B CN 108776596B CN 201810613908 A CN201810613908 A CN 201810613908A CN 108776596 B CN108776596 B CN 108776596B
Authority
CN
China
Prior art keywords
windows
wim
file
image file
mobile storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810613908.8A
Other languages
Chinese (zh)
Other versions
CN108776596A (en
Inventor
王宇鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Aomei Technology Co ltd
Original Assignee
Chengdu Aomei Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Aomei Technology Co ltd filed Critical Chengdu Aomei Technology Co ltd
Priority to CN201810613908.8A priority Critical patent/CN108776596B/en
Publication of CN108776596A publication Critical patent/CN108776596A/en
Application granted granted Critical
Publication of CN108776596B publication Critical patent/CN108776596B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • G06F9/441Multiboot arrangements, i.e. selecting an operating system to be loaded

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses an enhancement method and system based on Windows To Go, which comprises the following steps: extracting a WIM system image file from ISO and ESD system image files; identifying an effective Windows system version type from the WIM system image file; formatting the USB mobile storage device; installing the identified Windows system on the formatted USB mobile storage device; configuring the USB mobile storage device to start the bootstrap information. The invention ensures that the capacity of the USB mobile storage equipment can support the Windows To Go function on Windows 8/8.1 and Windows 10 systems, Windows7 and above systems and Windows Server 2008R 2 and above Server systems when the capacity is less than 32 GB.

Description

Enhancement method and system based on Windows To Go
Technical Field
The invention belongs To the field of mobile Windows systems in the field of computers, and particularly relates To a Windows To Go-based enhancement method and system.
Background
Microsoft corporation has promoted a new generation of PC desktop system Windows8 in 2012, Microsoft has promoted a new function called Windows To Go while promoting Windows8, Windows To Go is an enterprise function of Windows 8/8.1, Windows 10, is built in Windows8 enterprise edition, education edition and professional edition, for the computer meeting the Windows8 hardware requirement, Windows To Go can make Windows8, Windows8.1, Windows 10 start and run from USB mobile storage device, it is not necessary To consider the operating system running on the computer. However, the capacity of the USB mobile storage device supported by the Windows To Go is at least 32GB, and the Windows Server version system does not have the function of the Windows To Go and cannot support the Windows7 To start and run from the USB mobile storage device.
Disclosure of Invention
In view of various restrictions of the Windows system on Windows To Go, it is necessary To provide an enhanced method for Windows To Go, which enables the USB mobile storage device To support the Windows To Go function even when the capacity of the USB mobile storage device is smaller than 32 GB; not only can the Windows To Go function be supported on the Windows 8/8.1 and Windows 10 systems, but also the Windows7 and above systems and the Windows Server 2008R 2 and above Server systems can support the Windows To Go function.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
a Windows To Go-based enhancement method is characterized in that: the method comprises the following steps:
step 1, extracting WIM system image files from ISO and ESD system image files;
step 2, identifying an effective Windows system version type from the WIM system image file;
step 3, formatting the USB mobile storage device;
step 4, installing the Windows system identified in the step 2 on the formatted USB mobile storage device;
and 5, configuring boot information of the USB mobile storage device.
The step 1 specifically comprises the following steps:
(1) the ISO system image file is decomposed into a WIM or ESD system image file through a 7z decompression function module;
(2) the ESD system image file is decrypted to obtain a WIM system image file through wimlib-imagex;
(3) and extracting the decompressed WIM system image file from the ISO system image file, and extracting the decrypted WIM system image file from the ESD system image file.
The step 2 specifically comprises the following steps:
(1) reading the number of Windows system images in the WIM system image file through a Windows image API interface WIMGetiImageCount;
(2) reading mirror image information of each Windows system mirror image through a Windows mirror image API interface WIMGetiImageinformation;
(3) windows7 and above systems and Windows Server 2008R 2 and above Server systems in the WIM image file are identified through the image information of the Windows system image.
The step 3 specifically comprises the following steps:
(1) judging whether the capacity of the USB mobile storage equipment is larger than or equal to 8 GB;
(2) judging whether the USB mobile storage equipment has partitions or not, if not, automatically creating partitions of the capacity of the USB mobile storage equipment, and if other partitions exist on the USB, emptying the USB;
(3) judging whether the partition capacity of the USB equipment needing To be provided with the Windows To Go system is larger than or equal To 8 GB;
(4) and calling an NTFS file system module To create an NTFS file system required by Windows To Go at the specified position of the USB, wherein the file system is used for storing Windows system files.
The step 4 specifically comprises the following steps:
(1) determining a Windows system version needing to be installed;
(2) determining a partition needing to be installed on the USB mobile storage device;
(3) and (3) installing the selected Windows system version into the NTFS file system created in the step (3) through a Windows mirror image API interface WIMApImage.
The step 5 specifically comprises the following steps:
(1) updating the information of the boot configuration file in the Windows system;
(2) updating boot codes of MBR sectors of the USB mobile storage device;
(3) and setting a target partition for installing the Windows system as an active partition.
The invention also provides an enhancement system based on Windows To Go, which is characterized in that: the system comprises a WIM system image file extraction module, a Windows system image management module, a disk read-write module, a file system module and a guide repair module;
the WIM system image file extraction module is used for extracting WIM system image files from ISO system image files and ESD system image files;
the Windows system image management module is responsible for identifying the version type of the Windows system in the Windows system image file, acquiring the number of the systems in the WIM image file, image information of the systems in the WIM and installing Windows from the WIM into the USB equipment;
the disk read-write module is responsible for the read-write operation of the sector;
the file system module is responsible for formatting the target partition into an NTFS partition;
the boot repair module is responsible for ensuring the configuration, reconstruction and correctness of the MBR sector boot code and the boot in the Windows system of the USB mobile storage device.
Compared with the prior art, the invention has the following beneficial effects:
compared with the prior art, the method and the system provided by the invention increase and widen the application system range of the Windows To Go function, and not only can support the Windows To Go function on Windows 8/8.1 and Windows 10 systems, but also can support the Windows To Go function on Windows7 and above systems and Windows Server 2008R 2 and above Server systems. Meanwhile, the memory of the mobile hard disk can be reduced to 8GB, and compared with 32GB in the prior art, the requirement on the memory capacity of the hard disk is greatly reduced.
Drawings
FIG. 1 is a process flow diagram of the present invention.
Detailed Description
The present invention will be further described with reference to the following examples, which are intended to illustrate only some, but not all, of the embodiments of the present invention. Based on the embodiments of the present invention, other embodiments used by those skilled in the art without any creative effort belong to the protection scope of the present invention.
In view of various restrictions of the Windows To Go by the Windows system, a method and a system supporting the capacity of the USB mobile storage device To be less than 32GB and simultaneously supporting the Windows To Go function on Windows7 and above systems and Windows Server 2008R 2 and above Server systems are provided.
The specific method comprises the following steps:
step 1, selecting a partition of a USB mobile storage device needing to install a Windows system;
step 2, selecting a Windows system image file;
step 3, judging whether the file is a WIM system image file, if so, entering step 4, if not, extracting the WIM system image file, then selecting a default Windows system image, and finally entering step 6;
step 4, identifying the type of the Windows system;
step 5, selecting a Windows system type;
step 6, installing the Windows system to the USB mobile storage device;
and 7, updating the boot information of the USB mobile storage device.
In step 3, the WIM system image file is extracted from the ISO and ESD system image files.
In step 4, the effective Windows system version type is identified from the WIM system image file.
Before proceeding to step 6, the USB mobile storage device is formatted.
The specific description of extracting the WIM system image file from the ISO and ESD system image files is as follows:
there are generally three types of Windows system image files: ISO file type, ESD file type, WIM file type. The ISO file type is an international standard optical disc file system format, the ESD file type is actually a file type encrypted by a WIM file type, but only a WIM system image file can obtain information related to an image through a Windows image API interface, so that a required WIM file needs to be extracted from ISO and ESD files in advance, and the method specifically includes the following steps:
(1) the ISO system image file can be decomposed into a WIM or ESD system image file through a 7z decompression function module;
(2) the ESD system image file can be decrypted to obtain a WIM system image file through wimlib-imagex;
identifying valid Windows system version types from the WIM system image file is specified as follows:
in general, a WIM system image file includes multiple versions of Windows system images, each Windows system image has an XML structure to store information of each version of system, the information structure can be acquired through a Windows image API interface, and the version type of the Windows system can be identified through the information structure, and some simple information, such as index, name, description, size, etc., can be acquired through a dis tool carried by the Windows system. The method for identifying the effective Windows system version type from the WIM system image file comprises the following steps:
(1) reading the number of Windows system images in the WIM system image file through a Windows image API interface WIMGetiImageCount;
(2) reading mirror image information of each Windows system mirror image through a Windows mirror image API interface WIMGetiImageinformation, wherein the information comprises information such as system version type, size and the like;
(3) windows7 and above systems and Windows Server 2008R 2 and above Server systems in the WIM image file are identified through Windows system image information.
The formatted USB mobile storage device is specifically described as follows:
installing the Windows system requires an NTFS partition with a large enough space, so that a USB mobile storage device with a large enough size is required, and the Windows system can be completely installed only by generally requiring at least 8GB of the capacity of the USB mobile storage device, where the formatting of the USB mobile storage device includes the following steps:
(1) judging whether the capacity of the USB mobile storage equipment is larger than or equal to 8 GB;
(2) judging whether the USB mobile storage equipment has partitions or not, if not, automatically creating partitions of the capacity of the USB mobile storage equipment, and if other partitions exist on the USB, emptying the USB;
(3) judging whether the partition capacity of the USB equipment needing To be provided with the Windows To Go system is larger than or equal To 8 GB;
(4) and calling an NTFS file system module To create an NTFS file system required by Windows To Go at the specified position of the USB, wherein the file system is used for storing Windows system files.
The specific description of installing the Windows system to the USB mobile storage device is as follows:
in general, a Windows system image file includes multiple versions of a Windows system, for example, one Windows7 image file may include versions of a home common version, a home advanced version, a professional version, an enterprise version, a flagship version, and the like, so that it is necessary to select one version from the versions identified in the Windows system image file to install the version in the USB mobile storage device, and installing the system in the WIM file in the USB device includes the following steps:
(1) determining a Windows system version needing to be installed;
(2) determining a partition needing to be installed on the USB mobile storage device;
(3) and (3) installing the selected Windows system version into the NTFS file system created in the step (3) through a Windows mirror image API interface WIMApImage.
The specific description of the boot information for configuring the USB mobile storage device is as follows:
windows has two boot modes, one is Legacy mode, another is UEFI mode, Legacy boot mode flow: firstly, executing a boot code in an MBR sector to search a 0x80 activated partition mark in a partition table, then finding the initial position of an active partition through the activated partition mark, then executing the boot code of the DBR of the active partition, and finally loading and starting a system according to information in a boot file; UEFI guiding mode flow: firstly, finding an ESP partition through a GPT partition table, then loading and executing an EFI \ Mircsoft \ Boot \ bootmgfw.efi file under the ESP partition, loading a Boot configuration file BCD and booting a system according To the configuration file, and reconstructing a Windows To Go system Boot flow as follows:
(1) updating the information of the boot configuration file in the Windows system;
(2) updating boot codes of MBR sectors of the USB mobile storage device;
(3) and setting a target partition for installing the Windows system as an active partition.
The invention also provides an enhancement system based on Windows To Go, which comprises the following modules:
(1) WIM system image file extraction module: the function module is mainly responsible for extracting WIM system image files from ISO system image files and ESD system image files;
(2) windows system mirror image management module: the function module is mainly responsible for identifying the version type of the Windows system in the Windows system image file, obtaining the number of the systems in the WIM image file, the image information of the systems in the WIM and installing Windows from the WIM into the USB device;
(3) a disk read-write module: the functional module is mainly responsible for the reading and writing operation of the sector;
(4) a file system module: the module is mainly responsible for formatting the target partition into an NTFS partition;
(5) a guiding and repairing module: the module is mainly responsible for ensuring the configuration, reconstruction and correctness of MBR sector boot codes and boots in Windows systems of the USB mobile storage device.

Claims (4)

1. A Windows To Go-based enhancement method is characterized in that: the method comprises the following steps:
step 1, extracting WIM system image files from ISO and ESD system image files;
step 2, identifying an effective Windows system version type from the WIM system image file;
the step 2 specifically comprises the following steps:
(1) reading the number of Windows system images in the WIM system image file through a Windows image API interface WIMGetiImageCount;
(2) reading mirror image information of each Windows system mirror image through a Windows mirror image API interface WIMGetiImageinformation;
(3) identifying Windows7 and above systems and Windows Server 2008R 2 and above Server systems in the WIM image file through image information of the Windows system image;
step 3, formatting the USB mobile storage device;
the step 3 specifically comprises the following steps:
(1) judging whether the capacity of the USB mobile storage equipment is larger than or equal to 8 GB;
(2) judging whether the USB mobile storage equipment has partitions or not, if not, automatically creating partitions of the capacity of the USB mobile storage equipment, and if other partitions exist on the USB, emptying the USB;
(3) judging whether the partition capacity of the USB equipment needing To be provided with the Windows To Go system is larger than or equal To 8 GB;
(4) calling an NTFS file system module To create an NTFS file system required by Windows To Go at the specified position of the USB, wherein the file system is used for storing Windows system files;
step 4, installing the Windows system identified in the step 2 on the formatted USB mobile storage device;
step 5, configuring USB mobile storage equipment to start guide information;
the step 5 specifically comprises the following steps:
(1) updating the information of the boot configuration file in the Windows system;
(2) updating boot codes of MBR sectors of the USB mobile storage device;
(3) and setting a target partition for installing the Windows system as an active partition.
2. The Windows To Go based enhancement method of claim 1, wherein: the step 1 specifically comprises the following steps:
(1) the ISO system image file is decomposed into a WIM or ESD system image file through a 7z decompression function module;
(2) the ESD system image file is decrypted to obtain a WIM system image file through wimlib-imagex;
(3) and extracting the decompressed WIM system image file from the ISO system image file, and extracting the decrypted WIM system image file from the ESD system image file.
3. The Windows To Go based enhancement method of claim 1, wherein: the step 4 specifically comprises the following steps:
(1) determining a Windows system version needing to be installed;
(2) determining a partition needing to be installed on the USB mobile storage device;
(3) and (3) installing the selected Windows system version into the NTFS file system created in the step (3) through a Windows mirror image API interface WIMApImage.
4. An enhancement system based on Windows To Go is characterized in that: the system comprises a WIM system image file extraction module, a Windows system image management module, a disk read-write module, a file system module and a guide repair module;
the WIM system image file extraction module is used for extracting WIM system image files from ISO system image files and ESD system image files;
the Windows system image management module is responsible for identifying the version type of the Windows system in the Windows system image file, acquiring the number of the systems in the WIM image file, image information of the systems in the WIM and installing Windows from the WIM into the USB equipment;
the disk read-write module is responsible for the read-write operation of the sector;
the file system module is responsible for formatting the target partition into an NTFS partition;
the boot repair module is responsible for ensuring the configuration, reconstruction and correctness of the MBR sector boot code and the boot in the Windows system of the USB mobile storage device.
CN201810613908.8A 2018-06-14 2018-06-14 Enhancement method and system based on Windows To Go Active CN108776596B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810613908.8A CN108776596B (en) 2018-06-14 2018-06-14 Enhancement method and system based on Windows To Go

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810613908.8A CN108776596B (en) 2018-06-14 2018-06-14 Enhancement method and system based on Windows To Go

Publications (2)

Publication Number Publication Date
CN108776596A CN108776596A (en) 2018-11-09
CN108776596B true CN108776596B (en) 2021-05-18

Family

ID=64026162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810613908.8A Active CN108776596B (en) 2018-06-14 2018-06-14 Enhancement method and system based on Windows To Go

Country Status (1)

Country Link
CN (1) CN108776596B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866324A (en) * 2015-06-11 2015-08-26 苏州大学张家港工业技术研究院 Method for constructing portable operating system and portable memorizer
CN106502739A (en) * 2016-10-31 2017-03-15 北京深之度科技有限公司 Method, device and the computing device that boot disk is made using movable storage device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9280482B2 (en) * 2012-12-13 2016-03-08 Western Digital Technologies, Inc. Methods and systems for provisioning a bootable image on to an external drive

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104866324A (en) * 2015-06-11 2015-08-26 苏州大学张家港工业技术研究院 Method for constructing portable operating system and portable memorizer
CN106502739A (en) * 2016-10-31 2017-03-15 北京深之度科技有限公司 Method, device and the computing device that boot disk is made using movable storage device

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
《Design of Reusable Software for USB Host Driver in Embedded System》;Gaohua Liao et al.;《 2010 International Conference on Computing, Control and Industrial Engineering》;20100628;全文 *
《Win8系统轻松装进移动硬盘》;瞳孔里的阳光;《计算机与网络》;20130630;第39卷(第12期);全文 *
《把Win10装入随身U盘》;友文;《电脑知识与技术》;20171231;全文 *

Also Published As

Publication number Publication date
CN108776596A (en) 2018-11-09

Similar Documents

Publication Publication Date Title
US9239725B2 (en) System and method for installing an OS via a network card supporting PXE
US8433890B2 (en) Preparing and preserving a system configuration during a hot upgrade
US20060224794A1 (en) Using USB memory device to recover operating system
US6658563B1 (en) Virtual floppy diskette image within a primary partition in a hard disk drive and method for booting system with virtual diskette
CN105138431A (en) Linux system back-up and restoring method
CN101650660A (en) Booting a computer system from central storage
CN103970557A (en) Storage device and system starting method thereof
CN106484719B (en) Method and terminal for expanding mobile phone storage
JP6861886B2 (en) Systems and methods for customized operating system conversion
CN101582084B (en) Method and device for data storage
CN102141923A (en) Memory file system loading method and device
CN111124288A (en) VPD storage management method, device, equipment and readable storage medium
JP2000222179A (en) Computer system and method for operating computer system
US20140046905A1 (en) Organized Data Removal or Redirection from a Cloning Process to Enable Cloning a Larger System to a Smaller System
US6470446B1 (en) Method for preparing computer hard disks during installation of a network operating system
CN108647034B (en) Method for installing multiple operating systems on single mobile hard disk
CN107436761B (en) UEFI (unified extensible firmware interface) system and traditional system coexistence management method based on UEFI mainboard
US20060026415A1 (en) Method of updating a portion BIOS
CN117112304B (en) Disk cloning method and system
CN104077196A (en) Linux boot failure recovering method and device
CN103064767A (en) Driver backup method, driver backup device, driver restoring method and driver restoring device
CN108776596B (en) Enhancement method and system based on Windows To Go
CN111679855A (en) Application software package conversion method, management method and device
CN102262589A (en) Application server for realizing copying of hard disc driver, and method
US7925876B2 (en) Computer with extensible firmware interface implementing parallel storage-device enumeration

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant