CN112231006A - Starting method and device of computer equipment and computer equipment - Google Patents

Starting method and device of computer equipment and computer equipment Download PDF

Info

Publication number
CN112231006A
CN112231006A CN202011149919.9A CN202011149919A CN112231006A CN 112231006 A CN112231006 A CN 112231006A CN 202011149919 A CN202011149919 A CN 202011149919A CN 112231006 A CN112231006 A CN 112231006A
Authority
CN
China
Prior art keywords
disk
format
data
socket
operating system
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.)
Granted
Application number
CN202011149919.9A
Other languages
Chinese (zh)
Other versions
CN112231006B (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.)
Hangzhou Haikang Storage Technology Co ltd
Original Assignee
Hangzhou Haikang Storage 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 Hangzhou Haikang Storage Technology Co ltd filed Critical Hangzhou Haikang Storage Technology Co ltd
Priority to CN202011149919.9A priority Critical patent/CN112231006B/en
Publication of CN112231006A publication Critical patent/CN112231006A/en
Application granted granted Critical
Publication of CN112231006B publication Critical patent/CN112231006B/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
    • 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
    • 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/4411Configuring for operating with peripheral devices; Loading of device drivers

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)

Abstract

The embodiment of the application discloses a starting method and device of computer equipment and the computer equipment, and belongs to the technical field of data storage. The method comprises the following steps: the computer equipment comprises a flash memory, wherein the flash memory is used for storing core data of an operating system of the computer equipment, and the core data is used for realizing core functions of the computer equipment; when the computer equipment is powered on, reading the data of the operating system from the flash memory, and running a bootstrap program, a kernel and a core function of the operating system through the read data so as to start the computer equipment. In the embodiment of the present application, since the flash memory of the computer device stores the core data of the operating system of the computer device, the computer device can also be normally started to use the core function of the computer device under the condition that the computer device is not connected to an external disk or the disk is not deployed with the data of the operating system.

Description

