Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ GNU / Linux enable Intel Rapid Start     - OpenGL Superb Learning Notes - GLSL language foundation (Programming)

- Use Vagrant build cross-platform development environment for Python (Server)

- Linux-- sub-volume compression and decompression (Linux)

- CentOS 7.0 Automatic installation CD-ROM production Comments (Linux)

- VMware virtual machine can not start VMnet0 no Internet access and other issues (Linux)

- Docker build private warehouse (Server)

- Linux, C programming language library file handling and preparation of Makefile (Programming)

- Use OpenSSL to generate a certificate (Linux)

- Four levels of intrusion on Linux server and counter-measures (Linux)

- Analytical Ceph: handle network layer (Server)

- ORA-4031 error Solution (Database)

- How do you know your public IP terminal in Linux (Linux)

- CentOS7 install and configure Nagios (Server)

- Java development environment to build under Ubuntu (Linux)

- Shell script on the variables with double quotation marks grep small problem (Programming)

- Shell Programming points to note about the function (Programming)

- Linux kernel RCU (Read Copy Update) lock Brief - prequel (Linux)

- Intrusion analysis and prevention tools Knark under Linux platform (Linux)

- linux smartd [FAILED] appears at startup (Linux)

- Ubuntu the ARP (arptables) (Linux)

  GNU / Linux enable Intel Rapid Start
  Add Date : 2018-11-21      
  Intel Rapid Start is an Intel research and development with the help of a laptop to save power and fast recovery technology with the traditional sleep (Sleep) and Sleep (Hibernate) have some differences, comparison, and hybrid sleep (Hybrid Sleep) It does have some similarity. Intel said that this technology must first motherboard supports, and secondly to have SSD, finally have Windows. But in fact the SSD and Windows are not necessary. I was in the HDD + Linux combination was used successfully Intel Rapid Start.

A, Intel Rapid Start Principle

In fact, the principle of Intel Rapid Start is very simple, is to let the computer in a traditional sleep (Sleep) on the basis of the opportunity to enter the deeper sleep (Deep Sleep), the user can a timeout by BIOS settings, such as one minute, ten minutes, half hours, etc. (you can also set up "immediately"), when the computer goes to sleep, start time, if you arrive before the timer to wake up the computer, it had nothing to happen, if the predetermined time is reached, the computer will be shallow wake (wake up briefly), data is written to the hard disk memory (official documentation refers SSD) in a particular district, then powered down completely. After this, the user can press the power button the way through boot partition specific motherboard firmware will read back the contents of memory, then you can continue to use the computer.

To summarize, Intel Rapid Start Technology (IRST) in the first half of ordinary sleep is the same, then the second half is similar to Sleep (Hibernate), but sleep is by the operating system, and the IRST is by the motherboard firmware (BIOS or UEFI) to complete this operation, that is, after the power on Self Test (POST), the content is directly read from the hard disk of the process, there is no guide (boot loader) and OS loading process, Therefore a lot faster than the operating system level of sleep, coupled with the SSD application, even accelerate, and this is Intel claimed "six seconds recovery." According to my understanding, it is as fast as the speed of recovery and sleep, but as low power consumption and Sleep (zero power).

Intel's official document that said the technique requires SSD + Windows, but I did not see the need for them: SSD to accelerate, if the HDD instead of words have nothing except slow down the problem, but Windows does? Exciting is that, in June 2013, when, Linux developer Matthew Garrett submitted a kernel patch, Linux kernel to achieve this support. The patch has been applied in Linux 3.11, and as of this writing, the latest version of the Linux kernel is already 3.12.6, and obviously can be used.

Second, adjust the partition

My computer is a ThinkPad X240s, the model has an internal SATA and two NGFF interface, which is a new interface Intel push can be used to access Bluetooth, 3G modules can also be used to access NGFF interface SSD. Ideally configuration should be used to access the HDD SATA interface used to access and NGFF SSD, this version is already configured, the Intel Rapid Start. My take on this version of the SATA interface with a 500GB 7200 RPM mechanical hard drive, a NGFF pick up WiFi + Bluetooth, another NGFF is empty. In other words, there is no SSD, naturally did not have to use the default Intel Rapid Start. But apart from a small Taobao expensive NGFF SSD is no other way to it? of course not. Intel Rapid Start reading carefully the user manual you will find it mentioned motherboard firmware is to find IRST partition by partition identifier for GPT, is D3BFE2DE-3DAF-11DF-BA-40-E3A556D89593, the MBR is 0x84.

Before I adjust partition structure is as follows:

sda 8: 0 0 465,8G 0 disk
sda1 8: 1 0 2M 0 part
sda2 8: 2 0 200M 0 part / boot
sda3 8: 3 0 50G 0 part
crypt-sda3 254: 0 0 50G 0 crypt /
sda4 8: 4 0 415,6G 0 part
crypt-sda4 254: 1 0 415,6G 0 crypt / home
465 GiB entire hard drive using GPT divided into four areas, beginning 2 MiB is used to store GRUB, after 200 MiB is / boot, and then 50 GiB /, the last remaining 415.6 GiB used for / home. Wherein sda3 and sda4 are LUKS container. My aim is to sda4 adjusted to 400 GiB, then the remaining 15.6 GiB classified as sda5, as IRST partition.

