WO2016177067A1 - 一种扩展手机存储的方法及终端 - Google Patents
一种扩展手机存储的方法及终端 Download PDFInfo
- Publication number
- WO2016177067A1 WO2016177067A1 PCT/CN2016/075541 CN2016075541W WO2016177067A1 WO 2016177067 A1 WO2016177067 A1 WO 2016177067A1 CN 2016075541 W CN2016075541 W CN 2016075541W WO 2016177067 A1 WO2016177067 A1 WO 2016177067A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- memory card
- external memory
- block device
- file system
- expandable block
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/1805—Append-only file systems, e.g. using logs or journals to store data
Definitions
- the present invention relates to the field of terminal technologies, and in particular, to a method and a terminal for extending mobile phone storage.
- Android is a Linux-based free and open source operating system led and developed by Google and the Open Handset Alliance, primarily for mobile devices such as smartphones and tablets. There is no unified Chinese name, and more people in mainland China use “Android” or “Anzhi”. Android is already the world's largest smartphone operating system.
- the data corresponds to different pictures, videos, applications, etc.; but for computers, these are sequences of 0 and 1, which are based on the content they represent, on the medium they store. Divided into different groups, such a set of data, is a file of the computer. If the data can only be organized into files, but not classified, the files will be cluttered. Every time we search for a file, we have to check one file and one file, which is too much trouble.
- a file system is a logically organized form of a file that stores individual files in a clearer way.
- the Linux file system locates the location of the file in the file system by a pathname like "/mnt/sdcard/userfile".
- the Linux file system is a tree structure.
- the root directory of Linux is "/", which is the top of the tree structure, and the fork of this tree is represented by "/”.
- the different forks are directories (the directory is equivalent to what we see in the windows interface). Folder) to divide.
- the end of the fork of the tree represents a file.
- Linux manages everything in the system as a file. In Windows, our common hardware devices, disk partitions, etc. are regarded as files in Linux. Access to devices and partitions is the file corresponding to reading and writing.
- the mount point is actually the entry directory of the disk file system in Linux. It is similar to the C:, D:, E: and other drive letters used to access different partitions in Windows.
- the mount point is the mobile application installation. Less steps.
- Android devices In order to meet the system's necessary data storage, Android devices have a built-in memory card, the default mount point of the built-in memory card is /mnt/sdcard. Due to differentiated competition and cost considerations, the storage space of the built-in memory card is large or small. When the built-in storage space is small, in order to meet the user's large file storage requirements, some Android devices also provide an extended memory card slot. An external memory card inserted into an expansion memory card slot generally requires additional purchase by the user, and its storage space is usually large.
- the mount point of the mount point is different from the default mount point of the built-in space.
- the new mount point is usually /mnt/extsdcard or / Mnt/extcard.
- the technical problem to be solved by the present invention is to provide a method and a terminal for expanding mobile phone storage, which are used to solve the problem that the existing terminal has different mounting paths of the external memory card and the mounting path of the built-in memory card, and is used in some large applications.
- the program cannot run while the internal memory card is running, and the mounting path of the external memory card cannot meet the running conditions of the application, which may cause the application to be inoperable and affect the user experience.
- an embodiment of the present invention provides a method for extending a mobile phone storage, which is applied to a terminal having an external memory card identification device, and the terminal is provided with a file system for mounting the terminal.
- the step of determining whether the external memory card is first inserted includes:
- the identification information of the external memory card does not exist in the record table, it indicates that the external memory card is inserted for the first time;
- the identification information of the external memory card exists in the record table, it indicates that the external memory card is not inserted for the first time.
- the method when the external memory card is not first inserted, the method further includes:
- the method before the step of adding the external memory card to a record table of the expandable block device, the method further includes:
- the step of adding the external memory card to the record table of the expandable block device is specifically:
- the method before the step of suspending and uninstalling a file system running on a mount point of the expandable block device, the method further includes:
- the step of suspending and unmounting the file system running on the mount point of the expandable block device is entered.
- An embodiment of the present invention provides a terminal, including an external memory card identification device and an expandable block device for mounting a file system of the terminal, where the file system is mounted at a mount point of the expandable block device.
- the terminal further includes:
- the judging module is configured to determine whether the external memory card is inserted for the first time after the external memory card is inserted, identified, and registered;
- the first suspension and uninstallation module is configured to suspend and uninstall the file system running on the mount point of the expandable block device if the external memory card is inserted for the first time;
- Adding a module configured to add the external memory card to a record table of the expandable block device
- the determining module comprises:
- An obtaining unit configured to obtain a record table of the expandable block device, where the record table includes identifier information of the storage device on the terminal;
- a searching unit configured to search, in a record table of the expandable block device, whether identifier information of the external memory card exists
- a determining unit configured to indicate that the external memory card is inserted for the first time if the identification information of the external memory card does not exist in the record table
- the identification information of the external memory card exists in the record table, it indicates that the external memory card is not inserted for the first time.
- the terminal further includes:
- a second suspension and unloading module configured to suspend and unload a file system running on a mount point of the expandable block device when the external memory card is not inserted for the first time
- the terminal further includes:
- Formatting module set to format the external memory card.
- the adding module is specifically:
- the identification information of the external memory card and the sector start address and size of the external memory card are stored in the record table of the expandable block device.
- the terminal further includes:
- the acquiring module is configured to: when the external memory card is inserted for the first time, acquire a selection instruction of whether the user inputs the storage space extension, and trigger the first suspension in the selection instruction that the user needs to perform the storage space expansion And uninstall the module.
- the above solution improves the flexibility of the system by adding an external memory card to the partition where the file system is running, without adding a mount point to the file system path.
- Embodiment 1 is a schematic flow chart of the method according to Embodiment 1 of the present invention.
- FIG. 2 is a schematic flow chart of the method according to Embodiment 2 of the present invention.
- FIG. 3 is a schematic structural diagram of the terminal according to Embodiment 3 of the present invention.
- FIG. 4 is a schematic diagram showing the mapping relationship between internal and external storage devices and expandable block devices in the present invention.
- the present invention is directed to the existing terminal because the mounting path of the external memory card is different from the mounting path of the built-in memory card, and when some large applications cannot run on the internal memory card, the mounting path of the external memory card is Failure to meet the operating conditions of the application will result in the application not being used properly, affecting the user experience, and providing a method and terminal for extending the storage of the mobile phone.
- the method for storing an extended mobile phone according to the first embodiment of the present invention is applied to a terminal having an external memory card identification device, and the terminal is provided with a file system for mounting the terminal.
- An expandable block device, the file system being mounted on a mount point of the expandable block device, wherein the method comprises:
- Step 100 after the external memory card is inserted, identified and registered, determining whether the external memory card is inserted for the first time;
- the driver of the external memory card drives and recognizes the external memory card to perform an external memory card. registered.
- Step 200 if the external memory card is inserted for the first time, the suspension and uninstallation are run on the mount point of the expandable block device.
- Step 300 adding the external memory card to a record table of the expandable block device
- all the block devices are stored in the record table of the expandable block device (in the present invention, the terminal built-in memory card is mapped to the built-in memory block device, and the external memory card is mapped to the external memory block device) Identification information, and the corresponding sector start offset and size of the block device.
- the external file system initiates a read or write operation on the block device, its driver queries the table to obtain the actual offset operation of the real block device and the corresponding offset on the real block device.
- Step 400 remounting the file system to a mount point of the expandable block device.
- the external memory card has the same mount point as the built-in memory card, and is no longer suspended as a separate storage device. Instead, add it to an existing expandable block device, avoiding adding another mount point to the file system path. In this way, the storage space is expanded, and the user is no longer restricted by any use, just like using the original built-in storage space of the system; and the additional way of adding an external storage card is also It is guaranteed that the data that has been stored in the built-in storage space is not affected when expanding.
- the scalable block device adds a special special block device that can be dynamically expanded to the Linux system.
- the expandable block device When there is only a built-in memory card, the expandable block device only contains the built-in memory block device, and the file system mount point /mnt/sdcard is mounted to the expandable block device.
- the step 100 includes:
- the identification information of the external memory card does not exist in the record table, it indicates that the external memory card is inserted for the first time;
- the identification information of the external memory card exists in the record table, it indicates that the external memory card is not inserted for the first time.
- the record of the external memory card is stored in the record table of the expandable block device, which proves that the external memory card has been expanded, in order to avoid repeated operations.
- the external memory card identification registration is completed, it is necessary to perform verification whether or not the extension has been performed. It should be noted that, in the present invention, the external memory card is considered to be the first insertion as long as it has not been expanded.
- the method further includes:
- the method further includes:
- the external memory card By formatting the external memory card in accordance with the format of the file system that is mounted on the internal memory card, it is ensured that the external memory card can be adapted to the operation requirements of the file system after being expanded to avoid running errors.
- step 300 is:
- the identification information of the external memory card and the sector start address and size of the external memory card are stored in the record table of the expandable block device.
- the newly added external storage device is no longer mounted in another partition manner, but is directly added to the partition where the current built-in storage device is located, thereby overcoming the limitation of use caused by different partitions, and improving The user experience effect; compared with the terminal with large built-in storage space, the flexibility of the system is improved, and the production cost of the terminal is reduced.
- the user's operation confirmation is required when the external memory card is formatted and the file system is suspended and unloaded. Therefore, in the second embodiment of the present invention, Continuing with the method of expanding mobile phone storage, as shown in FIG.
- Step 100 after the external memory card is inserted, identified and registered, determining whether the external memory card is inserted for the first time;
- Step 200 If the external memory card is inserted for the first time, suspend and uninstall the file system running on the mount point of the expandable block device;
- Step 300 adding the external memory card to a record table of the expandable block device
- Step 400 remounting the file system to a mount point of the expandable block device.
- the method further includes:
- the method further includes:
- the method further includes:
- step 200 is performed to suspend and unload the file system running on the mount point of the expandable block device.
- the specific implementation process of the foregoing solution is: when detecting that the external memory card has not been expanded by the storage space, the terminal display interface displays a dialog box prompting the user whether to expand the storage space and format the external memory card. Then follow the operation commands entered by the user for subsequent operations.
- the second embodiment by performing user confirmation during the expansion, the user is prevented from erroneously inserting the external memory card when the external memory card is inserted by mistake, and the user data is lost.
- the second embodiment ensures the user. Safe operation.
- Step 11 the external memory card identification device detects in real time whether an external memory card is inserted in the extended memory card slot;
- Step 12 Identify and register an external memory card when detecting the insertion of an external memory card
- Step 13 it is determined whether the external memory card has undergone storage space expansion; if the storage space expansion has been performed, proceed to step 14, otherwise proceed to step 20;
- Step 14 asking the user whether to perform storage space expansion; if the user performs expansion of the storage space, proceed to steps 15 and 17;
- Step 15 aborting the file system operation that is running on /mnt/sdcard
- Step 16 Unmount the file system on the /mnt/sdcard mount point.
- step 17 the external memory card is formatted. It should be noted that since step 17 and step 15 and step 16 are parallel processes, step 17 and step 15 and step 16 are usually performed simultaneously.
- Step 18 adding an external memory card to the record table of the expandable block device
- Step 19 remount the file system to the mount point /mnt/sdcard of the expandable block device in an extended manner
- Step 20 aborting the file system operation that is running on /mnt/sdcard
- Step 21 Unmount the file system on the mount point of the mnt/sdcard
- Step 22 remount the file system to the mount point /mnt/sdcard of the expandable block device in an extended manner.
- step 20 and step 15, step 21 and step 16 and step 22 and step 19 are the same implementation manner.
- the terminal performs a branching step according to the execution condition.
- the external memory card and the built-in memory card are set to the same mount point in an extended manner, thereby further
- the external memory card has the same function as the built-in memory card, and the terminal can be regarded as using the terminal's own memory card when using the external memory card, thereby improving the flexibility of the terminal system; meanwhile, the external memory card has been performed.
- After the expansion there is no need to expand, just restart the file system of the terminal; at the same time, before the expansion of the external memory card, whether or not the user confirmation is extended, thereby effectively avoiding the user's misoperation.
- a third embodiment of the present invention provides a terminal, including an external memory card identification device and an expandable block device for mounting a file system of the terminal, where the file system is mounted on the The mounting point of the extended block device, where the terminal further includes:
- the determining module 31 is configured to determine whether the external memory card is inserted for the first time after the external memory card is inserted, identified, and registered.
- the first suspension and unloading module 32 is configured to suspend and uninstall the file system running on the mount point of the expandable block device if the external memory card is inserted for the first time;
- An adding module 33 configured to add the external memory card to a record table of the expandable block device
- the mount module 34 is configured to remount the file system to a mount point of the expandable block device.
- the determining module 31 includes:
- An obtaining unit configured to obtain a record table of the expandable block device, where the record table includes identifier information of the storage device on the terminal;
- a searching unit configured to search, in a record table of the expandable block device, whether identifier information of the external memory card exists
- a determining unit configured to indicate that the external memory card is inserted for the first time if the identification information of the external memory card does not exist in the record table
- the identification information of the external memory card exists in the record table, it indicates that the external memory card is not inserted for the first time.
- the terminal further includes:
- a second suspension and unloading module configured to suspend and unload a file system running on a mount point of the expandable block device when the external memory card is not inserted for the first time
- the terminal further includes:
- Formatting module set to format the external memory card.
- the adding module 33 is specifically:
- the identification information of the external memory card and the sector start address and size of the external memory card are stored in the record table of the expandable block device.
- the terminal embodiment is a terminal corresponding to the method in the first embodiment, and all implementation manners of the method are applicable to the terminal embodiment, and can also achieve the same method as in the first embodiment. Technical effects.
- a fourth embodiment of the present invention provides a terminal, including an external memory card identification device and an expandable block device for mounting a file system of the terminal, where the file system is mounted.
- the mount point of the expandable block device, wherein the terminal further includes:
- the determining module 31 is configured to determine whether the external memory card is inserted for the first time after the external memory card is inserted, identified, and registered.
- the first suspension and unloading module 32 is configured to suspend and uninstall the file system running on the mount point of the expandable block device if the external memory card is inserted for the first time;
- An adding module 33 configured to add the external memory card to a record table of the expandable block device
- the mount module 34 is configured to remount the file system to a mount point of the expandable block device.
- the determining module 31 includes:
- An obtaining unit configured to obtain a record table of the expandable block device, where the record table includes identifier information of the storage device on the terminal;
- a searching unit configured to search, in a record table of the expandable block device, whether identifier information of the external memory card exists
- a determining unit configured to indicate that the external memory card is inserted for the first time if the identification information of the external memory card does not exist in the record table
- the identification information of the external memory card exists in the record table, it indicates that the external memory card is not inserted for the first time.
- the terminal further includes:
- a second suspension and unloading module configured to suspend and unload a file system running on a mount point of the expandable block device when the external memory card is not inserted for the first time
- the terminal further includes:
- Formatting module set to format the external memory card.
- the adding module 33 is specifically:
- the identification information of the external memory card and the sector start address and size of the external memory card are stored in the record table of the expandable block device.
- the terminal further includes:
- the acquiring module is configured to: when the external memory card is inserted for the first time, acquire a selection instruction of whether the user inputs the storage space extension, and trigger the first suspension in the selection instruction that the user needs to perform the storage space expansion And uninstall module 32.
- the terminal embodiment is a terminal corresponding to the method in the second embodiment, and all implementation manners of the method are applicable to the terminal embodiment, and can also achieve the same method as that in the second embodiment.
- the internal memory card and the external memory card are respectively mapped into a built-in storage block device and an external storage block device in the expandable block device, and both belong to the same default mount point/mnt/sdcard.
- a record table is stored, which stores the block device (usually the identification information of the block device, such as the block device number) contained in the block device, and the sector start offset corresponding to the block device. And size.
- the external file system initiates a read or write operation on the block device, its driver queries the record table to obtain the actual offset operation of the real block device and the corresponding offset on the real block device.
- the expandable block device provides a block device add interface through which new block devices can be added to the record table.
- Linux provides a NETLINK_KOBJECT_UEVENT notification mechanism for hot plugging of external devices.
- the user notification program added by the user-mode expandable block device detects the insertion of the external memory card through the socket interface. If an insertion occurs and the external memory card has not been expanded, the user notification program issues a query to the user via the user graphical interface (GUI) whether to expand the system space, and gives the user a formatting operation to perform an external memory card. And the prompt to interrupt the current file system operation; after obtaining the user's positive confirmation, the user notification program notifies the background of the expandable block device through the existing communication mechanism (special system call, special file, or signal, etc.) provided by Linux.
- the hypervisor starts the addition of external block devices.
- the built-in storage block device already owned by the system and the block device corresponding to the external memory card that may already be owned by the system are combined, and the existing block device is generated by the added interface of the expandable block device.
- the special block device is mounted for the file system; it should be noted that the kernel needs to create a new kernel daemon thread for the expandable block device, and the kernel daemon thread runs the background management program of the expandable block device.
- the background manager waits for the notification of the user notification program added by the expandable block device, and when notified, formats the external memory card to the file system corresponding to the existing built-in storage (such as ext3); aborts all current on the current built-in memory card Perform file operations, close all open files, and then unmount the file system; call the add interface of the expandable block device to set the block corresponding to the formatted external memory card
- the device is added to the expandable block device; finally, the file system is remounted by the file system's extended mount mode, and the entire file system is expanded.
- the foregoing technical solution provided by the embodiment of the present invention is applied to a terminal having an external memory card identification device, and the terminal is provided with an expandable block device for mounting a file system of the terminal, and the file system Mounted on the mount point of the expandable block device, after the external memory card is inserted, identified and registered, it is determined whether the external memory card is inserted for the first time; if the external memory card is inserted for the first time, Terminating and unloading the file system running on the mount point of the expandable block device; adding the external memory card to the record table of the expandable block device; remounting the file system to the expandable block device Mount point.
- the above solution improves the flexibility of the system by adding an external memory card to the partition where the file system is running, without adding a mount point to the file system path.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
一种扩展手机存储的方法及终端,所述方法应用于一具有外置存储卡识别设备的终端,且所述终端上设置有用于挂载所述终端的文件***的可扩展块设备,所述文件***挂载在所述可扩展块设备的挂载点上,其中,所述方法包括:在外置存储卡***,识别并注册完成后,判断所述外置存储卡是否为首次***(100);若所述外置存储卡为首次***,则中止及卸载在可扩展块设备的挂载点上运行的文件***(200);将所述外置存储卡添加到可扩展块设备的记录表中(300);重新挂载所述文件***到可扩展块设备的挂载点(400)。通过将外置存储卡添加到文件***运行所在的分区,不会在文件***路径上新增挂载点,提高了***的灵活性。
Description
本发明涉及终端技术领域,特别涉及一种扩展手机存储的方法及终端。
Android是一种基于Linux的自由及开放源代码的操作***,由Google公司和开放手机联盟领导及开发,主要使用于移动设备,如智能手机和平板电脑。尚未有统一中文名称,中国大陆地区较多人使用“安卓”或“安致”。Android已经是全球市场份额最大的智能手机操作***。
数据对于用户来讲,对应的就是不同的图片,视频,应用程序等等;但对于计算机来说,这些都是0和1的序列,这些序列根据其代表的内容,在其存储的介质上被划分成了不同的组,这样的一组数据,就是计算机的一个文件。如果数据只能组织为文件,而不能分类的话,文件会杂乱无章。每次我们搜索某一个文件,就要一个文件又一个文件地检查,太过麻烦。文件***是文件在逻辑上的组织形式,它以一种更加清晰的方式来存放各个文件。
Linux的文件***通过类似“/mnt/sdcard/userfile”这样的路径名来定位文件在文件***中的位置。Linux的文件***是一个树状(tree)结构。Linux的根目录就是“/”,也就是树状结构的最顶端,而这个树的分叉以“/”来表示,不同的分叉以目录(directory,相当于我们在windows界面中看到的文件夹)来划分。这个树的分叉的最末端就代表的是一个文件。Linux将***中的一切都作为文件来管理。在Windows中我们常见的硬件设备、磁盘分区等,在Linux中都被视作文件,对设备、分区的访问就是读写对应的文件。
挂载点实际上就是Linux中的磁盘文件***的入口目录,类似于Windows中的用来访问不同分区的C:、D:、E:等盘符;选择挂载点是手机应用程序安装必不可少的步骤。为了满足***必须的数据存储,Android设备都拥有一个内置存储卡,该内置存储卡的默认挂载点为/mnt/sdcard。出于差异化竞争以及成本的考虑,内置存储卡的存储空间有大有小。当内置存储空间较小时,为了满足用户的大文件存储的需求,有的Android设备还提供了扩展存储卡插槽。插到扩展存储卡插槽的外置存储卡一般需要用户额外购买,其存储空间通常较大。由于外置存储卡在Android***会被识别为新增的独立存储设备,所以其挂载点与内置空间的默认挂载点是不同的,新增的挂载点一般是/mnt/extsdcard或者/mnt/extcard。
在Android***中,只有安装在默认挂载点为/mnt/sdcard的存储卡上的应用程序才能正常运行,对于拥有外置存储卡的Android***,通常只有安装在内置存储卡上的应用程序才能正常运行。而外置存储卡提供的空间通常只能用于存储一些较小的应用程序或文件,如视频和图片等。而外置一些较大的应用程序,如凯立德GPS导航程序,会因为数据量较大无法安装在空间较小的内置用户存储分区;且因为挂载点的原因,该应用程序又无法安装在外插的大容量扩展存储卡上,此种情况会导致手机无法满足用户的需求,造成用户体验效果不佳的
问题。
发明内容
本发明要解决的技术问题是提供一种扩展手机存储的方法及终端,用以解决现有的终端因外置存储卡的挂载路径与内置存储卡的挂载路径不同,在一些较大应用程序不能在内置存储卡运行时,而外置存储卡的挂载路径又不能满足该应用程序的运行条件,会导致该应用程序不能正常使用,影响用户使用体验效果的问题。
为了解决上述技术问题,本发明实施例提供一种扩展手机存储的方法,应用于一具有外置存储卡识别设备的终端,且所述终端上设置有用于挂载所述终端的文件***的可扩展块设备,所述文件***挂载在所述可扩展块设备的挂载点上,其中,所述方法包括:
在外置存储卡***,识别并注册完成后,判断所述外置存储卡是否为首次***;
若所述外置存储卡为首次***,则中止及卸载在可扩展块设备的挂载点上运行的文件***;
将所述外置存储卡添加到可扩展块设备的记录表中;
重新挂载所述文件***到可扩展块设备的挂载点。
在本发明的实施例中,所述在外置存储卡***,识别并注册完成后,判断所述外置存储卡是否为首次***的步骤包括:
获取可扩展块设备的记录表,所述记录表中包含终端上的存储设备的标识信息;
在所述可扩展块设备的记录表中查找是否存在所述外置存储卡的标识信息;
若所述记录表中不存在所述外置存储卡的标识信息,则表明所述外置存储卡为首次***;
若所述记录表中存在所述外置存储卡的标识信息,则表明所述外置存储卡不为首次***。
在本发明的实施例中,在所述外置存储卡不为首次***时,所述方法还包括:
中止及卸载在可扩展块设备的挂载点上运行的文件***;
重新在可扩展块设备的挂载点上运行所述文件***。
在本发明的实施例中,在所述将所述外置存储卡添加到可扩展块设备的记录表中的步骤之前,所述方法还包括:
格式化所述外置存储卡。
在本发明的实施例中,所述将所述外置存储卡添加到可扩展块设备的记录表中的步骤具体为:
将所述外置存储卡的标识信息以及外置存储卡的扇区起始地址和大小存入所述可扩展块
设备的记录表中。
在本发明的实施例中,在所述中止及卸载在可扩展块设备的挂载点上运行的文件***的步骤之前,所述方法还包括:
获取用户输入的是否进行存储空间扩展的选择指令;
若选择指令表明用户需要进行存储空间扩展,则进入所述中止及卸载在可扩展块设备的挂载点上运行的文件***的步骤。
本发明实施例提供一种终端,包括外置存储卡识别设备和用于挂载所述终端的文件***的可扩展块设备,所述文件***挂载在所述可扩展块设备的挂载点上,其中,所述终端还包括:
判断模块,设置为在外置存储卡***,识别并注册完成后,判断所述外置存储卡是否为首次***;
第一中止及卸载模块,设置为若所述外置存储卡为首次***,则中止及卸载在可扩展块设备的挂载点上运行的文件***;
添加模块,设置为将所述外置存储卡添加到可扩展块设备的记录表中;
挂载模块,设置为重新挂载所述文件***到可扩展块设备的挂载点。
在本发明的实施例中,所述判断模块包括:
获取单元,设置为获取可扩展块设备的记录表,所述记录表中包含终端上的存储设备的标识信息;
查找单元,设置为在所述可扩展块设备的记录表中查找是否存在所述外置存储卡的标识信息;
判断单元,设置为若所述记录表中不存在所述外置存储卡的标识信息,则表明所述外置存储卡为首次***;
若所述记录表中存在所述外置存储卡的标识信息,则表明所述外置存储卡不为首次***。
在本发明的实施例中,所述终端还包括:
第二中止及卸载模块,设置为在所述外置存储卡不为首次***时,中止及卸载在可扩展块设备的挂载点上运行的文件***;
运行模块,设置为重新在可扩展块设备的挂载点上运行所述文件***。
在本发明的实施例中,所述终端还包括:
格式化模块,设置为格式化所述外置存储卡。
在本发明的实施例中,所述添加模块具体为:
将所述外置存储卡的标识信息以及外置存储卡的扇区起始地址和大小存入所述可扩展块设备的记录表中。
在本发明的实施例中,所述终端还包括:
获取模块,设置为在所述外置存储卡为首次***时,获取用户输入的是否进行存储空间扩展的选择指令,并在所述选择指令表明用户需要进行存储空间扩展,触发所述第一中止及卸载模块。
本发明的有益效果是:
上述方案,通过将外置存储卡添加到文件***运行所在的分区,不会在文件***路径上新增挂载点,提高了***的灵活性。
图1表示本发明实施例一的所述方法的流程示意图;
图2表示本发明实施例二的所述方法的流程示意图;
图3表示本发明实施例三的所述终端的结构示意图;
图4表示本发明中内、外置存储设备与可扩展块设备的映射关系示意图。
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图及具体实施例对本发明进行详细描述。
本发明针对现有的终端因外置存储卡的挂载路径与内置存储卡的挂载路径不同,在一些较大应用程序不能在内置存储卡运行时,而外置存储卡的挂载路径又不能满足该应用程序的运行条件,会导致该应用程序不能正常使用,影响用户使用体验效果的问题,提供一种扩展手机存储的方法及终端。
如图1所示,本发明实施例一的所述扩展手机存储的方法,应用于一具有外置存储卡识别设备的终端,且所述终端上设置有用于挂载所述终端的文件***的可扩展块设备,所述文件***挂载在所述可扩展块设备的挂载点上,其中,所述方法包括:
步骤100,在外置存储卡***,识别并注册完成后,判断所述外置存储卡是否为首次***;
应当说明的是,当终端在侦测到外置存储卡识别设备中有外置存储卡***时,外置存储卡的驱动程序会进行外置存储卡的驱动与识别,进行外置存储卡的注册。
步骤200,若所述外置存储卡为首次***,则中止及卸载在可扩展块设备的挂载点上运行
的文件***;
因可扩展块设备要进行的动态扩展操作会改变其属性,所以需要先卸载已经挂载到该可扩展块设备的挂载点上的文件***。
应当说明的是,在中止及卸载文件***时,为了保证数据的完整,通常先中止文件***,然后再卸载挂载点上的文件***。
步骤300,将所述外置存储卡添加到可扩展块设备的记录表中;
应当说明的是,所述可扩展块设备的记录表中存储了所有的块设备(本发明中将终端内置存储卡映射为内置存储块设备,将外置存储卡映射为外置存储块设备)的标识信息,以及该块设备的对应的扇区起始偏移和大小。当外部文件***对该块设备发起读写操作时,它的驱动程序会查询表,从而取得读写实际操作真实块设备及在真实块设备上对应的偏移。
步骤400,重新挂载所述文件***到可扩展块设备的挂载点。
上述方案,通过将首次***的外置存储卡添加到可扩展块设备的记录表中,使得外置存储卡拥有与内置存储卡一样的挂载点,不再将其作为独立的存储设备进行挂载,而是将其添加到已有的可扩展块设备上,避免了在文件***路径上再增加一个挂载点。这样一来,既扩展了存储空间,又使得用户在使用时,不再受到任何的限制,就像是在使用***原有的内置存储空间一样;并且这种额外添加外置储存卡的方式也保证了,在扩展时并不影响已经存储到内置存储空间中的数据。
需要说明的是,可扩展块设备为Linux***中增加一种专门的可动态扩展的特殊块设备。当只有内置存储卡时,该可扩展块设备只包含内置存储块设备,而文件***的挂载点/mnt/sdcard被挂载到该可扩展块设备上。
应当说明的是,本发明实施例中,所述步骤100包括:
获取可扩展块设备的记录表,所述记录表中包含终端上的存储设备的标识信息;
在所述可扩展块设备的记录表中查找是否存在所述外置存储卡的标识信息;
若所述记录表中不存在所述外置存储卡的标识信息,则表明所述外置存储卡为首次***;
若所述记录表中存在所述外置存储卡的标识信息,则表明所述外置存储卡不为首次***。
当外置存储卡已经在可扩展块设备上进行扩展后,可扩展块设备的记录表中会存有该外置存储卡的记录,证明该外置存储卡已经进行过扩展,为了避免重复操作,在外置存储卡识别注册完成后,需要先进行是否已进行过扩展的验证。且应当说明的是,本发明中只要外置存储卡未进行过扩展都被认定为是首次***。
需要说明的是,当外置存储卡不为首次***时,所述方法还包括:
中止及卸载在可扩展块设备的挂载点上运行的文件***;
重新在可扩展块设备的挂载点上运行该文件***。
当验证得到外置存储卡已经进行了扩展,此时不需要再重新进行扩展,只需直接运行文件***即可(此过程可认为是终端的文件***重新启动的过程)。
应当说明的是,本实施例中,为了保证外置存储卡进行扩展后可以正常使用,在所述步骤300之前,所述方法还包括:
格式化所述外置存储卡。
通过将外置存储卡按照内置存储卡已挂载的文件***的格式进行格式化,保证了外置存储卡在进行扩展后,能适应文件***的运行需求,避免出现运行出错的情况。
具体地,所述步骤300的具体实现方式为:
将所述外置存储卡的标识信息以及外置存储卡的扇区起始地址和大小存入所述可扩展块设备的记录表中。
上述实施例一,可以使得新增添的外置存储设备不再是以其它分区的方式挂载,而直接添加到当前内置存储设备所在的分区,从而克服了不同分区带来的使用局限性,提升了用户使用体验效果;相比配置大内置存储空间的终端而言,提高了***的灵活性,降低了终端的生产成本。
为了保证当外置存储卡在***后,避免误操作的情况,在进行格式化该外置存储卡以及中止及卸载文件***时,需要进行用户的操作确认,因此,本发明实施例二中,继续如图1所示,所述扩展手机存储的方法,包括:
步骤100,在外置存储卡***,识别并注册完成后,判断所述外置存储卡是否为首次***;
步骤200,若所述外置存储卡为首次***,则中止及卸载在可扩展块设备的挂载点上运行的文件***;
步骤300,将所述外置存储卡添加到可扩展块设备的记录表中;
步骤400,重新挂载所述文件***到可扩展块设备的挂载点。
应当说明的是,而当外置存储卡不为首次***时,所述方法还包括:
中止及卸载在可扩展块设备的挂载点上运行的文件***;
重新在可扩展块设备的挂载点上运行该文件***。
具体地,在所述步骤300之前,所述方法还包括:
格式化所述外置存储卡。
在进行步骤200之前,所述方法还包括:
获取用户输入的是否进行存储空间扩展的选择指令;
若选择指令表明用户需要进行存储空间扩展,则进入步骤200进行中止及卸载在可扩展块设备的挂载点上运行的文件***的步骤。
上述方案的具体实现过程为:在检测到外置存储卡未进行过存储空间扩展时,终端显示界面会显示一对话框,提示用户是否进行存储空间的扩展以及外置存储卡的格式化操作,然后根据用户输入的操作命令进行后续的操作。
应当说明的是,实施例二中,除加入获取用户选择指令外,其它的实现方式均与实施例一相同。
实施例二中,通过在进行扩展时进行用户确认,避免了用户在误***外置存储卡时,错误的进行了外置存储卡的扩展,造成用户数据丢失的问题,实施例二保证了用户的操作安全。
如图2所示,针对于实施例二,所述方法的详细实现流程为:
步骤11,外置存储卡识别设备实时侦测扩展存储卡插槽中是否有外置存储卡***;
步骤12,在侦测到有外置存储卡***时,识别并注册外置存储卡;
步骤13,判断外置存储卡是否进行过存储空间扩展;如果进行过存储空间扩展则进行步骤14,否则进行步骤20;
步骤14,询问用户是否进行存储空间扩展;如果用户进行存储空间的扩展,则进行步骤15和步骤17;
步骤15,中止在/mnt/sdcard上正在运行的文件***操作;
步骤16,卸载/mnt/sdcard挂载点上的文件***;
步骤17,格式化外置存储卡,应当说明的是,因步骤17与步骤15和步骤16为并列的过程,所以步骤17与步骤15和步骤16通常同时进行。
步骤18,添加外置存储卡到可扩展块设备的记录表中;
步骤19,用扩展方式重新挂载文件***到可扩展块设备的挂载点/mnt/sdcard;
步骤20,中止在/mnt/sdcard上正在运行的文件***操作;
步骤21,卸载mnt/sdcard挂载点上的文件***;
步骤22,用扩展方式重新挂载文件***到可扩展块设备的挂载点/mnt/sdcard。
应当说明的是,步骤20与步骤15、步骤21与步骤16以及步骤22与步骤19为相同的实现方式,在运行时,终端会根据执行条件执行某一分支的步骤。
上述实施例,通过以扩展的方式将外置存储卡与内置存储卡设置为相同的挂载点,进而
实现了外置存储卡具有与内置存储卡相同的功能,终端在使用外置存储卡时可以看作是使用终端自身的存储卡,提高了终端***的灵活性;同时,在外置存储卡已经进行了扩展后,无需在扩展,只需重新启动终端的文件***即可;同时,在进行外置存储卡扩展前,进行是否扩展的用户确认,从而有效避免了用户的误操作。
如图3所示,本发明实施例三提供一种终端,包括外置存储卡识别设备和用于挂载所述终端的文件***的可扩展块设备,所述文件***挂载在所述可扩展块设备的挂载点上,其中,所述终端还包括:
判断模块31,设置为在外置存储卡***,识别并注册完成后,判断所述外置存储卡是否为首次***;
第一中止及卸载模块32,设置为若所述外置存储卡为首次***,则中止及卸载在可扩展块设备的挂载点上运行的文件***;
添加模块33,设置为将所述外置存储卡添加到可扩展块设备的记录表中;
挂载模块34,设置为重新挂载所述文件***到可扩展块设备的挂载点。
在本发明的实施例中,所述判断模块31包括:
获取单元,设置为获取可扩展块设备的记录表,所述记录表中包含终端上的存储设备的标识信息;
查找单元,设置为在所述可扩展块设备的记录表中查找是否存在所述外置存储卡的标识信息;
判断单元,设置为若所述记录表中不存在所述外置存储卡的标识信息,则表明所述外置存储卡为首次***;
若所述记录表中存在所述外置存储卡的标识信息,则表明所述外置存储卡不为首次***。
在本发明的实施例中,所述终端还包括:
第二中止及卸载模块,设置为在所述外置存储卡不为首次***时,中止及卸载在可扩展块设备的挂载点上运行的文件***;
运行模块,设置为重新在可扩展块设备的挂载点上运行该文件***。
在本发明的实施例中,所述终端还包括:
格式化模块,设置为格式化所述外置存储卡。
在本发明的实施例中,所述添加模块33具体为:
将所述外置存储卡的标识信息以及外置存储卡的扇区起始地址和大小存入所述可扩展块设备的记录表中。
需要说明的是,该终端实施例是与实施例一中的方法相对应的终端,所述方法的所有实现方式均适用于该终端实施例中,也能达到与实施例一中的方法相同的技术效果。
继续如图3所示,本发明实施例四提供一种终端,包括外置存储卡识别设备和用于挂载所述终端的文件***的可扩展块设备,所述文件***挂载在所述可扩展块设备的挂载点上,其中,所述终端还包括:
判断模块31,设置为在外置存储卡***,识别并注册完成后,判断所述外置存储卡是否为首次***;
第一中止及卸载模块32,设置为若所述外置存储卡为首次***,则中止及卸载在可扩展块设备的挂载点上运行的文件***;
添加模块33,设置为将所述外置存储卡添加到可扩展块设备的记录表中;
挂载模块34,设置为重新挂载所述文件***到可扩展块设备的挂载点。
在本发明的实施例中,所述判断模块31包括:
获取单元,设置为获取可扩展块设备的记录表,所述记录表中包含终端上的存储设备的标识信息;
查找单元,设置为在所述可扩展块设备的记录表中查找是否存在所述外置存储卡的标识信息;
判断单元,设置为若所述记录表中不存在所述外置存储卡的标识信息,则表明所述外置存储卡为首次***;
若所述记录表中存在所述外置存储卡的标识信息,则表明所述外置存储卡不为首次***。
在本发明的实施例中,所述终端还包括:
第二中止及卸载模块,设置为在所述外置存储卡不为首次***时,中止及卸载在可扩展块设备的挂载点上运行的文件***;
运行模块,设置为重新在可扩展块设备的挂载点上运行该文件***。
在本发明的实施例中,所述终端还包括:
格式化模块,设置为格式化所述外置存储卡。
在本发明的实施例中,所述添加模块33具体为:
将所述外置存储卡的标识信息以及外置存储卡的扇区起始地址和大小存入所述可扩展块设备的记录表中。
在本发明的实施例中,所述终端还包括:
获取模块,设置为在所述外置存储卡为首次***时,获取用户输入的是否进行存储空间扩展的选择指令,并在所述选择指令表明用户需要进行存储空间扩展,触发所述第一中止及卸载模块32。
需要说明的是,该终端实施例是与实施例二中的方法相对应的终端,所述方法的所有实现方式均适用于该终端实施例中,也能达到与实施例二中的方法相同的技术效果。
结合以上实施例对本发明在实际应用中的具体实现说明如下:
需要说明的是,终端中的可扩展块设备(可扩展块设备对外提供的使用方式和一般的块设备完全相同)的具体实现为:
如图4所示,内置存储卡和外置存储卡在可扩展块设备中分别映射为内置存储块设备和外置存储块设备,二者共同属于同一个默认挂载点/mnt/sdcard。
在可扩展块设备的内部包含一个记录表,该记录表储存了它所包含的块设备(通常为块设备的标识信息,例如块设备编号),以及该块设备对应的扇区起始偏移和大小。当外部文件***对该块设备发起读写操作时,它的驱动程序会查询该记录表,从而取得读写实际操作真实块设备及在真实块设备上对应的偏移。
同时,可扩展块设备提供块设备添加接口,可以通过该接口将新的块设备添加到该记录表中。
在具体实现中,还需要提供可扩展块设备添加的用户通知程序以及可扩展块设备的后台管理程序。
可扩展块设备添加通知程序的具体处理步骤:
Linux提供了对外置设备热插拔操作的NETLINK_KOBJECT_UEVENT通知机制。用户态的可扩展块设备添加的用户通知程序通过socket接口侦测外置存储卡的***。如发生***且该外置存储卡未进行过扩展,该用户通知程序通过用户图形界面(GUI)向用户发出是否扩展***空间的询问,并向用户给出要进行外置储存卡的格式化操作以及要中断当前文件***操作的提示;当得到用户的肯定确认后,该用户通知程序通过Linux提供已有通讯机制(特殊的***调用,特殊的文件,或者信号等)通知可扩展块设备的后台管理程序开始外置块设备的添加。
可扩展块设备后台管理程序的具体处理步骤为:
在***初始化可扩展块设备时,扫描***中已经拥有的内置存储块设备和可能已拥有的外置存储卡对应的块设备,并通过可扩展块设备的添加接口将已拥有的块设备组合生成专门块设备供文件***挂载;需要说明的是,终端上需为该可扩展块设备新建一个内核守护线程,该内核守护线程运行该可扩展块设备的后台管理程序。后台管理程序等待可扩展块设备添加的用户通知程序的通知,当得到通知以后,格式化外置存储卡到已有的内置存储对应的文件***(如ext3);中止当前内置存储卡上所有正在进行的文件操作,并关闭所有打开的文件,然后卸载文件***;调用可扩展块设备的添加接口,将已经格式化好的外置存储卡对应的块设
备添加到可扩展块设备中;最后以文件***的扩展挂载方式重新挂载文件***,完成整个文件***的扩展。
以上所述的是本发明的优选实施方式,应当指出对于本技术领域的普通人员来说,在不脱离本发明所述的原理前提下还可以作出若干改进和润饰,这些改进和润饰也在本发明的保护范围内。
基于本发明实施例提供的上述技术方案,应用于一具有外置存储卡识别设备的终端,且所述终端上设置有用于挂载所述终端的文件***的可扩展块设备,所述文件***挂载在所述可扩展块设备的挂载点上,在外置存储卡***,识别并注册完成后,判断所述外置存储卡是否为首次***;若所述外置存储卡为首次***,则中止及卸载在可扩展块设备的挂载点上运行的文件***;将所述外置存储卡添加到可扩展块设备的记录表中;重新挂载所述文件***到可扩展块设备的挂载点。上述方案,通过将外置存储卡添加到文件***运行所在的分区,不会在文件***路径上新增挂载点,提高了***的灵活性。
Claims (12)
- 一种扩展手机存储的方法,应用于一具有外置存储卡识别设备的终端,且所述终端上设置有用于挂载所述终端的文件***的可扩展块设备,所述文件***挂载在所述可扩展块设备的挂载点上,所述方法包括:在外置存储卡***,识别并注册完成后,判断所述外置存储卡是否为首次***;若所述外置存储卡为首次***,则中止及卸载在可扩展块设备的挂载点上运行的文件***;将所述外置存储卡添加到可扩展块设备的记录表中;重新挂载所述文件***到可扩展块设备的挂载点。
- 根据权利要求1所述的方法,其中,所述在外置存储卡***,识别并注册完成后,判断所述外置存储卡是否为首次***的步骤包括:获取可扩展块设备的记录表,所述记录表中包含终端上的存储设备的标识信息;在所述可扩展块设备的记录表中查找是否存在所述外置存储卡的标识信息;若所述记录表中不存在所述外置存储卡的标识信息,则表明所述外置存储卡为首次***;若所述记录表中存在所述外置存储卡的标识信息,则表明所述外置存储卡不为首次***。
- 根据权利要求2所述的方法,其中,在所述外置存储卡不为首次***时,所述方法还包括:中止及卸载在可扩展块设备的挂载点上运行的文件***;重新在可扩展块设备的挂载点上运行所述文件***。
- 根据权利要求1-3任一项所述的方法,其中,在所述将所述外置存储卡添加到可扩展块设备的记录表中的步骤之前,所述方法还包括:格式化所述外置存储卡。
- 根据权利要求4所述的方法,其中,所述将所述外置存储卡添加到可扩展块设备的记录表中的步骤具体为:将所述外置存储卡的标识信息以及外置存储卡的扇区起始地址和大小存入所述可扩展块设备的记录表中。
- 根据权利要求5所述的方法,其中,在所述中止及卸载在可扩展块设备的挂载点上运行的文件***的步骤之前,所述方法还包括:获取用户输入的是否进行存储空间扩展的选择指令;若选择指令表明用户需要进行存储空间扩展,则进入所述中止及卸载在可扩展块设备的挂载点上运行的文件***的步骤。
- 一种终端,包括外置存储卡识别设备和用于挂载所述终端的文件***的可扩展块设备,所述文件***挂载在所述可扩展块设备的挂载点上,所述终端还包括:判断模块,设置为在外置存储卡***,识别并注册完成后,判断所述外置存储卡是否为首次***;第一中止及卸载模块,设置为若所述外置存储卡为首次***,则中止及卸载在可扩展块设备的挂载点上运行的文件***;添加模块,设置为将所述外置存储卡添加到可扩展块设备的记录表中;挂载模块,设置为重新挂载所述文件***到可扩展块设备的挂载点。
- 根据权利要求7所述的终端,其中,所述判断模块包括:获取单元,设置为获取可扩展块设备的记录表,所述记录表中包含终端上的存储设备的标识信息;查找单元,设置为在所述可扩展块设备的记录表中查找是否存在所述外置存储卡的标识信息;判断单元,设置为若所述记录表中不存在所述外置存储卡的标识信息,则表明所述外置存储卡为首次***;若所述记录表中存在所述外置存储卡的标识信息,则表明所述外置存储卡不为首次***。
- 根据权利要求8所述的终端,其中,所述终端还包括:第二中止及卸载模块,设置为在所述外置存储卡不为首次***时,中止及卸载在可扩展块设备的挂载点上运行的文件***;运行模块,设置为重新在可扩展块设备的挂载点上运行所述文件***。
- 根据权利要求7-9任一项所述的终端,其中,所述终端还包括:格式化模块,设置为格式化所述外置存储卡。
- 根据权利要求10所述的终端,其中,所述添加模块具体为:将所述外置存储卡的标识信息以及外置存储卡的扇区起始地址和大小存入所述可扩展块设备的记录表中。
- 根据权利要求11所述的终端,其中,还包括:获取模块,设置为在所述外置存储卡为首次***时,获取用户输入的是否进行存储空间扩展的选择指令,并在所述选择指令表明用户需要进行存储空间扩展,触发所述第一中止及卸载模块。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510541083.X | 2015-08-28 | ||
CN201510541083.XA CN106484719B (zh) | 2015-08-28 | 2015-08-28 | 一种扩展手机存储的方法及终端 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016177067A1 true WO2016177067A1 (zh) | 2016-11-10 |
Family
ID=57217536
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/075541 WO2016177067A1 (zh) | 2015-08-28 | 2016-03-03 | 一种扩展手机存储的方法及终端 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106484719B (zh) |
WO (1) | WO2016177067A1 (zh) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107832235A (zh) * | 2017-11-28 | 2018-03-23 | 苏州佳世达电通有限公司 | 一种自动格式化存储设备的方法和装置 |
CN108769368A (zh) * | 2018-04-20 | 2018-11-06 | Oppo广东移动通信有限公司 | 一种电子设备及信息处理方法 |
CN110941843B (zh) * | 2019-11-22 | 2022-03-29 | 北京明略软件***有限公司 | 一种加密实现方法、装置、设备及存储介质 |
CN111352772A (zh) * | 2020-02-24 | 2020-06-30 | Oppo(重庆)智能科技有限公司 | 外置存储卡处理方法以及相关产品 |
CN111625193A (zh) * | 2020-05-22 | 2020-09-04 | 浪潮电子信息产业股份有限公司 | 一种多路径别名的配置方法、装置、设备及介质 |
CN112114900A (zh) * | 2020-09-18 | 2020-12-22 | 北京金山云网络技术有限公司 | 一种格式化方法及相关设备 |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090282195A1 (en) * | 2008-05-09 | 2009-11-12 | Kuo-Chu Wang | Method of managing memory storage space and a computer system |
CN102722342A (zh) * | 2012-05-23 | 2012-10-10 | 北京百纳威尔科技有限公司 | 扩展内部存储空间的方法、装置及终端 |
CN102722444A (zh) * | 2012-05-23 | 2012-10-10 | 北京百纳威尔科技有限公司 | 扩展内部存储空间的方法、装置及终端 |
US20140108471A1 (en) * | 2009-07-15 | 2014-04-17 | Aten International Co., Ltd. | Virtual media with folder-mount function |
CN103748565A (zh) * | 2012-08-16 | 2014-04-23 | 华为终端有限公司 | 一种用于终端的文件访问方法及终端 |
CN104391657A (zh) * | 2014-11-24 | 2015-03-04 | 上海盈方微电子有限公司 | 一种安卓***上挂载多分区存储设备的方法 |
CN104408053A (zh) * | 2014-10-29 | 2015-03-11 | 上海斐讯数据通信技术有限公司 | 一种移动终端存储卡扩展方法 |
CN104679544A (zh) * | 2013-11-29 | 2015-06-03 | 中兴通讯股份有限公司 | 应用程序管理方法及装置 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20100034856A (ko) * | 2008-09-25 | 2010-04-02 | 엘지전자 주식회사 | 이동 단말기 및 이를 이용한 검색 기능 제공 방법 |
CN102831173B (zh) * | 2012-07-27 | 2016-09-07 | Tcl集团股份有限公司 | 基于Android***的内存扩展方法、装置及终端设备 |
-
2015
- 2015-08-28 CN CN201510541083.XA patent/CN106484719B/zh active Active
-
2016
- 2016-03-03 WO PCT/CN2016/075541 patent/WO2016177067A1/zh active Application Filing
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090282195A1 (en) * | 2008-05-09 | 2009-11-12 | Kuo-Chu Wang | Method of managing memory storage space and a computer system |
US20140108471A1 (en) * | 2009-07-15 | 2014-04-17 | Aten International Co., Ltd. | Virtual media with folder-mount function |
CN102722342A (zh) * | 2012-05-23 | 2012-10-10 | 北京百纳威尔科技有限公司 | 扩展内部存储空间的方法、装置及终端 |
CN102722444A (zh) * | 2012-05-23 | 2012-10-10 | 北京百纳威尔科技有限公司 | 扩展内部存储空间的方法、装置及终端 |
CN103748565A (zh) * | 2012-08-16 | 2014-04-23 | 华为终端有限公司 | 一种用于终端的文件访问方法及终端 |
CN104679544A (zh) * | 2013-11-29 | 2015-06-03 | 中兴通讯股份有限公司 | 应用程序管理方法及装置 |
CN104408053A (zh) * | 2014-10-29 | 2015-03-11 | 上海斐讯数据通信技术有限公司 | 一种移动终端存储卡扩展方法 |
CN104391657A (zh) * | 2014-11-24 | 2015-03-04 | 上海盈方微电子有限公司 | 一种安卓***上挂载多分区存储设备的方法 |
Also Published As
Publication number | Publication date |
---|---|
CN106484719A (zh) | 2017-03-08 |
CN106484719B (zh) | 2020-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016177067A1 (zh) | 一种扩展手机存储的方法及终端 | |
US8954805B2 (en) | Computer booting method and computer system | |
US8370835B2 (en) | Method for dynamically generating a configuration for a virtual machine with a virtual hard disk in an external storage device | |
US8751783B2 (en) | Booting computing devices with EFI aware operating systems | |
WO2016061978A1 (zh) | 一种实现移动存储挂载的方法及装置 | |
US20090217024A1 (en) | Recovering from Hard Disk Errors that Corrupt One or More Critical System Boot Files | |
US11314523B2 (en) | Master boot record (MBR)/global unique identifer (GUID) partition table (GPT) hybrid disk that includes GPT bootstrap code | |
JP6861886B2 (ja) | カスタマイズされたオペレーティングシステム変換のためのシステムおよび方法 | |
US20120117367A1 (en) | Electronic apparatus and booting method thereof | |
US8180930B2 (en) | Information processing device, and device initialization method in the information processing device | |
CN103514015A (zh) | 一种从存储介质中启动操作***的方法和装置 | |
CN115390996B (zh) | 虚拟机迁移方法和装置、计算设备和存储介质 | |
CN107135462B (zh) | Uefi固件的蓝牙配对方法及其计算*** | |
TWI450194B (zh) | 作業系統處理方法以及系統、以及儲存其之電腦可讀取記錄媒體 | |
US10491736B2 (en) | Computer system and method thereof for bluetooth data sharing between UEFI firmware and OS | |
CN102591691B (zh) | 硬盘启动方法和基于bios的操作***启动加载方法 | |
TWI518594B (zh) | 計算機系統與計算機系統啓動方法 | |
JP2014179095A (ja) | ハイバネーションからの迅速な再開のための装置、方法およびデバイス | |
US20130046736A1 (en) | Recovering method and device for linux using fat file system | |
KR20150072963A (ko) | 다중시스템 및 이의 부팅 방법 | |
US20180032351A1 (en) | Information processing method and storage device | |
TWI754221B (zh) | 軟體存留性關閉技術 | |
WO2017076034A1 (zh) | 一种对移动终端的存储器进行格式化的方法和装置 | |
WO2019169615A1 (zh) | 访问指令sram的方法和电子设备 | |
US20160011783A1 (en) | Direct hinting for a memory device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16789061 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16789061 Country of ref document: EP Kind code of ref document: A1 |