Starting method and device of computer equipment and computer equipment
Technical Field
The embodiment of the application relates to the technical field of data storage, in particular to a starting method and device of computer equipment and the computer equipment.
Background
Generally, in order to ensure the normal operation of a computer device, an operating system is usually installed in the computer device, and data of the operating system is stored in a disk. Thus, after the computer device is powered on, the computer device is started by reading the data of the operating system from the disk.
The related art provides a computer device without a magnetic disk, that is, the computer device does not have a magnetic disk, but is connected with an external magnetic disk through an interface, a storage area of the magnetic disk is divided into two partitions after formatting, the two partitions are a system partition and a user partition respectively, the system partition is used for storing data of an operating system, and the user partition is used for storing user data. When the computer device is powered on, the data of the operating system can be read from the system partition of the disk to start the computer device.
However, for such a computer device, it is necessary to partition a storage area in a disk and deploy data of an operating system in a system partition before a normal startup of the computer device is guaranteed. Under the condition that the disk is not formatted and the data of the operating system is not deployed, even if the disk is connected to the computer equipment, the normal starting of the computer equipment cannot be ensured, and further the computer equipment cannot be used.
Disclosure of Invention
The embodiment of the application provides a starting method and device of computer equipment and the computer equipment, which can be used for solving the problem that the normal starting of the computer equipment cannot be ensured even if the computer equipment is connected to the computer equipment under the condition that data of an operating system is not deployed on a disk in the related art. The technical scheme is as follows:
in one aspect, a method for booting a computer device is provided, where the computer device includes a flash memory, where the flash memory is used to store core data of an operating system of the computer device, and the core data is used to implement core functions of the computer device;
the method comprises the following steps:
after the computer equipment is powered on, reading core data of the operating system from the flash memory;
and running a bootstrap program, a kernel and the core function of the operating system through the read core data so as to start the computer equipment.
Optionally, the computer device further includes at least one disk socket, a disk in a non-specified format is inserted into the disk socket, and the disk in the non-specified format is a disk that does not store the extension data of the operating system;
before the core function is started, the method further comprises:
starting the disk inserted into the at least one disk socket to set the disk inserted into the at least one disk socket into a readable mode;
and constructing disk list information.
Optionally, the starting the disk inserted into the at least one disk slot to set the disk inserted into the at least one disk slot to a readable mode includes:
mounting the disk inserted into the at least one disk slot to set the disk inserted into the at least one disk slot to be in a readable mode if the format of the disk inserted into the at least one disk slot is the unspecified format;
and initializing the disk inserted into the at least one disk socket.
Optionally, the method further comprises:
converting the format of the disk inserted into the at least one disk socket into a specified format so as to divide the storage area of the disk inserted into the at least one disk socket into a system partition and a user partition;
reloading the disk inserted into the at least one disk socket to set the disk inserted into the at least one disk socket into a readable and writable mode;
and downloading the extended data of the operating system from a server and storing the extended data into the system partition.
Optionally, the method further comprises:
reading the expansion data of the operating system from the system partition;
and starting the extended function of the operating system through the read extended data.
Optionally, the converting the format of the disk inserted into the at least one disk slot into a specified format includes:
displaying formatting prompt information, wherein the formatting prompt information is used for prompting whether to convert the format of the disk inserted into the at least one disk socket into the specified format, and the formatting prompt information is displayed in the process of activating the computer equipment; when it is determined that the format of the disk inserted into the at least one disk slot needs to be converted into the specified format based on the formatting prompt information, converting the format of the disk inserted into the at least one disk slot into the specified format;
or,
displaying a disk management interface, wherein the disk management interface comprises an option for converting the format of a disk inserted into the at least one disk slot into the specified format, and the disk management interface is displayed after the computer device is activated; when the selection operation of the option is detected, converting the format of the disk inserted into the at least one disk socket into the specified format.
Optionally, the computer device further includes at least one disk socket, where a disk in a specified format is inserted into the disk socket, where the disk in the specified format is a disk in which a storage area is divided into a system partition and a user partition, the system partition is used to store extended data of the operating system, the extended data is used to implement an extended function of the operating system, and the user partition is used to store user data;
before the core function is started, the method further comprises:
starting the disk inserted into the at least one disk socket to set the disk inserted into the at least one disk socket into a readable and writable mode;
constructing disk list information;
after the core function is initiated, the method further comprises:
reading the expansion data of the operating system from the system partition;
and starting the extended function of the operating system through the read extended data.
Optionally, the starting the disk inserted into the at least one disk slot to set the disk inserted into the at least one disk slot to a readable and writable mode includes:
mounting the disk inserted into the at least one disk slot to set the disk inserted into the at least one disk slot to be in a readable and writable mode if the format of the disk inserted into the at least one disk slot is the specified format;
and initializing the disk inserted into the at least one disk socket.
Optionally, before the disk inserted into the at least one disk slot is started to set the disk inserted into the at least one disk slot into the readable and writable mode, the method further includes:
and under the condition that the version of the extension data stored in the system partition is not compatible with the version of the core data stored in the flash memory, processing the version of the extension data stored in the system partition and the version of the core data stored in the flash memory into compatible versions.
In another aspect, a starting apparatus of a computer device is provided, where the computer device includes a flash memory, where the flash memory is used to store core data of an operating system of the computer device, and the core data is used to implement core functions of the computer device;
the device comprises:
the first reading module is used for reading the data of the operating system from the flash memory after the computer equipment is powered on;
and the running module is used for running a bootstrap program, a kernel and the kernel function of the operating system through the read core data so as to start the computer equipment.
Optionally, the computer device further includes at least one disk socket, a disk in a non-specified format is inserted into the disk socket, and the disk in the non-specified format is a disk that does not store the extension data of the operating system;
the device further comprises:
the first starting module is used for starting the disk inserted into the at least one disk socket so as to set the disk inserted into the at least one disk socket into a readable mode;
and the building module is used for building the disk list information.
Optionally, the first starting module includes:
a first mounting sub-module, configured to mount, if a format of a disk inserted into the at least one disk slot is the unspecified format, the disk inserted into the at least one disk slot, so as to set the disk inserted into the at least one disk slot to a readable mode;
and the first initialization submodule is used for initializing the disk inserted into the at least one disk socket.
Optionally, the apparatus further comprises:
the format conversion module is used for converting the format of the disk inserted into the at least one disk socket into a specified format so as to divide the storage area of the disk inserted into the at least one disk socket into a system partition and a user partition;
the mounting module is used for re-mounting the disk inserted into the at least one disk socket so as to set the disk inserted into the at least one disk socket into a readable and writable mode;
and the data downloading module is used for downloading the extended data of the operating system from the server and storing the extended data into the system partition.
Optionally, the apparatus further comprises:
the second reading module is used for reading the expansion data of the operating system from the system partition;
and the second starting module is used for starting the extended function of the operating system through the read extended data.
Optionally, the format conversion module includes:
the first conversion sub-module is used for displaying formatting prompt information, the formatting prompt information is used for prompting whether the format of the disk inserted into the at least one disk socket is converted into the specified format, and the formatting prompt information is displayed in the process of activating the computer equipment; when it is determined that the format of the disk inserted into the at least one disk slot needs to be converted into the specified format based on the formatting prompt information, converting the format of the disk inserted into the at least one disk slot into the specified format;
or,
a second conversion submodule, configured to display a disk management interface, where the disk management interface includes an option for converting a format of a disk inserted into the at least one disk slot into the specified format, and the disk management interface is displayed after the computer device is activated; when the selection operation of the option is detected, converting the format of the disk inserted into the at least one disk socket into the specified format.
Optionally, the computer device further includes at least one disk socket, where a disk in a specified format is inserted into the disk socket, where the disk in the specified format is a disk in which a storage area is divided into a system partition and a user partition, the system partition is used to store extension data of the operating system, the extension data is used to implement an extension function of the operating system, and the user partition is used to store user data;
the device further comprises:
the third starting module is used for starting the disk inserted into the at least one disk socket so as to set the disk inserted into the at least one disk socket into a readable and writable mode;
the building module is used for building the disk list information;
the third reading module is used for reading the expansion data of the operating system from the system partition;
and the fourth starting module is used for starting the extended function of the operating system through the read extended data.
Optionally, the third starting module includes:
the second mounting submodule is used for mounting the disk inserted into the at least one disk socket to set the disk inserted into the at least one disk socket into a readable and writable mode under the condition that the format of the disk inserted into the at least one disk socket is the specified format;
and the second initialization submodule is used for initializing the disk inserted into the at least one disk socket.
Optionally, the apparatus further comprises:
and the compatible processing module is used for processing the version of the extended data stored in the system partition and the version of the core data stored in the flash memory into compatible versions under the condition that the version of the extended data stored in the system partition is incompatible with the version of the core data stored in the flash memory.
In another aspect, a computer device is also provided, the device comprising:
one or more processors;
one or more memories for storing the one or more processor-executable instructions;
wherein the one or more processors are configured to perform the steps of the method of booting the computer device of any of the above aspects.
In another aspect, a computer-readable storage medium is provided, which has instructions stored thereon, and when executed by a processor, the instructions implement the steps of the booting method of the computer device according to any one of the above aspects.
In another aspect, a computer program product is provided, which, when executed, is configured to implement the steps of the method for booting a computer device according to any one of the above aspects.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
in the embodiment of the present application, the flash memory of the computer device stores the core data of the operating system of the computer device, so that the computer device can also be normally started to use the core function of the computer device when the computer device is not connected to an external disk or the disk is not deployed with the data of the operating system.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a computer device provided by an embodiment of the present application;
FIG. 2 is a schematic diagram of an internal structure of a computer device according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of a method for booting a computer device according to an embodiment of the present disclosure;
FIG. 4 is a flowchart of another method for booting a computer device according to an embodiment of the present application;
FIG. 5 is a flowchart of a method for booting a computer device according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a disk roaming method according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a starting apparatus of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the following describes in detail the implementation process of the embodiments of the present application with reference to the accompanying drawings.
Before explaining the embodiments of the present application in detail, relevant terms and application scenarios related to the embodiments of the present application will be described.
First, a description will be given of relevant terms related to embodiments of the present application.
Core mode: a deployed state of an operating system in a computer device in which only core functionality of the computer device is available. In other words, in the core mode, only the deployment of the core function module of the computer device is completed.
Core functions include, but are not limited to: command interface services, network management and device discovery, device status management, hardware management, user and authentication management, disk management and formatting, file management, and event information.
From the perspective of active request and response, the command interface service program is equivalent to a server and can provide services for clients such as browsers and the like; from a service perspective, the command Interface servlet is a CGI (Common Gateway Interface) that provides access to device data and device operations, the device data including: status information, pictures, audio and video, etc., device operations including: restart, formatting, network settings, time settings, etc. Network management and device discovery refers to detecting conditions of a network to which the computer device is connectable, and performing configuration management, fault management, performance management, security management, and billing management on the network to which the computer device is connected. Device status management refers to monitoring the operating status of a computer device and allowing a user to set the operating mode of the computer device. The computer equipment running state comprises the following steps: temperature, humidity, and Central Processing Unit (CPU) occupancy, and the user may set the operating mode of the computer device to a standby state or a sleep state. Hardware management refers to managing all hardware of a computer device, including, for example: fans, lights, and net ports, among others, and various storage devices such as: RAM (Ramdom Access Memory), ROM (Read Only Memory), Flash Memory (Flash), and the like. User and authentication management means that authentication information of a user is stored, and the user is authenticated when the user identity needs to be verified. The disk management and formatting refers to managing a disk inserted into a computer device, and after a user selects to format the disk, the storage area of the disk may be divided, or after the storage area is divided, a file system deployed in the disk may be formatted. File management refers to managing data of all files in a computer device, and executing corresponding file operations including moving, renaming, deleting, adding, exporting and the like according to the selection of a user. The event information is monitoring information of state change of the computer equipment in the running process, and comprises triggering conditions of various faults, processing modes of the faults and the like.
Complete mode: a deployed state of an operating system in a computer device in which both core and extended functions of the computer device are available. In other words, in this state, all the functional modules of the computer apparatus are deployed to completion.
Extended functions include, but are not limited to: the system comprises a remote access function, a picture thumbnail function, a video thumbnail function, a plug-in management mechanism, album management, an AI (Artificial Intelligence) function, a classification management function, an SMB (Server Message Block) function, a camera access function and the like.
The remote access function can provide a remote network for remote office personnel, outworkers and system administrators for monitoring and managing a plurality of computer devices, so that a user can perform reading, modifying, accessing and the like on the computer device under the condition of a non-local area network. The picture thumbnail and the video thumbnail represent small pictures which are processed in a compression mode on a webpage or pictures or videos in computer equipment, the compressed small pictures usually contain hyperlinks pointing to pictures and videos with complete sizes, and the webpage containing more pictures can be loaded in a client more quickly by using the picture thumbnail function. Likewise, web pages containing more videos may be loaded more quickly in the client using the video thumbnail function. The plug-in is a computer device program, and the plug-in management mechanism is used for managing all plug-ins deployed and installed in the computer device, and calling and running the corresponding computer program when accessing the function of a certain plug-in. The classification management function may classify data and files stored in the computer device according to different attributes, so as to facilitate user access by category or storage by category, etc. The SMB function is used for realizing network connection and communication between the client and the server. The camera access function is that the computer equipment allows to access the camera according to the selection of a user so as to take a video or a photo by using the camera.
A Core component: a component is a piece of program code. In the kernel mode, only the kernel functions of the operating system are available in the computer device, the set of kernel functions constituting the kernel components, which can be installed and deployed individually in the computer device.
Base component: in the full mode, all functional modules of the computer device are deployed and completed, and all functions of the operating system can be used. In the full mode, the components deployed by the computer device are Core components and Base components, all the functions except the Core components in the system function form the Base components, and the Base components cannot be used independently in the computer device.
Plug-in components: a plug-in is a computer device program that adds some specific functionality to an application by interacting with the application. The plug-in must rely on the application to function itself, and the plug-in cannot function properly only.
On top of the operating system's system components (Core component + Base component), the user can choose any plug-in to install on the computer device, according to his own needs. Such as: a plug-in for offline download, a plug-in for cloud disk docking, a plug-in for IPC (IP Camera) access management, a plug-in for network acceleration, and the like. In addition, the user may also choose to uninstall a plug-in on the computer device. That is, the plug-in is a plug-in that the user can install at will according to the user's own needs.
Plug-in functions include, but are not limited to: address book management, creating a shortcut folder, network acceleration, downloading and the like.
Flashing: generally referred to as Flash, which is a Non-Volatile (Non-Volatile) memory. The flash memory can hold data for a long time without current supply.
A magnetic disk: also referred to as a hard disk drive, records data by magnetizing a magnetic substance and reads data by detecting the magnetism of the magnetic substance.
It should be noted that, in the embodiment of the present application, the disks inserted into the disk sockets of the computer device include a disk in a specified format and a disk in a non-specified format, which is not limited in the embodiment of the present application.
The disk with the specified format is a disk subjected to formatting processing, and the disk with the unspecified format is a disk which is not divided into storage areas of the disk and is not provided with a Base component.
Disk of the specified format: the disk is formatted, that is, the storage area of the disk is divided into two partitions: the system partition is used for deploying information such as Base components, plug-ins, user information, configuration of a database and a disk. The user partition is a storage space visible to the user on the application interface and used for storing various data of the user.
In general, the formatting process of a disk is divided into two steps, that is, a storage area of the disk is divided, a corresponding file system is configured for each partition, and then the corresponding partition is initialized according to the format of the file system of each partition, so as to clear original data in each partition.
When the computer device is in full mode, it is desirable that the disk be formatted in a specified format, such as: ZHCC format.
Disk in unspecified format: the disk is not formatted, that is, the storage area of the disk is not divided, and the disk does not store the extended data of the operating system.
Next, an application scenario according to an embodiment of the present application will be described.
Typically, computer devices are configured with disks to store operating system data. When the computer device is powered on, the operating system data can be read from the disk by the basic input/output system arranged in the computer device to start the computer device. In addition to operating system data, disks in computer devices are often used to store user data, such as mail, files, video or audio data created or downloaded by a user. That is, the disk is typically used to store all of the parameters that the user has set for the computer device.
In order to ensure the light weight of computer equipment and to redeploy the operating system data that is used by a user on new computer equipment when the user changes the computer equipment, that is, in order to use the same operating system data in different computer equipment, related technologies propose a computer equipment without a disk. The computer equipment is connected with an external magnetic disk, a storage area of the magnetic disk is divided into two partitions after formatting, namely a system partition and a user partition, the system partition is used for storing data of an operating system, and the user partition is used for storing user data. When the computer device is powered on, the data of the operating system can be read from the system partition of the disk to start the computer device. Therefore, the light weight of the computer equipment is ensured, and the operating systems deployed in the magnetic disks can be started on different computer equipment when the external magnetic disks are connected to different computer equipment, so that the same system functions can be used. That is, the operating system can be replaced by replacing the external hard disk on the same computer device.
However, for a computer device without a disk, formatting processing needs to be performed on an external disk, that is, a storage area of the disk is divided into a system partition and a user partition, and after data of an operating system is deployed in the system partition, it can be ensured that the computer device connected to the external disk can be normally started. Therefore, even if the external disk is connected to the computer device, the normal start of the computer device cannot be guaranteed, and the computer device cannot be used, without formatting the external disk, that is, without dividing the storage area and deploying the data of the operating system.
In view of the above problem, referring to fig. 1, fig. 1 is a schematic diagram of a computer device provided in an embodiment of the present application. The computer device 100 includes a disk slot 101, and the disk slot 101 can be inserted with a disk. The disk inserted into the disk socket 101 is the main storage disk of the user and is also the object of the operating system deployment. If the user chooses to format the disk, the disk will be formatted into a specified format, such as the ZHCC format. The disk inserted into the disk socket is fixed after being inserted, is generally not frequently plugged and unplugged as a main storage device of a user, and can be unplugged from the disk inserted into the original computer and inserted into new computer equipment under the condition of need.
Optionally, the computing device 100 may further include a disk socket 102, and the disk socket 102 may be used for a user to insert a generally-used flash memory card such as a USB (Universal Serial Bus) flash drive, a Secure digital card (SD card).
It should be noted that the computer device may include a plurality of disk sockets 101, for example, the computer device may include three disk sockets 101, into which three disks are inserted, so as to deploy a larger operating system, or store more data. Fig. 1 illustrates only one disk slot 101 as an example, and does not limit the embodiments of the present application.
In addition, referring to fig. 2, fig. 2 is a schematic structural diagram of a computer device according to an embodiment of the present application. The computer device 200 includes: flash memory 201, disk socket 202, processor 203, data bus 205, USB interface 206, SD card interface 207, and network interface 208. Wherein, a Core component is deployed in the flash memory 201, Core data of an operating system is stored, after a disk 204 inserted in the disk socket 202 is formatted, a storage area of the disk 204 is divided into a system partition and a user partition, wherein Base components, plug-ins, databases, configuration information and the like are deployed in the system partition, extension data of the operating system is stored, and user data is stored in the user partition, and the method comprises the following steps: pictures, documents, videos, and the like.
In the case that the disk 204 is not inserted into the disk socket 202 or the inserted disk 204 is not formatted, the computer device is in the kernel mode, and the kernel function provided by the computer device can be used to start the computer device using the kernel data of the operating system. When the disk 204 is inserted into the disk socket 202 and the disk 204 is formatted, the computer device is in a complete mode, and after the computer device is powered on, the core function and the extended function of the operating system can be started.
That is, in the embodiment of the present application, a part of the operating system data is stored in the flash memory, and a part of the operating system data is stored in the magnetic disk, and the computer device can be normally started by the operating system data read from the flash memory for the user to use regardless of whether the magnetic disk is inserted.
Next, a method for starting a computer device according to an embodiment of the present application will be explained with reference to the drawings. Because the operating system data is deployed separately, the computer device may be in a kernel mode or a full mode after booting. Therefore, the method for starting the computer device will be described in the following by dividing into a plurality of embodiments.
Next, the starting process of the computer device in the core mode will be explained.
Fig. 3 is a flowchart of a booting method of a computer device according to an embodiment of the present application, where the computer device includes a flash memory, and the flash memory is used for storing core data of an operating system of the computer device, and the core data is used for implementing core functions of the computer device. Referring to fig. 3, the method includes:
step 301: and when the computer equipment is powered on, reading the core data of the operating system from the flash memory.
In order to avoid the situation that the computer device cannot be normally started when the disk cannot be inserted, the core data of the operating system is deployed on the flash memory in advance when the computer device leaves the factory, so that the core function can still be used when the computer device is not connected to any other disk.
Therefore, in a possible implementation manner, when the computer device is powered on, core data pre-stored by the computer device at the time of factory shipment, which can be used for starting the core functions of the computer device and the operating system, is started to be read from the flash memory.
It should be noted that, in the embodiment of the present application, core data of an operating system is stored in a flash memory as an example. In practical application, the core data of the operating system can be stored in the ROM of the computer device, however, for the ROM, the core data of the operating system can only be read and cannot be changed after being stored, and a user can only verify whether the written data is correct and cannot modify any data. Of course, the core data of the operating system may also be stored in an EPROM (Erasable Programmable ROM), which can be erased and written repeatedly, thus solving the disadvantage that the ROM can only write data once. The embodiments of the present application do not limit this.
Step 302: and running a bootstrap program, a kernel and core functions of the operating system through the read core data to start the computer equipment.
In one possible implementation, the boot program of the operating system and the kernel of the operating system are started by the core data read from the flash memory, and the core functions of the computer device are started item by item.
It should be noted that, in the starting process of the computer device, after the boot program and the kernel of the operating system are started through the read core data, the disk inserted in at least one disk socket is started, that is, the initialization script starts to run, and the disk initialization module in the computer device starts to detect the disk insertion condition in the disk socket so as to detect whether the disk is inserted in the computer device. In the embodiment of the present application, the disk is not inserted into the computer device, and therefore, the disk initialization module determines that the computer device is not inserted into the disk by detection, and at this time, the computer device may start a core function of an operating system in the flash memory to start the computer device.
That is, if the computer device does not have a disk inserted, the disk initialization module may omit the process of formatting the disk when detecting that there is no disk, the mount point is empty, and the disk list information is constructed as empty.
In the embodiment of the application, the flash memory of the computer device stores the core data of the operating system of the computer device, so that the computer device can be normally started even when no disk is inserted into the computer device, and further, the core function of the computer device is used.
In addition, the computer device may include at least one disk slot into which a disk may be inserted, in addition to the flash memory. The inserted disk can be a disk with a non-specified format or a disk with a specified format. The formats of the disks are different, and the starting process of the computer equipment is different.
Next, based on the embodiment shown in fig. 3, a starting process of the computer device when a disk in a non-specific format is inserted into a disk socket of the computer device will be explained with reference to fig. 4.
Referring to fig. 4, fig. 4 is a flowchart of a boot method of another computer device according to an embodiment of the present application, where the computer device includes at least one disk socket in addition to a flash memory, and a disk with a non-specific format is inserted into the disk socket. The method comprises the following steps:
step 401: and when the computer equipment is powered on, reading the core data of the operating system from the flash memory.
It should be noted that the process of reading the core data of the operating system in step 401 is the same as that in step 301, and the specific process refers to step 301, which is not described herein again.
Step 402: and starting a bootstrap program and a kernel of the operating system through the read core data.
Step 403: and starting the disk inserted into the at least one disk socket so as to set the disk inserted into the at least one disk socket into a readable mode.
In one possible implementation manner, the implementation procedure of step 403 is: detecting whether the format of the disk inserted into the at least one disk socket is a specified format or not, and mounting the disk inserted into the at least one disk socket under the condition that the format of the disk inserted into the at least one disk socket is a non-specified format so as to set the disk inserted into the at least one disk socket into a readable mode and initialize the disk inserted into the at least one disk socket.
In the linux operating system, mount means to mount a disk to an existing directory (the directory may not be empty, but the content before under the directory after mount is not available).
It should be understood that the linux operating system treats all storage devices as files, and integrates the resources of the entire computer device into a large file directory. When a file in a computer device needs to be accessed, the partition in which the file is located must be mounted to an existing directory, and the computer device must then be accessed by accessing this directory.
It should be noted that after the boot program and kernel of the operating system run, the disk initialization module in the computer device starts to detect the disk insertion condition in the disk socket. If the inserted disk is detected to be a disk with a non-specified format, mounting the disk in a common mode to set the disk in a readable mode, so that the disk information of each disk can be conveniently acquired. That is, the normal mode refers to a mount mode in which the disk is set to a readable mode.
That is, if the disk is a disk with a non-specified format, the disk is not formatted, the storage area in the disk is not divided, and a system partition for storing the extension data of the operating system does not exist in the disk, so that the extension data of the operating system cannot be downloaded from the server and stored in the system partition. For a disk with a non-specified format, in the starting process of computer equipment, in order to avoid the influence on user data stored in the disk, the disk with the non-specified format is mounted in a common mode and is set to be in a read-only mode, so that the data in the disk can only be read but cannot be written and changed, and the integrity of the user data is ensured.
Step 404: and constructing disk list information.
In a possible implementation manner, the disk information of at least one disk inserted into a disk socket of the computer device is obtained, and the disk list information of the computer storage device is constructed according to the disk information.
As one example, the disk information may include storage area size and format. The disk information list includes disk names of all inserted disks and disk information of the disk.
Step 405: and starting the core function of the operating system through the read core data to start the computer equipment.
Under the condition that a disk with a non-specified format is inserted into a disk socket of a computer device, after the disk is started and the core function of an operating system is started through the step 401 and the step 405, formatting processing can be further performed on the disk inserted into the disk socket, that is, the format of the disk inserted into the disk socket is converted into the specified format, so that the disk can store the expansion data of the operating system, and the expansion function of the computer device can be started and used. Next, this process will be described in several steps as follows.
(1) And converting the format of the disk inserted into the at least one disk socket into a specified format.
The method comprises the steps of prompting a user to convert the format of a disk inserted into at least one disk socket into a specified format in the activation process of the computer equipment, and converting the format of the disk inserted into at least one disk socket into the specified format at any time by using the core function of an operating system by the user after the computer equipment is activated. That is, a user may perform formatting processing on a disk inserted into at least one disk slot during activation of the computer device to convert the format of the disk into a specified format, or may skip the step of formatting the disk during activation of the computer device, and further convert the format of the disk inserted into at least one disk slot into the specified format at any time of subsequent use of the computer device. Thus, step (1) corresponds to the following two possible implementations.
In one possible implementation manner, formatting prompt information is displayed, the formatting prompt information is used for prompting whether the format of the disk inserted into the at least one disk socket is converted into the specified format or not, the formatting prompt information is displayed in the process of activating the computer equipment, and when the format of the disk inserted into the at least one disk socket is determined to be required to be converted into the specified format based on the formatting prompt information, the format of the disk inserted into the at least one disk socket is converted into the specified format.
That is, during the process of activating the computer device, the format prompting message is displayed, so as to prompt the user whether to format the disk inserted into the at least one disk socket so as to convert the format of the disk into the specified format. If the user determines that the format of the disk inserted in the at least one disk slot needs to be converted to the specified format, the computer device may convert the format of the disk inserted in the at least one disk slot to the specified format.
In another possible implementation process, a disk management interface is displayed, the disk management interface includes an option for converting a format of a disk inserted into at least one disk slot into a specified format, and the disk management interface is displayed after the computer device is activated, and when a selection operation of the option is detected, the format of the disk inserted into at least one disk slot is converted into the specified format.
That is, during the process of activating the computer device, the user does not convert the format of the disk inserted into the at least one disk slot into a specified format, and the step of formatting the disk is skipped. Subsequently, after activating the computer device, the user may manually convert the format of the disk inserted in the at least one disk slot into a specified format through an option in the disk management interface for converting the disk format.
The implementation process of converting the format of the disk inserted into at least one disk socket into a specified format is as follows: the method comprises the steps of unloading a disk inserted into at least one disk socket which is mounted previously, then dividing a storage area of the disk inserted into the at least one disk socket into a system partition and a user partition, setting the system partition to be a storage area used for storing extended data of an operating system, and setting the user partition to be an area used for storing plug-in data of a plug-in which a user installs for the computer equipment and all user data generated by the user by using the computer equipment.
(2) And re-mounting the disk inserted into the at least one disk socket so as to set the disk inserted into the at least one disk socket into a readable and writable mode.
After converting the format of the disk inserted into the at least one disk slot into a specified format, the computer device detects whether the format of the disk inserted into the at least one disk slot is the specified format again, and in the case that the format of the disk inserted into the at least one disk slot is the specified format, the disk inserted into the at least one disk slot is mounted, so that the disk inserted into the at least one disk slot is set to be in a readable and writable mode, and the disk inserted into the at least one disk slot is initialized.
It should be noted that, after the disk in the unspecified format is converted into the disk in the specified format, the initialization script is run again, the disk initialization module in the computer device detects the disk insertion condition of the computer device again, and when it is detected that the disk inserted into at least one disk slot is the disk in the specified format, the disk is mounted in the unusual mode to set the disk in the readable and writable mode, so that data stored in the disk can be read conveniently, and at the same time, after the user formats the disk, the extended data of the operating system can be written into the system partition in the disk. That is, the non-normal mode refers to a mount mode in which the disk is set to a readable and writable mode.
That is, if the disk is a disk of a specified format, the storage area of the disk is already divided, and a system partition for storing the extension data of the operating system exists in the disk, so that the extension data of the operating system can be downloaded from the server and stored in the system partition. For a disk with a specified format, in the process of starting the computer device, in order to further start the extended function of the computer device, extended data of an operating system needs to be stored in a system partition, so that the disk with the specified format is mounted in a non-ordinary mode and set in a readable and writable mode, and data can be read from the disk or written in the disk.
It should be noted that the written data may include extension data of an operating system stored in the system partition, and may also include plug-in data of any plug-in installed by the user for the computer device, and the plug-in data is also stored in the system partition.
(3) And downloading the extended data of the operating system from the server and storing the extended data into the system partition.
In one possible implementation manner, the computer device sends a data download request to the server, where the data download request carries a version identifier of core data of the operating system. After the server receives the data downloading request, determining the version of the extended data compatible with the version of the core data according to the version identification of the core data of the operating system, and sending the extended data of the version to the computer equipment. And the computer equipment stores the acquired expansion data of the operating system in a system partition of the disk.
The version identifier of the core data is used to indicate the version of the core data of the operating system, and the version identifier may be a version number or the like. The version of the core data is compatible with the version of the extension data, which means that when the version of the core data is started and the version of the extension data is started, both the core function and the extension function can be normally used.
As an example, the version number of the core data is 2.0, the versions of the extension data detected to exist in the server are 3.1, 3.2 and 3.3, and if the version of the extension data compatible with the 2.0 version of the core data is 3.2, the 3.2 version of the extension data is sent to the computer device.
After the steps (1) - (3) are carried out, the disk inserted into the disk socket of the computer device stores the expansion data of the operating system, and the expansion function of the computer device can be started through the expansion data. Thus, after all the operating system data is deployed, the core function of the computer device can be started by using the core data through the following steps (4) to (5), so that the subsequent use of the extended function of the computer device is facilitated.
(4) And reading the extension data of the operating system from the system partition.
(5) And starting the extended function of the operating system through the read extended data.
In the embodiment of the application, when the computer device detects that the disk is inserted into the disk socket, the core function of the computer device can be started under the condition that the disk format is the non-specified format, so that the computer device can be normally started, and further the core function of the computer device is used. And then, formatting the disk, and converting the format of the disk from a non-specified format to a specified format, so that under the condition that the disk format is the specified format, complete operating system data can be deployed in the computer equipment, and the extended function of the computer equipment can be started.
Based on the embodiment shown in fig. 3, if a disk with a specified format is inserted into a disk socket of a computer device, and the system partition of the disk already stores the extension data of the operating system, next, a booting process of the computer device in the above case is explained with reference to fig. 5.
Referring to fig. 5, fig. 5 is a flowchart of a startup method of a computer device according to an embodiment of the present application, where the method includes:
step 501: and when the computer equipment is powered on, reading the core data of the operating system from the flash memory.
It should be noted that the process of reading the core data of the operating system in step 501 is the same as that in step 301, and the specific process refers to step 301, which is not described herein again.
Step 502: and starting a bootstrap program and a kernel of the operating system through the read core data.
Step 503: and starting the disk inserted into the at least one disk socket to set the disk inserted into the at least one disk socket into a readable and writable mode.
In a possible implementation manner, whether the format of the disk inserted into the at least one disk slot is a specified format is detected, and in the case that the format of the disk inserted into the at least one disk slot is the specified format, the disk inserted into the at least one disk slot is mounted, so that the disk inserted into the at least one disk slot is set to be in a readable and writable mode, and the disk inserted into the at least one disk slot is initialized.
It should be noted that, if the inserted disk is a disk of a specified format, the disk is mounted in the non-normal mode to set the disk in the readable and writable mode. In the readable and writable mode, the expansion data of the operating system stored in the system partition in the disk can be read, and the expansion data stored in the system partition can be modified. In addition, plug-in data of the user installed plug-in may also be written in the system partition.
It should be noted that, in some cases, a user may detach a disk from one computer device and insert the disk into another computer device, that is, a disk roaming occurs. Wherein, the disk roaming is in the process of disk movement between the same series of computing devices. As an example, referring to fig. 6, fig. 6 is a schematic diagram of a disk roaming provided in the embodiment of the present application, where a computer device a deploys complete operating system data, but when the computer device a is used for a long time and needs to be upgraded or is aged or damaged, the disk a inserted in the computer device a needs to be moved to a new computer device B, which belongs to the disk roaming.
After the disk roaming occurs, the version of the extension data of the operating system stored in the disk is very likely to be incompatible with the version of the core data stored in the flash memory of the computer device, and therefore, after determining that the format of the disk inserted into at least one disk socket is a specified format, it is necessary to further determine the compatibility of the version of the extension data of the operating system stored in the disk and the version of the core data stored in the flash memory of the computer device for detection.
In one possible implementation manner, whether the version of the extension data stored in the system partition of the disk is compatible with the version of the core data stored in the flash memory is detected, and in the case that the version of the extension data stored in the system partition is incompatible with the version of the core data stored in the flash memory, the version of the extension data stored in the system partition and the version of the core data stored in the flash memory are processed into compatible versions. If the version of the extension data stored in the system partition is compatible with the version of the core data stored in the flash memory, step 504, described below, is performed directly.
The implementation process of processing the version of the extension data stored in the system partition and the version of the core data stored in the flash memory into compatible versions comprises the following steps: the computer equipment determines the version identification of the core data stored in the flash memory and the version identification of the extension data stored in the system partition to obtain a first version identification and a second version identification. And sending a first data updating request to the server, wherein the first data updating request carries the first version identification and the second version identification. And the server determines the latest version of the core data according to the first version identification, and simultaneously determines the latest version of the extension data according to the second version identification. In a case where the latest version of the core data and the latest version of the extension data are compatible, the latest version of the core data and the extension data are transmitted to the computer device. In the case where the latest version of the core data and the latest version of the extension data are incompatible, a version of the core data and a version of the extension data that can be compatible with each other are determined, and the version of the core data and the version of the extension data are transmitted to the computer device.
In addition, since the disk is moved from one computer device to another computer device, it is uncertain whether the extension data stored in the disk is incomplete for the other computer device. Thus, the extension data compatible with the version of the core data stored on the flash memory of the other computer device can be directly downloaded from the server directly according to the version.
That is, in another possible implementation manner, the implementation process of processing the version of the extension data stored in the system partition and the version of the core data stored in the flash memory into compatible versions is as follows: the computer equipment determines the version of the core data stored in the flash memory to obtain a first version identification, sends a second data updating request to the server, wherein the second data updating request carries the first version identification, and the server determines the version of the extended data compatible with the core data according to the first version identification and sends the extended data of the version to the computer equipment. And after receiving the extended data sent by the server, the computer equipment stores the extended data in a system partition of the disk in a data overlay mode.
It should be noted that processing the version of the extension data stored in the system partition and the version of the core data stored in the flash memory into compatible versions may be automatically updated by the computer device when detecting that the versions are incompatible, or may be determined by the user whether to perform the update and when to perform the update by sending an update reminder to the user by the computer device.
Step 504: and constructing disk list information.
In a possible implementation manner, the disk information of at least one disk inserted into a disk socket of the computer device is obtained, and the disk list information of the computer storage device is constructed according to the disk information.
As one example, disk information may include storage area size, format, size of system partition, and size of user partition. The disk information list includes disk names of all inserted disks and disk information of the disk.
Step 505: and starting the core function of the operating system through the read core data.
Step 506: and reading the extension data of the operating system from the system partition.
Step 507: and starting the extended function of the operating system through the read extended data.
In the embodiment of the present application, the flash memory of the computer device stores the core data of the operating system, and the system partition of the magnetic disk inserted into the computer device stores the extension data of the operating system, so that the computer device can use the core function and the extension function of the computer device after being normally started.
All the above optional technical solutions can be combined arbitrarily to form an optional embodiment of the present application, and the present application embodiment is not described in detail again.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a starting apparatus of a computer device according to an embodiment of the present application, where the apparatus 700 includes: a first reading module 701 and an operation module 702.
The computer equipment comprises a flash memory, wherein the flash memory is used for storing core data of an operating system of the computer equipment, and the core data is used for realizing core functions of the computer equipment;
the apparatus 700 comprises:
a first reading module 701, configured to read data of an operating system from a flash memory after a computer device is powered on;
the first boot module 702 is configured to run a boot program, a kernel, and a core function of the operating system through the read data to boot the computer device.
Optionally, the computer device further includes at least one disk socket, into which a disk in a non-specified format is inserted, where the disk in the non-specified format is a disk that does not store the extension data of the operating system;
the apparatus 700 further comprises:
the first starting module is used for starting the disk inserted into the at least one disk socket so as to set the disk inserted into the at least one disk socket into a readable mode;
and the building module is used for building the disk list information.
Optionally, the first starting module includes:
the first mounting sub-module is used for mounting the disk inserted into the at least one disk socket to set the disk inserted into the at least one disk socket to be in a readable mode under the condition that the format of the disk inserted into the at least one disk socket is a non-specified format;
the first initialization submodule is used for initializing the disk inserted into at least one disk socket.
Optionally, the apparatus 700 further comprises:
the format conversion module is used for converting the format of the disk inserted into the at least one disk socket into a specified format so as to divide the storage area of the disk inserted into the at least one disk socket into a system partition and a user partition;
the mounting module is used for re-mounting the disk inserted into the at least one disk socket so as to set the disk inserted into the at least one disk socket into a readable and writable mode;
and the data downloading module is used for downloading the extended data of the operating system from the server and storing the extended data into the system partition.
Optionally, the apparatus 700 further comprises:
the second reading module is used for reading the expansion data of the operating system from the system partition;
and the second starting module is used for starting the extended function of the operating system through the read data.
Optionally, the format conversion module includes:
the first conversion submodule is used for displaying formatting prompt information, the formatting prompt information is used for prompting whether the format of a disk inserted into at least one disk socket is converted into a specified format, and the formatting prompt information is displayed in the process of activating the computer equipment; when the format of the disk inserted into the at least one disk socket is determined to be required to be converted into the specified format based on the formatting prompt information, converting the format of the disk inserted into the at least one disk socket into the specified format;
or,
a second conversion submodule, configured to display a disk management interface, where the disk management interface includes an option for converting a format of a disk inserted into at least one disk slot into a specified format, and the disk management interface is displayed after the computer device is activated; when the selection operation of the option is detected, the format of the disk inserted into at least one disk slot is converted into a specified format.
Optionally, the computer device further includes at least one disk socket, into which a disk of a specified format is inserted, where the disk of the specified format is a disk in which a storage area is divided into a system partition and a user partition, the system partition is used to store extended data of an operating system, the extended data is used to implement an extended function of the operating system, and the user partition is used to store user data;
the apparatus 700 further comprises:
the third starting module is used for starting the disk inserted into the at least one disk socket so as to set the disk inserted into the at least one disk socket into a readable and writable mode;
the building module is used for building the disk list information;
the third reading module is used for reading the expansion data of the operating system from the system partition;
and the fourth starting module is used for starting the extended function of the operating system through the read extended data.
Optionally, the third initiating module includes:
the second mounting submodule is used for mounting the disk inserted into the at least one disk socket under the condition that the format of the disk inserted into the at least one disk socket is a specified format, so that the disk inserted into the at least one disk socket is set to be in a readable and writable mode;
and the second initialization submodule is used for initializing the disk inserted into the at least one disk socket.
Optionally, the apparatus 700 further comprises:
and the compatible processing module is used for processing the version of the extension data stored in the system partition and the version of the core data stored in the flash memory into compatible versions under the condition that the version of the extension data stored in the system partition is incompatible with the version of the core data stored in the flash memory.
In the embodiment of the present application, the flash memory of the computer device stores the core data of the operating system of the computer device, so that the computer device can also be normally started to use the core function of the computer device when the computer device is not connected to an external disk or the disk is not deployed with the data of the operating system.
It should be noted that: in the starting apparatus of the computer device provided in the above embodiment, when the computer device is started, only the division of the functional modules is illustrated, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the apparatus is divided into different functional modules, so as to complete all or part of the above described functions. In addition, the starting apparatus of the computer device provided in the above embodiments and the starting method embodiment of the computer device belong to the same concept, and specific implementation processes thereof are detailed in the method embodiment and are not described herein again.
In an exemplary embodiment, a computer-readable storage medium is further provided, which has instructions stored thereon, and when executed by a processor, implements the boot method of the computer device described above.
In an exemplary embodiment, a computer program product is also provided for implementing the start-up method of the computer device described above when the computer program product is executed.
It should be understood that reference to "a plurality" herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present application and is not intended to limit the present application, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present application should be included in the scope of the present application.