Since sda4 is GPT + LUKS + ext4 three nested structure, layer by layer, it is necessary to refine them, and then layer by layer, to stretch them to the appropriate location.

# The / home Uninstall
umount / home
Check the file system must first adjust the file system before #
e2fsck -f / dev / mapper / crypt-sda4
# Shrink the file system to 398 GiB
resize2fs -p / dev / mapper / crypt-sda4 398G
# Refine LUKS container to 399 GiB
# 512 KiB converted into blocks of 399 * 1024 * 1024 * 2 = 836763648
cryptsetup resize crypt-sda4 836763648
# Sda4 partition will be adjusted to 400 GiB
# And establish sda5 with the remaining space
When # 8400 established the partition identifier input
gdisk / dev / sda
# Restart your computer so that the kernel uses the new partition table
# Again unloading / home
umount / home
# Amplification LUKS container stays full sda4
cryptsetup resize crypt-sda4
# Check the file system
e2fsck -f / dev / mapper / crypt-sda4
# Enlarge the file system to support full LUKS container
resize2fs -p / dev / mapper / crypt-sda4
# Mount test
mount / dev / mapper / crypt-sda4 / home
After adjustment, the effect is this:

sda 8: 0 0 465,8G 0 disk
sda1 8: 1 0 2M 0 part
sda2 8: 2 0 200M 0 part / boot
sda3 8: 3 0 50G 0 part
crypt-sda3 254: 0 0 50G 0 crypt /
sda4 8: 4 0 400G 0 part
crypt-sda4 254: 1 0 400G 0 crypt / home
sda5 8: 5 0 15,6G 0 part

Number Start (sector) End (sector) Size Code Name
   1 2048 6143 2.0 MiB EF02 BIOS boot partition
   2 6144 415743 200.0 MiB 8300 Linux filesystem
   3 415744 105273343 50.0 GiB 8300 LUKS partition
   4 105273344 944134143 400.0 GiB 8300 LUKS partition
   5 944134144 976773134 15.6 GiB 8400 Intel Rapid Start
Third, set the motherboard firmware (BIOS / UEFI)

This step depending on the manufacturer's own different, but the gist is to find the BIOS / UEFI settings for the Intel Rapid Start, and it will open. Before completing the steps above, this option can not be turned on, you will be prompted not find a suitable storage device, but after completing the above steps, the firmware will find IRST partitions based GUID, allowing to open this feature. As long enabled, is personal preference, I chose the "now", which is equivalent to using IRST instead of sleep (Sleep) function.

Fourth, the test

To test the effect is obvious, you can use the sda5 dd_rescue emptied at: dd_rescue / dev / zero / dev / sda5. You can use the command as head -c 1G / dev / sda5 like examine.

When you are ready to begin testing completed: echo -n mem > / sys / power / state to suspend the system memory (S3, Sleep) -> system -> system is short sleep well and wake up the contents of memory written IRST partition, this time If you listen carefully you can hear the sound of the mechanical hard disk write -> write completion, the system power down.

After a power outage shut down, the user can only press the power button to wake the computer. After pressing the power button can be observed on the display BIOS / UEFI Resuming from deep sleep ... words similar, indicating that the recovery process is done by the firmware, regardless of operating system. After the restoration is complete, simply reply to what it was before entering sleep. This time using the head / dev / sda5 observed a lot of output, indicating sda5 indeed been written.

Thus IRST successful deployment.
- How VirtualBox and VMware virtual machine conversion (Linux)
- JQuery implements the same content merge cells (Programming)
- 10 Codes of good practice PHP (Programming)
- To share Linux script automatically change passwords (Linux)
- Fedora 19/20 and Debian Jessie / Sid users to install FFmpeg 2.3.2 (Linux)
- Spark build standalone version cluster (Server)
- Ubuntu Install OpenSSL (Linux)
- Install and manage Java under mac (Linux)
- MySQL 5.7.10 source code for the latest version of the installation process in detail (Database)
- Thunderbird 24.4.2 has been released for use with PPA updates (Linux)
- Ubuntu 15.04 Linux install anti-virus software Antiviral 0.2 (Linux)
- Bootable ISO image using GRUB (Linux)
- How to install Unbound and DNSCrypt in Archlinux (Server)
- cat command uses the Linux redirection merge files (Linux)
- Ubuntu 14.10 installation SecureCRT 7.3 (Linux)
- Ubuntu users install the Download Manager software Xdman 5.0 (Linux)
- Python kills corresponding process according to pid (Programming)
- Installation of Python2.7.10 under CentOS 6.4 (Linux)
- Linux smart small switch rfkill (Linux)
- Vi syntax highlighting settings (Linux)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.