CN109375875A - Document transmission method and device - Google Patents
Document transmission method and device Download PDFInfo
- Publication number
- CN109375875A CN109375875A CN201811185655.5A CN201811185655A CN109375875A CN 109375875 A CN109375875 A CN 109375875A CN 201811185655 A CN201811185655 A CN 201811185655A CN 109375875 A CN109375875 A CN 109375875A
- Authority
- CN
- China
- Prior art keywords
- mft
- disk
- export
- terminal device
- sector
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0643—Management of files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0644—Management of space entities, e.g. partitions, extents, pools
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0674—Disk device
- G06F3/0676—Magnetic disk device
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention provides a kind of document transmission method and devices, this method comprises: reading the call number to export the corresponding first MFT from the first reserve sector of predetermined sequence No. the first on the disk of terminal device;It is obtained in the first main file table of the terminal device according to the call number and stores information to the first of export;The addition the 2nd MFT in the second main file table of movable storage device;The file content to export is read from the disk according to the first storage information;The file content is written to the described 2nd in MFT;Load the operating system of the terminal device.
Description
Technical field
The present invention relates to technical field of data security, more particularly to a kind of document transmission method and device.
Background technique
Requirement with enterprise to data safety is continuously improved, in the anti-more demanding occasion of divulging a secret of certain pairs of data, eventually
How safety exports to movable storage device (such as USB flash disk, mobile hard disk light) for file in end equipment, increasingly by people
Attention.
Since the environment of terminal device is complex, no matter it is mounted with that how many money are anti-in the operating system of terminal device and lets out
Close software or how outstanding antivirus software, it is also difficult to ensure during the file on terminal device is transferred to USB flash disk
It is not in the case where divulging a secret.
Therefore, in the related technology when the file on terminal device is exported to movable storage device, in the prevalence of quilt
Export is easy the problem of being stolen in transmission process, in turn result in leakage of data.
Summary of the invention
The present invention provides a kind of data transmission method and device, to solve in the related technology by the text on terminal device
When part exports to movable storage device, the existing file that is exported is easy to be stolen in transmission process, in turn results in data
The problem of divulging a secret.
To solve the above-mentioned problems, according to an aspect of the present invention, the invention discloses a kind of document transmission method, packets
It includes:
It reads from the first reserve sector of predetermined sequence No. the first on the disk of terminal device to export corresponding the
One MFT call number;
The first storage to export is obtained in the first main file table of the terminal device according to the call number
Information;
The addition the 2nd MFT in the second main file table of movable storage device;
The file content to export is read from the disk according to the first storage information;
The file content is written to the described 2nd in MFT;
Load the operating system of the terminal device.
According to another aspect of the present invention, the invention also discloses a kind of file transfer means, comprising:
First read module, for from the disk of terminal device predetermined sequence No. the first the first reserve sector read to
The call number of export the corresponding first MFT;
First obtains module, for being obtained in the first main file table of the terminal device wait lead according to the call number
First storage information of file out;
Adding module, for the addition the 2nd MFT in the second main file table of movable storage device;
Second read module, for reading the text to export from the disk according to the first storage information
Part content;
First writing module, for the file content to be written to the described 2nd in MFT;
Loading module, for loading the operating system of the terminal device.
Compared with prior art, the present invention includes the following advantages:
In embodiments of the present invention, by coming in load operating system, according to export in the first master file
The first storage information in table is read the file content to export from disk, and second based on movable storage device
Main file table exports file content, since export operation executes before os starting, the export of file
Environment is very clean, and any virus is all unable to run (viral operation relies on operating system), similarly, in movable storage device i.e.
Just there is virus, which is similarly unable to run, so that file export process has really accomplished securely and reliably, to avoid text
File is stolen the problem of causing leakage of data in part export process;In addition, in file export due in movable storage device
On the second main file table in create the 2nd MFT of the corresponding export, and file content is stored in the 2nd MFT
, so that can should be still read on other terminal devices to export.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of document transmission method embodiment of the invention;
Fig. 2A is a kind of PC starting schematic diagram in the prior art;
Fig. 2 B is the PC starting schematic diagram under a kind of file export state of the embodiment of the present invention;
Fig. 3 is the step flow chart of another document transmission method embodiment of the invention;
Fig. 4 is the step flow chart of another document transmission method embodiment of the invention;
Fig. 5 is a kind of structural block diagram of file transfer means embodiment of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further detail.
Referring to Fig.1, a kind of step flow chart of document transmission method embodiment of the invention is shown, can specifically include
Following steps:
Step 101, it reads from the first reserve sector of predetermined sequence No. the first on the disk of terminal device to export
Corresponding first MFT call numbers;
Wherein, the embodiment of the present invention will can be needed from derived text on terminal device (such as PC, PC) in advance
The call number of part the corresponding first MFT is written to the reserve sector of predetermined sequence number, i.e., predetermined sequence No. the first here
First reserve sector.
New technology file system includes a main file table (MFT, Master File Table).MFT is a Map Disk
The index file of all objects of middle storage.MFT is formed by MFT (also referred to as file record) one by one, and MFT is on disk volume
The index of each file.
Each MFT in MFT include following data: size, time and timestamp, security attribute and Data Position etc..
Herein to distinguishing, the main file table in the NFTS file system of terminal device is known as the first main file table,
Main file table in the NFTS file system of movable storage device is known as the second file table.
Therefore, one the first MFT are also corresponding in the first main file table to export, wherein in first main body of a court verdict
The identification information of uniqueness, i.e. call number are all had for each MFT in part table.
Step 102, it is obtained in the first main file table of the terminal device to export according to the call number
First storage information;
Wherein it is possible to according to the first MFT call number it is corresponding to search the call number in the first main file table
First MFT, the first information in MFT is all corresponded to export, therefore, can be from the first in MFT
Obtain the first storage information for waiting for export.
Wherein, which may include sector offset shared by the first main file table, be somebody's turn to do the text to export
Part content shared sector offset and sector length on the disk of terminal device.
Step 103, the addition the 2nd MFT in the second main file table of movable storage device;
Wherein, which can be any one mass memory unit, such as USB flash disk, mobile hard disk etc..Its
In, since movable storage device is connect with terminal device, the MFT of the available such as USB flash disk, referred to herein as
Two main file table, and one MFT are created in second main file table, the MFT corresponds to export.
Wherein, if the movable storage device (such as USB flash disk) has new technology file system, it can be obtained from the USB flash disk
Main file table, if the USB flash disk does not have new technology file system, the embodiment of the present invention can be formatted the USB flash disk in advance
Processing makes it have NTFS with file system.In this manner it is possible to obtain the main file table of the USB flash disk, i.e., second from the USB flash disk
Main file table.Second main file table is also to be formed by MFT (also referred to as file record) one by one, and the second main file table is U
The index of each file on the disk volume of disk.Due to needing exist for one file of export to USB flash disk, therefore, it is necessary to the masters in USB flash disk
The MFT item that a corresponding export is created in file table, is named as the 2nd MFT here.
Each MFT in second main file table may include following data: size, time and timestamp, security attribute and
Data Position etc..
Step 104, the file content to export is read from the disk according to the first storage information;
Wherein it is possible to according to this first storage information in should to export file content terminal device disk
Upper shared sector offset and sector length, read the file for waiting for export come the corresponding position on the disk of terminal device
Content.
Step 105, the file content is written to the described 2nd in MFT;
Specifically, the file content read in step 104 can be written to newly-increased in the main file table of the USB flash disk
2nd in MFT.
Optionally, when executing step 105, if the described 2nd MFT institutes in the disk of the movable storage device
The memory space accounted for is greater than or equal to memory space shared by the file content, the then text that can be read step 104
Part content is written to the described 2nd in MFT.
Optionally, if the described 2nd MFT shared memory spaces in the disk of the movable storage device are less than
Memory space shared by the file content then creates preset attribute (a non-resident attribute) in MFT the described 2nd, will
The idle storage space (such as subregion is not used) that the file content is written in the disk of the movable storage device, obtains
(i.e. this document content is in the disk of USB flash disk for corresponding second storage information in the movable storage device for the file content
The position being written, such as the shared information such as sector offset and sector length), by the described 2nd MFT default categories
Property value be set as it is described second storage information.
Wherein, it should be noted that since step 101~step 105 of the embodiment of the present invention is in terminal device
It is carried out before os starting, then since the operating system of terminal device is run not yet, so, whether terminal is set
Standby or movable storage device, they are all currently without file system, therefore, it is impossible to carry out the simple of file unit
Duplication, paste operation (premise of these file operations is file system starting).
Wherein, if the file content to export is only directly stored in USB flash disk, rather than the main body of a court verdict based on USB flash disk
Part table carries out the export of file content, that is, data is not written according to NTFS system format, then the operating system of terminal device
It will be unable to parse the data on USB flash disk according to NTFS format, therefore reading data can not be carried out.By means of the embodiment of the present invention
Technical solution, USB flash disk is after being inserted into other PC, other PC can still parse the data on USB flash disk according to NTFS format, thus just
Often read the data (such as above-mentioned export).
Step 106, the operating system of terminal device is loaded.
Wherein, after file content is exported to USB flash disk, operating system is reloaded, makes the os starting of terminal device
Operation.
In embodiments of the present invention, by coming in load operating system, according to export in the first master file
The first storage information in table is read the file content to export from disk, and second based on movable storage device
Main file table exports file content, since export operation executes before os starting, the export of file
Environment is very clean, and any virus is all unable to run (viral operation relies on operating system), similarly, in movable storage device i.e.
Just there is virus, which is similarly unable to run, so that file export process has really accomplished securely and reliably, to avoid text
File is stolen the problem of causing leakage of data in part export process;In addition, in file export due in movable storage device
On the second main file table in create the 2nd MFT of the corresponding export, and file content is stored in the 2nd MFT
, so that can should be still read on other terminal devices to export.
Optionally, before step 101, can also include: according to the method for the embodiment of the present invention
Judge whether the first reserve sector of predetermined sequence No. the first on the disk of terminal device is stored with data;
If it is not, then load operating system;
Wherein, when in the first reserve sector after the data of export are read can be removed, therefore, when this first
When in reserve sector without any data, then supporting paper has been exported to movable storage device, it is possible to load operation system
The problem of system avoids circulation from carrying out file export operation, and operating system can not start.
If so, thening follow the steps 101, and after executing step 101, the number stored in first reserve sector is removed
According to.
In this way, the embodiment of the present invention from the first reserve sector of predetermined sequence No. the first by reading to export
As soon as after MFT call numbers, by the data dump in first reserve sector, thus when system retains from first again
When data are read in sector, if it find that data are sky, then it can be loaded directly into start-up operation system, avoid enter into endless loop, one
Straight style of writing part export operation (wherein, essence has not had to need derived file).
Optionally, before step 101, can also include: according to the method for the embodiment of the present invention
Obtain the call number to export the corresponding first MFT;
Wherein, the call number information of the MFT item on the disk of new technology file system with each storage file, therefore,
The first MFT call numbers to export can be read from the disk of new technology file system, wherein transport in operating system
Before row, the MFT item information of each file can still be read.
Specifically, the logic cluster number of subregion where record has MFT in first sector of disk logical partition, therefore,
The disk offset address of storage MFT can be calculated according to the parameter of first sector, then read according to the disk offset address
MFT is taken, so as to from the call number information for the MFT item for reading storage file on any one disk in MFT.
The call number is written to the first reserve sector of predetermined sequence No. the first of the disk of terminal device;
It wherein, all can be by the rope of the MFT item to export when the embodiment of the present invention pre-sets each export
Quotation marks are stored to a fixed reserve sector of disk, i.e., the first reserve sector of predetermined sequence No. the first here.This first
Reserve sector is dedicated for storing the first MFT call numbers to export.Therefore, here when needing export,
The call number that the method for the embodiment of the present invention can will acquire is written to the first reserve sector of the predetermined sequence No. first.
Wherein, the disk of terminal device has 63 reserve sectors, respectively No. 0 sector to No. 62 sectors.Wherein, No. 0
Sector is reserve sector, and dedicated for storing MBR code, No. 1~No. 62 sectors are reserve sector, in addition, No. 63 sectors are
System boot sector.
Wherein, MBR (master boot record, Main Boot Record) is one section of guidance positioned at disk foremost
(Loader) code.It is responsible for the differentiation of subregion legitimacy when disc operating system (DOS) is written and read disk, subregion guidance
The positioning of information, it is generated by disc operating system when initializing to hard disk.
As shown in Figure 2 A, when PC starts, BIOS (Basic Input Output System, basic input and output system
System) the MBR code of No. zero sector of local disk can be loaded, which sector MBR code jumps to after completing with operation, existing
Have in technology, the boot sector (i.e. No. 63 sectors) of operating system, start-up operation system can be jumped to after being completed by MBR operation
System.
BootLoader program is written backward since the second reserve sector of predetermined sequence No. the second of the disk,
In, the BootLoader program includes that the call number for storing first reserve sector is corresponding to be led to export
Out to the first code of movable storage device, and for jumping to the disk after first code operation is completed
The second code of predetermined system boot sector;
The MBR of the disk is modified, so that modified MBR operation, which can jump to described second after completing, retains fan
Area is to run the BootLoader program;
In embodiments of the present invention, a guarantor can be chosen in this 62 reserve sectors of No. 1~No. 62 sectors of disk
Stay sector (i.e. the first reserve sector) write-in to the first MFT call numbers of export, further, it is also possible to choose one or
Multiple reserve sectors come be written the embodiment of the present invention design BootLoader (bootload) program.Wherein, for store to
First MFT reserve sectors of call number of export are different from reserve sector for storing BootLoader program,
Therefore, for the interleaved of two groups of data, as shown in Figure 2 B, the first MFT call numbers can be written to No. 62 sectors
(i.e. the first reserve sector) BootLoader program is written backward since No. 1 sector (the second reserve sector i.e. here),
It is written according to the size of BootLoader program from the sector of No. 1 sector sequentially rearwards, such as BootLoader journey here
Sequence is written since No. 1 sector and is successively written to No. 2 and No. 3 sectors backward, and BootLoader program is stored in No. 1 sector here
~No. 3 sectors.
Wherein, it since the occupied space of the code of BootLoader program is larger, can be write since No. 1 sector
Enter.
Certainly, in other embodiments, the first reserve sector, the second reserve sector are also possible to other reserve sectors, example
If the first reserve sector is No. 61 sectors, the second reserve sector is, for example, No. 2 sectors, but is the need to ensure that BootLoader program
With the above-mentioned first MFT call number do not use the same sector.
Wherein, as shown in Figure 2 A, original MBR can jump to No. 63 sectors after operation is completed, and still, the present invention is real
The method for applying example needs to carry out file export operation before os starting, therefore, can modify to MBR code,
So that modified MBR operation can jump to second reserve sector after completing to run the BootLoader journey
Sequence.
And BootLoader program has then write first code and second code in advance, wherein first code is will be wait lead
File exports to the code of movable storage device out, and second code is to jump to the default of disk after first code operation is completed
The code of system boot sector (i.e. No. 63 sectors).
Restart the terminal device.
Wherein, after carrying out aforesaid operations, the terminal device is finally restarted again.
Correspondingly, can then run the first generation of the BootLoader program so when executing step 101
Code is read with the first reserve sector of predetermined sequence No. the first from the disk of terminal device to export corresponding first
MFT call numbers;
So when executing step 102, then the first code of the BootLoader program can be run, with basis
The call number obtains in the first main file table of the terminal device stores information to the first of export;
So when executing step 103, then the first code of the BootLoader program can be run, to move
Addition the 2nd MFT in second main file table of dynamic storage equipment;
So when executing step 104, then the first code of the BootLoader program can be run, with basis
The first storage information reads the file content to export from the disk;
So when executing step 105, then the first code of the BootLoader program can be run, by institute
It states file content and is written to the described 2nd in MFT;
So when executing step 106, then the second code of the BootLoader program can be run, to jump
To the predetermined system boot sector of the disk, according to the code load operating system of the predetermined system boot sector.
In this way, the embodiment of the present invention in the different reserve sectors of disk by being respectively written into export first in advance
The code of the BootLoader program of MFT call number and the embodiment of the present invention designs, in addition, also transporting MBR code
The sector number that jumps is revised as occupied first sector of BootLoader program from No. 63 sectors after row is completed, i.e., and No. 1
Sector, wherein how BootLoader programming carries out code derived from file, and operation is completed after the code such as
What jumps to the code of operating system boot sector.So after restarting terminal device, BIOS can load the MBR generation of No. zero sector
Code jumps operation BootLoader program after the operation of MBR code is completed and carries out file export operation shown in FIG. 1, complete
At file export operation after, jump to No. 63 sector directed start-up operation systems, in this manner it is possible to os starting it
It is preceding to complete export of the file to movable storage device in a secure environment.
According to one embodiment of present invention, corresponding with above-mentioned document transmission method, the embodiment of the invention also provides
A kind of document transmission system, the system include file derivation program (APP, application program) and BootLoader program.Its
In, application program, which is responsible for selecting, wants derived file, and the running environment for constructing BootLoader (executes file shown in Fig. 3
Export prepares process), and BootLoader program is responsible for executing specific file export and (executes file export shown in Fig. 4
Process).
As shown in figure 3, after the starting of file derivation program, firstly, file derivation program can choose USB flash disk to be exported to
Then file obtains the call number of the MFT item of this document, then, the 62nd reserve sector, which is written, in the MFT call number of file (is
Some predetermined reserve sector), BootLoader program is written since No. 1 sector of disk, modifies disk MBR, makes
BootLoader program is first run after BIOS starting, (is modified to its MBR code, then can be jumped after running the MBR code
To sector where BootLoader program, after having run the BootLoader program, then system boot sector operation is jumped to, with
Just start-up operation system, finally, restarting PC.
The file derivation program of the embodiment of the present invention proposes the call number of the MFT item to export before computer is restarted
Before be written to No. 62 reserve sectors, in addition, being written has file export function also in the other reserve sector of disk
BootLoader program, and modification MBR code, finally restart computer.So when starting computer next time, so that it may utilize
BootLoader program to specified file progress unidirectionally export to USB flash disk, due to the export operation element os starting with
Preceding execution, therefore export the very clean any virus of environment and be all unable to run (virus dependence operating system), the similarly wood in USB flash disk
Horse disease poison is equally unable to run, so that file export process has really been accomplished securely and reliably.
As shown in figure 4, system can run MBR code first, then, in MBR after the process of Fig. 3 finally restarts PC
Code operation can jump to embodiment of the present invention BootLoader program after completing is run.
The BootLoader program of so embodiment of the present invention can execute following below scheme:
Firstly, reading the data of No. 62 sectors, wherein the method for the preparatory embodiment of the present invention is in advance in BootLoader journey
It is written with the data for reading which sector in sequence, is all the data for reading No. 62 sectors when executing BootLoader program every time.
If No. 62 sector no datas, system boot sector (No. 63 sectors) is jumped to, to guide by operating system
The code of sector carrys out load operating system;
If there are data in No. 62 sectors, from the call number of the MFT item of No. 62 sector extraction documents;Then 62 sectors are emptied
Data;Then, according to MFT call numbers, file first is obtained in MFT and stores information;Then USB flash disk storage is opened to set
It is standby, obtain the MFT of USB flash disk;Then, according to the MFT item for creating corresponding export in the MFT of USB flash disk;Then, according to file
First storage information obtains the file content to export on the disk of terminal device, and this document content is copied to the U
In the MFT item of correspondence export in the MFT of disk;Finally, jumping to system boot sector (No. 63 sectors) to pass through operation
The code of system boot sector carrys out load operating system.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method
It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to
According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented
Necessary to example.
It is corresponding with method provided by the embodiments of the present invention, referring to Fig. 5, show a kind of file transmission of the present invention
The structural block diagram of Installation practice, can specifically include following module:
First read module 51, the first reserve sector for predetermined sequence No. the first from the disk of terminal device are read
To the MFT call numbers of export the corresponding first;
First obtain module 52, for obtained in the first main file table of the terminal device according to the call number to
First storage information of export;
Adding module 53, for the addition the 2nd MFT in the second main file table of movable storage device;
Second read module 54, it is described to export for being read according to the first storage information from the disk
File content;
First writing module 55, for the file content to be written to the described 2nd in MFT;
Loading module 56, for loading the operating system of the terminal device.
Optionally, described device further include:
Judgment module, whether the first reserve sector of predetermined sequence No. the first stores on the disk for judging terminal device
There are data;
The loading module 56, if being also used to the judgment module determines predetermined sequence No. the first on the disk of terminal device
The first reserve sector it is not stored have data, then load the operating system of the terminal device;
First read module 51, if being also used to the judgment module determines the first default sequence on the disk of terminal device
First reserve sector of row number is stored with data, then from the first reserve sector of predetermined sequence No. the first on the disk of terminal device
Read the call number to export the corresponding first MFT;
Module is removed, for removing the data stored in first reserve sector.
Optionally, described device further include:
Second obtains module, for obtaining the call number to export the corresponding first MFT;
Second writing module, for being written the call number to the of predetermined sequence No. the first of the disk of terminal device
One reserve sector;
Third writing module, for being written backward since the second reserve sector of predetermined sequence No. the second of the disk
BootLoader program, wherein the BootLoader program includes the call number for storing first reserve sector
It is corresponding to export to export to the first code of movable storage device, and in first code operation completion
The second code of the predetermined system boot sector of the disk is jumped to afterwards;
Modified module, for modifying the MBR of the disk, so that modified MBR operation can jump to after completing
Second reserve sector is to run the BootLoader program;
Module is restarted, for restarting the terminal device.
Optionally, first read module 51 is also used to run the first code of the BootLoader program,
It is read with the first reserve sector of predetermined sequence No. the first from the disk of terminal device to export the corresponding first MFT
Call number;
Described first obtains module 52, is also used to run the first code of the BootLoader program, with basis
The call number obtains in the first main file table of the terminal device stores information to the first of export;
The adding module 53 is also used to run the first code of the BootLoader program, to deposit in movement
Store up addition the 2nd MFT in the second main file table of equipment;
Second read module 54 is also used to run the first code of the BootLoader program, with basis
The first storage information reads the file content to export from the disk;
First writing module 55 is also used to run the first code of the BootLoader program, by institute
It states file content and is written to the described 2nd in MFT;
The loading module 56 is also used to run the second code of the BootLoader program, to jump to
The predetermined system boot sector for stating disk, according to the code load operating system of the predetermined system boot sector.
Optionally, first writing module 55 includes:
First write-in submodule, for when the described 2nd MFT in the disk of the movable storage device shared by deposit
When storing up space more than or equal to memory space shared by the file content, then the file content is written to described second
In MFT;
Second write-in submodule, for when the described 2nd MFT in the disk of the movable storage device shared by deposit
When storing up space and being less than memory space shared by the file content, then create preset attribute in MFT the described 2nd, will described in
File content is written to the idle storage space in the disk of the movable storage device, obtains the file content in the shifting
Corresponding second storage information in dynamic storage equipment, by the described 2nd MFT the preset attribute value be set as described in
Second storage information.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart
And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
A kind of document transmission method provided by the present invention, a kind of document transmission system and a kind of file are transmitted above
Device is described in detail, and used herein a specific example illustrates the principle and implementation of the invention, with
The explanation of upper embodiment is merely used to help understand method and its core concept of the invention;Meanwhile for the general of this field
Technical staff, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion
The contents of this specification are not to be construed as limiting the invention.
Claims (10)
1. a kind of document transmission method characterized by comprising
It reads from the first reserve sector of predetermined sequence No. the first on the disk of terminal device to corresponding first MFT of export
The call number of item;
It is obtained in the first main file table of the terminal device according to the call number and stores information to the first of export;
The addition the 2nd MFT in the second main file table of movable storage device;
The file content to export is read from the disk according to the first storage information;
The file content is written to the described 2nd in MFT;
Load the operating system of the terminal device.
2. the method according to claim 1, wherein
The first reserve sector of predetermined sequence No. the first is read to export corresponding the on the disk from terminal device
Before one MFT call number, the method also includes:
Judge whether the first reserve sector of predetermined sequence No. the first on the disk of terminal device is stored with data;
If it is not, then loading the operating system of the terminal device;
If so, being read from the first reserve sector of predetermined sequence No. the first on the disk of terminal device corresponding to export
First MFT call numbers;
The first reserve sector of predetermined sequence No. the first is read to export corresponding the on the disk from terminal device
After one MFT call number, the method also includes: remove the data stored in first reserve sector.
3. the method according to claim 1, wherein predetermined sequence No. the first on the disk from terminal device
The first reserve sector read to export the corresponding first MFT call numbers before, the method also includes:
Obtain the call number to export the corresponding first MFT;
The call number is written to the first reserve sector of predetermined sequence No. the first of the disk of terminal device;
BootLoader program is written backward since the second reserve sector of predetermined sequence No. the second of the disk, wherein
The BootLoader program includes that the call number for storing first reserve sector is corresponding to be exported to export
To the first code of movable storage device, and for jumping to the pre- of the disk after first code operation is completed
If the second code of system boot sector;
Modify the MBR of the disk so that modified MBR operation complete after can jump to second reserve sector with
Run the BootLoader program;
Restart the terminal device.
4. according to the method described in claim 3, it is characterized in that,
The first reserve sector of predetermined sequence No. the first is read to export corresponding the on the disk from terminal device
One MFT call number, comprising:
The first code of the BootLoader program is run, with predetermined sequence No. the first from the disk of terminal device
First reserve sector reads the call number to export the corresponding first MFT;
First storage obtained in the first main file table of the terminal device according to the call number to export
Information, comprising:
Run the first code of the BootLoader program, with according to the call number the first of the terminal device
It is obtained in main file table and stores information to the first of export;
The addition the 2nd MFT in the second main file table of movable storage device, comprising:
The first code of the BootLoader program is run, to add in the second main file table of movable storage device
2nd MFT;
It is described that the file content to export is read from the disk according to the first storage information, comprising:
The first code of the BootLoader program is run, to read according to the first storage information from the disk
The file content to export;
It is described that the file content is written to the described 2nd in MFT, comprising:
The file content is written to the described 2nd MFT by the first code for running the BootLoader program
In;
The load operating system, comprising:
The second code of the BootLoader program is run, to jump to the predetermined system boot sector of the disk,
According to the code load operating system of the predetermined system boot sector.
5. the method according to claim 1, wherein described be written to the 2nd MFT for the file content
Xiang Zhong, comprising:
When the described 2nd MFT shared memory spaces in the disk of the movable storage device are greater than or equal to the file
When memory space shared by content, then the file content is written to the described 2nd in MFT;
When the described 2nd MFT shared memory spaces in the disk of the movable storage device are less than the file content institute
When the memory space accounted for, then preset attribute is created in MFT the described 2nd, the file content is written to the movement and is deposited
The idle storage space in the disk of equipment is stored up, the file content is obtained and corresponding second is deposited in the movable storage device
Store up information, by the described 2nd MFT the preset attribute value be set as it is described second store information.
6. a kind of file transfer means characterized by comprising
First read module, for from the disk of terminal device the first reserve sector of predetermined sequence No. the first read wait export
The call number of file the corresponding first MFT;
First obtains module, for obtaining text to be exported in the first main file table of the terminal device according to the call number
First storage information of part;
Adding module, for the addition the 2nd MFT in the second main file table of movable storage device;
Second read module, for being read in the file to export according to the first storage information from the disk
Hold;
First writing module, for the file content to be written to the described 2nd in MFT;
Loading module, for loading the operating system of the terminal device.
7. device according to claim 6, which is characterized in that described device further include:
Judgment module, whether the first reserve sector of predetermined sequence No. the first is stored with number on the disk for judging terminal device
According to;
The loading module, if being also used to the judgment module determines predetermined sequence No. the first on the disk of terminal device first
Reserve sector is not stored data, then loads the operating system of the terminal device;
First read module, if being also used to the judgment module determines predetermined sequence No. the first on the disk of terminal device
First reserve sector is stored with data, then from the disk of terminal device predetermined sequence No. the first the first reserve sector read to
The call number of export the corresponding first MFT;
Module is removed, for removing the data stored in first reserve sector.
8. device according to claim 6, which is characterized in that described device further include:
Second obtains module, for obtaining the call number to export the corresponding first MFT;
Second writing module, first for being written the call number to predetermined sequence No. the first of the disk of terminal device protects
Stay sector;
Third writing module, for being written backward since the second reserve sector of predetermined sequence No. the second of the disk
BootLoader program, wherein the BootLoader program includes the call number for storing first reserve sector
It is corresponding to export to export to the first code of movable storage device, and in first code operation completion
The second code of the predetermined system boot sector of the disk is jumped to afterwards;
Modified module, for modifying the MBR of the disk, so that can be jumped to after modified MBR operation completion described
Second reserve sector is to run the BootLoader program;
Module is restarted, for restarting the terminal device.
9. device according to claim 8, which is characterized in that
First read module is also used to run the first code of the BootLoader program, with from terminal device
Disk on the first reserve sector of predetermined sequence No. the first read to export the corresponding first MFT call numbers;
Described first obtains module, is also used to run the first code of the BootLoader program, according to the rope
Quotation marks obtain in the first main file table of the terminal device stores information to the first of export;
The adding module is also used to run the first code of the BootLoader program, in movable storage device
The second main file table in addition the 2nd MFT;
Second read module is also used to run the first code of the BootLoader program, according to described
One storage information reads the file content to export from the disk;
First writing module is also used to run the first code of the BootLoader program, by the file
Content is written to the described 2nd in MFT;
The loading module is also used to run the second code of the BootLoader program, to jump to the disk
Predetermined system boot sector, according to the code load operating system of the predetermined system boot sector.
10. device according to claim 6, which is characterized in that first writing module includes:
First write-in submodule, for when the described 2nd MFT storages skies shared in the disk of the movable storage device
Between when being greater than or equal to memory space shared by the file content, then the file content is written to the described 2nd MFT
In;
Second write-in submodule, for when the described 2nd MFT storages skies shared in the disk of the movable storage device
Between when being less than memory space shared by the file content, then preset attribute is created in MFT the described 2nd, by the file
Content is written to the idle storage space in the disk of the movable storage device, obtains the file content and deposits in the movement
Corresponding second storage information in equipment is stored up, sets described second for the described 2nd MFT values of the preset attribute
Store information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811185655.5A CN109375875B (en) | 2018-10-11 | 2018-10-11 | File transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811185655.5A CN109375875B (en) | 2018-10-11 | 2018-10-11 | File transmission method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109375875A true CN109375875A (en) | 2019-02-22 |
CN109375875B CN109375875B (en) | 2020-03-17 |
Family
ID=65403163
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811185655.5A Active CN109375875B (en) | 2018-10-11 | 2018-10-11 | File transmission method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109375875B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030070083A1 (en) * | 2001-09-28 | 2003-04-10 | Kai-Wilhelm Nessler | Method and device for encryption/decryption of data on mass storage device |
CN1684039A (en) * | 2005-02-01 | 2005-10-19 | 苏州超锐微电子有限公司 | Method for realizing network function by magnetic disc main boot record |
CN101311939A (en) * | 2007-05-23 | 2008-11-26 | 徐海军 | Operating system self-guiding, safe access control storage technology realization method |
CN102280134A (en) * | 2011-06-17 | 2011-12-14 | 苏州国芯科技有限公司 | Method for improving data security in removable storage device |
CN102819705A (en) * | 2012-07-26 | 2012-12-12 | 郑州信大捷安信息技术股份有限公司 | System and method for realizing system file integrity verification in master boot sector |
CN103823692A (en) * | 2013-12-31 | 2014-05-28 | 北京华虹集成电路设计有限责任公司 | Computer operating system starting method |
CN104050419A (en) * | 2014-06-25 | 2014-09-17 | 浪潮集团有限公司 | Data uniterm importing device and method based on FPGA |
CN104573573A (en) * | 2014-11-14 | 2015-04-29 | 深圳市芯海科技有限公司 | Data protection system and method for mobile storage |
US20160034211A1 (en) * | 2014-08-04 | 2016-02-04 | Kabushiki Kaisha Toshiba | Memory system and information processing device |
CN105917322A (en) * | 2013-12-31 | 2016-08-31 | 赫耳墨斯科姆股份责任有限公司 | Method for exchanging controls through a usb disc and relative devices which allow the implementation thereof |
CN106548084A (en) * | 2015-09-02 | 2017-03-29 | 北京壹人壹本信息科技有限公司 | File security means of defence and device |
CN106990923A (en) * | 2017-03-30 | 2017-07-28 | 武汉大学 | A kind of Dropbox constructing apparatus and method based on personal memory device |
-
2018
- 2018-10-11 CN CN201811185655.5A patent/CN109375875B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030070083A1 (en) * | 2001-09-28 | 2003-04-10 | Kai-Wilhelm Nessler | Method and device for encryption/decryption of data on mass storage device |
CN1684039A (en) * | 2005-02-01 | 2005-10-19 | 苏州超锐微电子有限公司 | Method for realizing network function by magnetic disc main boot record |
CN101311939A (en) * | 2007-05-23 | 2008-11-26 | 徐海军 | Operating system self-guiding, safe access control storage technology realization method |
CN102280134A (en) * | 2011-06-17 | 2011-12-14 | 苏州国芯科技有限公司 | Method for improving data security in removable storage device |
CN102819705A (en) * | 2012-07-26 | 2012-12-12 | 郑州信大捷安信息技术股份有限公司 | System and method for realizing system file integrity verification in master boot sector |
CN103823692A (en) * | 2013-12-31 | 2014-05-28 | 北京华虹集成电路设计有限责任公司 | Computer operating system starting method |
CN105917322A (en) * | 2013-12-31 | 2016-08-31 | 赫耳墨斯科姆股份责任有限公司 | Method for exchanging controls through a usb disc and relative devices which allow the implementation thereof |
CN104050419A (en) * | 2014-06-25 | 2014-09-17 | 浪潮集团有限公司 | Data uniterm importing device and method based on FPGA |
US20160034211A1 (en) * | 2014-08-04 | 2016-02-04 | Kabushiki Kaisha Toshiba | Memory system and information processing device |
CN104573573A (en) * | 2014-11-14 | 2015-04-29 | 深圳市芯海科技有限公司 | Data protection system and method for mobile storage |
CN106548084A (en) * | 2015-09-02 | 2017-03-29 | 北京壹人壹本信息科技有限公司 | File security means of defence and device |
CN106990923A (en) * | 2017-03-30 | 2017-07-28 | 武汉大学 | A kind of Dropbox constructing apparatus and method based on personal memory device |
Also Published As
Publication number | Publication date |
---|---|
CN109375875B (en) | 2020-03-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210096879A1 (en) | Linking Virtualized Application Namespaces at Runtime | |
US9672029B2 (en) | Determining test case priorities based on tagged execution paths | |
US20200249925A1 (en) | On-demand loading of dynamic scripting language code for reduced memory usage | |
TW201541353A (en) | Method for loading driver and embedded device | |
WO2016061978A1 (en) | Mobile storage mounting method and device | |
CN107766130B (en) | Method and device for migrating virtual machine to container | |
CN107870769A (en) | The installation method and device of operating system | |
US10346150B2 (en) | Computerized system and method for patching an application by separating executables and working data using different images | |
CN111078279B (en) | Method, device, equipment and storage medium for processing byte code file | |
CN105760191A (en) | Embedded system equipment programming mass production method | |
CN108845839A (en) | Application page loading method, device and computer readable storage medium | |
CN105739961A (en) | Starting method and device of embedded system | |
US11675628B2 (en) | Methods for operating storage driver in container environment and storage driver apparatuses | |
US20140181161A1 (en) | Method and system for speeding up computer program | |
JP2009104443A (en) | Method for starting os | |
CN109375875A (en) | Document transmission method and device | |
CN102799449B (en) | Multi-system starting method and system | |
CN106959819A (en) | Date storage method, device and system and portable electric appts | |
JP6136834B2 (en) | Storage control device, control program, and control method | |
WO2017076034A1 (en) | Method and device for formatting memory of mobile terminal | |
US20080184204A1 (en) | Dynamic validation using reflection | |
CN109634923A (en) | Obtain the method and computer readable storage medium of executable file in operating system | |
TWI777636B (en) | Method, device, and computer program product for composing modular firmware | |
CN111563006B (en) | Data processing method, intelligent terminal and storage medium | |
US20050180038A1 (en) | Data backup system, method, and program |
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 |