Claims (19)

1. A starting method of a computer device is characterized in that the computer device comprises a flash memory, the flash memory is used for storing core data of an operating system of the computer device, and the core data is used for realizing core functions of the computer device;
the method comprises the following steps:
after the computer equipment is powered on, reading core data of the operating system from the flash memory;
and running a bootstrap program, a kernel and the core function of the operating system through the read core data so as to start the computer equipment.
2. The method of claim 1, wherein the computer device further comprises at least one disk socket, and a disk in a non-specified format is inserted into the disk socket, and the disk in the non-specified format is a disk which does not store the extension data of the operating system;
before the core function is started, the method further comprises:
starting the disk inserted into the at least one disk socket to set the disk inserted into the at least one disk socket into a readable mode;
and constructing disk list information.
3. The method of claim 2, wherein the booting the disk inserted in the at least one disk slot to set the disk inserted in the at least one disk slot to a readable mode comprises:
mounting the disk inserted into the at least one disk slot to set the disk inserted into the at least one disk slot to be in a readable mode if the format of the disk inserted into the at least one disk slot is the unspecified format;
and initializing the disk inserted into the at least one disk socket.
4. The method of claim 3, wherein the method further comprises:
converting the format of the disk inserted into the at least one disk socket into a specified format so as to divide the storage area of the disk inserted into the at least one disk socket into a system partition and a user partition;
reloading the disk inserted into the at least one disk socket to set the disk inserted into the at least one disk socket into a readable and writable mode;
and downloading the extended data of the operating system from a server and storing the extended data into the system partition.
5. The method of claim 4, wherein the method further comprises:
reading the expansion data of the operating system from the system partition;
and starting the extended function of the operating system through the read extended data.
6. The method of claim 4, wherein converting the format of the disk inserted in the at least one disk slot to a specified format comprises:
displaying formatting prompt information, wherein the formatting prompt information is used for prompting whether to convert the format of the disk inserted into the at least one disk socket into the specified format, and the formatting prompt information is displayed in the process of activating the computer equipment; when it is determined that the format of the disk inserted into the at least one disk slot needs to be converted into the specified format based on the formatting prompt information, converting the format of the disk inserted into the at least one disk slot into the specified format;
or,
displaying a disk management interface, wherein the disk management interface comprises an option for converting the format of a disk inserted into the at least one disk slot into the specified format, and the disk management interface is displayed after the computer device is activated; when the selection operation of the option is detected, converting the format of the disk inserted into the at least one disk socket into the specified format.
7. The method of claim 1, wherein the computer device further comprises at least one disk socket, and a disk of a specified format is inserted into the disk socket, where the disk of the specified format is a disk whose storage area is divided into a system partition and a user partition, the system partition is used for storing extension data of the operating system, the extension data is used for implementing an extension function of the operating system, and the user partition is used for storing user data;
before the core function is started, the method further comprises:
starting the disk inserted into the at least one disk socket to set the disk inserted into the at least one disk socket into a readable and writable mode;
constructing disk list information;
after the core function is initiated, the method further comprises:
reading the expansion data of the operating system from the system partition;
and starting the extended function of the operating system through the read extended data.
8. The method of claim 7, wherein the booting the disk inserted in the at least one disk slot to set the disk inserted in the at least one disk slot to a readable and writable mode comprises:
mounting the disk inserted into the at least one disk slot to set the disk inserted into the at least one disk slot to be in a readable and writable mode if the format of the disk inserted into the at least one disk slot is the specified format;
and initializing the disk inserted into the at least one disk socket.
9. The method of claim 7 or 8, wherein prior to booting the disk inserted in the at least one disk slot to set the disk inserted in the at least one disk slot in the readable and writable mode, the method further comprises:
and under the condition that the version of the extension data stored in the system partition is not compatible with the version of the core data stored in the flash memory, processing the version of the extension data stored in the system partition and the version of the core data stored in the flash memory into compatible versions.
10. A starting device of a computer device is characterized in that the computer device comprises a flash memory, the flash memory is used for storing core data of an operating system of the computer device, and the core data is used for realizing core functions of the computer device;
the device comprises:
the first reading module is used for reading the core data of the operating system from the flash memory after the computer equipment is powered on;
and the running module is used for running a bootstrap program, a kernel and the kernel function of the operating system through the read core data so as to start the computer equipment.
11. The apparatus of claim 10, wherein the computer device further comprises at least one disk socket, and a disk in a non-specified format is inserted into the disk socket, and the disk in the non-specified format is a disk that does not store the extension data of the operating system;
the device further comprises:
the first starting module is used for starting the disk inserted into the at least one disk socket so as to set the disk inserted into the at least one disk socket into a readable mode;
and the building module is used for building the disk list information.
12. The apparatus of claim 11, wherein the first initiation module comprises:
a first mounting sub-module, configured to mount, if a format of a disk inserted into the at least one disk slot is the unspecified format, the disk inserted into the at least one disk slot, so as to set the disk inserted into the at least one disk slot to a readable mode;
and the first initialization submodule is used for initializing the disk inserted into the at least one disk socket.
13. The apparatus of claim 12, wherein the apparatus further comprises:
the format conversion module is used for converting the format of the disk inserted into the at least one disk socket into a specified format so as to divide the storage area of the disk inserted into the at least one disk socket into a system partition and a user partition;
the mounting module is used for re-mounting the disk inserted into the at least one disk socket so as to set the disk inserted into the at least one disk socket into a readable and writable mode;
and the data downloading module is used for downloading the extended data of the operating system from the server and storing the extended data into the system partition.
14. The apparatus of claim 13, wherein the apparatus further comprises:
the second reading module is used for reading the expansion data of the operating system from the system partition;
and the second starting module is used for starting the extended function of the operating system through the read extended data.
15. The apparatus of claim 13, wherein the format conversion module comprises:
the first conversion sub-module is used for displaying formatting prompt information, the formatting prompt information is used for prompting whether the format of the disk inserted into the at least one disk socket is converted into the specified format, and the formatting prompt information is displayed in the process of activating the computer equipment; when it is determined that the format of the disk inserted into the at least one disk slot needs to be converted into the specified format based on the formatting prompt information, converting the format of the disk inserted into the at least one disk slot into the specified format;
or,
a second conversion submodule, configured to display a disk management interface, where the disk management interface includes an option for converting a format of a disk inserted into the at least one disk slot into the specified format, and the disk management interface is displayed after the computer device is activated; when the selection operation of the option is detected, converting the format of the disk inserted into the at least one disk socket into the specified format.
16. The apparatus of claim 10, wherein the computer device further includes at least one disk socket, and a disk of a specified format is inserted into the disk socket, where the disk of a specified format is a disk whose storage area is divided into a system partition and a user partition, the system partition is used to store extension data of the operating system, the extension data is used to implement an extension function of the operating system, and the user partition is used to store user data;
the device further comprises:
the third starting module is used for starting the disk inserted into the at least one disk socket so as to set the disk inserted into the at least one disk socket into a readable and writable mode;
the building module is used for building the disk list information;
the third reading module is used for reading the expansion data of the operating system from the system partition;
and the fourth starting module is used for starting the extended function of the operating system through the read extended data.
17. The apparatus of claim 16, wherein the third enabling module comprises:
the second mounting submodule is used for mounting the disk inserted into the at least one disk socket to set the disk inserted into the at least one disk socket into a readable and writable mode under the condition that the format of the disk inserted into the at least one disk socket is the specified format;
and the second initialization submodule is used for initializing the disk inserted into the at least one disk socket.
18. The apparatus of claim 16 or 17, wherein the apparatus further comprises:
and the compatible processing module is used for processing the version of the extended data stored in the system partition and the version of the core data stored in the flash memory into compatible versions under the condition that the version of the extended data stored in the system partition is incompatible with the version of the core data stored in the flash memory.
19. A computer device, the device comprising:
one or more processors;
one or more memories for storing the one or more processor-executable instructions;
wherein the one or more processors are configured to perform the steps of the method of any one of claims 1-9.
CN202011149919.9A 2020-10-23 2020-10-23 Starting method and device of computer equipment and computer equipment Active CN112231006B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011149919.9A CN112231006B (en) 2020-10-23 2020-10-23 Starting method and device of computer equipment and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011149919.9A CN112231006B (en) 2020-10-23 2020-10-23 Starting method and device of computer equipment and computer equipment

