Setting method, program, and information processing apparatus
View Patent ↗According to one embodiment, a setting method, includes storing, in a first partition of a storage which stores a first file causing a processor to execute a first program to booting an operating system, a second file having a same path as a path of the first file and causing the processor to execute a second program. The second program is executed by the processor at activation of an information processing apparatus and causing the processor to execute the first program.
1. A method of changing a reading sequence of a boot file in a system comprising a CPU and a nonvolatile memory when installing a software to be operated on an operating system,
wherein
the CPU is configured to execute the operating system;
the nonvolatile memory comprises a first area and a second area;
the first area comprises a system partition storing a default boot file, a file name of the default boot file being a first file name;
the second area stores the operating system, the software, and a program associated with the software;
an installer executed by the CPU is configured to
change a file name of the default boot file stored in the system partition from the first file name to a second file name, the second file name including the whole of the first file name and a name element,
store a pre-boot file in the system partition, a file name of the pre-boot file being the first file name, and
boot a pre-boot manager by reading the pre-boot file having the first file name from the system partition when the CPU is booted;
the pre-boot manager is configured to boot a boot manager by reading the boot file having the second file name from the system partition; and
the boot manager is configured to boot the operating system.
2. An electric apparatus of changing a reading sequence of a boot file when installing a software to be operated on an operating system, the electric apparatus comprising:
a CPU configured to execute the operating system; and
a nonvolatile memory comprising a first area and a second area, the first area comprising a system partition storing a default boot file, a file name of the default boot file being a first file name, the second area storing the operating system, the software, and a program associated with the software,
wherein
the CPU executes an installer which is configured to
change a file name of the default boot file stored in the system partition from the first file name to a second file name, the second file name including the whole of the first file name and a name element,
store a pre-boot file in the system partition, a file name of the pre-boot file being the first file name, and
boot a pre-boot manager by reading the pre-boot file having the first file name from the system partition when the CPU is booted;
the pre-boot manager is configured to boot a boot manager by reading the boot file having the second file name from the system partition; and
the boot manager is configured to boot the operating system.
3. A method of changing a reading sequence of a boot file in a system comprising a CPU and a nonvolatile memory when installing a software to be operated on an operating system,
wherein
the CPU is configured to execute the operating system;
the nonvolatile memory comprises a first area and a second area;
the first area comprises a system partition storing first files including a default boot file;
the second area stores the operating system, the software, and a program associated with the software;
an installer executed by the CPU is configured to
shrink the second area to set a free space in the second area,
store a duplicate partition in the free space, the duplicate partition having a same size as a size of the system partition,
copy the first files of the system partition in the duplicate partition so that the duplicate partition stores duplicate first files including a duplicate default boot file as a pre-boot file,
replace the default boot file in the system partition with the pre-boot file in the duplicate partition so that the system partition stores the pre-boot file and the duplicate partition stores the duplicate default boot file, and
boot a pre-boot manager by reading the pre-boot file in the system partition when the CPU is booted;
the pre-boot manager is configured to boot a boot manager by reading the duplicate default boot file in the duplicate partition, and
the boot manager is configured to boot the operating system.
4. An electric apparatus of changing a reading sequence of a boot file when installing a software to be operated on an operating system, the electric apparatus comprising:
a CPU configured to execute the operating system; and
a nonvolatile memory comprising a first area and a second area, the first area comprising a system partition storing first files including a default boot file, the second area storing the operating system, the software, and a program associated with the software,
wherein
the CPU executes an installer which is configured to
shrink the second area to set a free space in the second area,
store a duplicate partition in the free space, the duplicate partition having a same size as a size of the system partition,
copy the first files of the system partition in the duplicate partition so that the duplicate partition stores duplicate first files including a duplicate default boot file as a pre-boot file,
replace the default boot file in the system partition with the pre-boot file in the duplicate partition so that the system partition stores the pre-boot file and the duplicate partition stores the duplicate default boot file, and
boot a pre-boot manager by reading the pre-boot file in the system partition when the CPU is booted;
the pre-boot manager is configured to boot a boot manager by reading the duplicate default boot file in the duplicate partition; and
the boot manager is configured to boot the operating system.