Publications (2)

Publication Number Publication Date
CN112231006A true CN112231006A (en) 2021-01-15
CN112231006B CN112231006B (en) 2022-10-21

Family

ID=74110339

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011149919.9A Active CN112231006B (en) 2020-10-23 2020-10-23 Starting method and device of computer equipment and computer equipment

Country Status (1)

Country Link
CN (1) CN112231006B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6678712B1 (en) * 1996-01-19 2004-01-13 International Business Machines Corporation Method and system for executing a program under one of a plurality of mutually exclusive operating environments
CN1645323A (en) * 2003-12-16 2005-07-27 微软公司 Creating file systems within an image file in a storage technology-abstracted manner
CN101268443A (en) * 2005-09-22 2008-09-17 先进微装置公司 Boot performance optimization for hard drive for personal internet communicator
CN101625645A (en) * 2009-08-11 2010-01-13 成都市华为赛门铁克科技有限公司 Solid state disk, BIOS device, and method and equipment for booting operating system
CN102880478A (en) * 2011-07-15 2013-01-16 启碁科技股份有限公司 Software updating method
CN103106091A (en) * 2013-01-31 2013-05-15 深圳市开立科技有限公司 Start-up system and method of operating system based on removable storage media
CN103377054A (en) * 2012-04-16 2013-10-30 联想(北京)有限公司 Starting method and starting device
CN103430142A (en) * 2010-10-20 2013-12-04 韦斯技术公司 Methods and apparatus for building system images and split booting
CN107766084A (en) * 2016-08-17 2018-03-06 美商安迈科技股份有限公司 Bootload and installation method and its computing system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6678712B1 (en) * 1996-01-19 2004-01-13 International Business Machines Corporation Method and system for executing a program under one of a plurality of mutually exclusive operating environments
CN1645323A (en) * 2003-12-16 2005-07-27 微软公司 Creating file systems within an image file in a storage technology-abstracted manner
CN101268443A (en) * 2005-09-22 2008-09-17 先进微装置公司 Boot performance optimization for hard drive for personal internet communicator
CN101625645A (en) * 2009-08-11 2010-01-13 成都市华为赛门铁克科技有限公司 Solid state disk, BIOS device, and method and equipment for booting operating system
CN103430142A (en) * 2010-10-20 2013-12-04 韦斯技术公司 Methods and apparatus for building system images and split booting
CN102880478A (en) * 2011-07-15 2013-01-16 启碁科技股份有限公司 Software updating method
CN103377054A (en) * 2012-04-16 2013-10-30 联想(北京)有限公司 Starting method and starting device
CN103106091A (en) * 2013-01-31 2013-05-15 深圳市开立科技有限公司 Start-up system and method of operating system based on removable storage media
CN107766084A (en) * 2016-08-17 2018-03-06 美商安迈科技股份有限公司 Bootload and installation method and its computing system

Also Published As

Publication number Publication date
CN112231006B (en) 2022-10-21

Similar Documents

Publication Publication Date Title
CN105867947B (en) Data processing method and device after preset application program updating
JP6750108B2 (en) Operating system installation
CN112882729B (en) Application image upgrading method, device, computer equipment and storage medium
CN101188516B (en) A highly reliable and self-adapted remote update method for network device software system
CN111966423B (en) Method and equipment for realizing memory operating system
WO2011088701A1 (en) Method and device for online upgrading cross-platform version
EP3113018A1 (en) Method and apparatus for running version file
CN105786606A (en) Data transferring method and system for intelligent terminals
CN110855746A (en) Middleware management method, electronic device and storage medium
CN114138283A (en) Remote automatic deployment method, device, terminal and storage medium for operating system
CN114385251A (en) Operating system booting method, system, terminal and storage medium based on memory
CN111290773A (en) System upgrading method, device and readable storage medium
CN112231006B (en) Starting method and device of computer equipment and computer equipment
CN113238778A (en) Method, system, equipment and medium for upgrading BIOS firmware
US20240160425A1 (en) Deployment of management features using containerized service on management device and application thereof
CN112527446A (en) Time zone synchronization method, equipment and terminal equipment
CN112463173B (en) Method, device and medium for remotely installing customized web application by bare metal server
CN114020308A (en) Camera equipment upgrading method, device, equipment and medium
CN111324384B (en) Device and method for selecting starting image file according to device message in pre-execution environment
Cisco Modifying, Downloading, and Maintaining Configuration Files
Cisco Modifying, Downloading, and Maintaining Configuration Files
CN111880828A (en) Method for upgrading multi-board driver in batch in Secure Boot environment
CN114265628B (en) Operating system deployment method, device, electronic equipment, storage medium and system
CN103677890A (en) Information processing apparatus, information processing method, and program
CN110661679B (en) Method and device for testing network card, computer storage medium and terminal

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