Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ GNU / Linux enable Intel Rapid Start     - How do I use Linux development environment (Linux)

- Graphic Git (Linux)

- Linux ls command (Linux)

- Nine tips to protect the security of Linux desktop (Linux)

- 10 really interesting Linux command (Linux)

- How to enable Software Collections (SCL) on CentOS (Server)

- The lambda expression Java8 (constructor references) (Programming)

- When should I use Angular 2 (Programming)

- Unix system security configuration (Linux)

- Use GLOBK batch command network adjustment (Linux)

- Oracle Client + PL SQL Developer enables remote access to the Oracle database (Database)

- MySQL Authorized a recovered (Database)

- Java Network Programming Internet address lookup (Programming)

- Analysis of native Java keywords (Programming)

- To create a Linux server network security (Linux)

- MyCAT easy entry (Database)

- Oracle user password problem (Database)

- Ubuntu will be written in a command file, executable file, source command (Linux)

- Mhddfs: multiple smaller partitions into one large virtual storage (Linux)

- To set up the printer use Nagios Monitoring Server (Server)

  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.
- Linux, how to filter, split, and merge pcap file (Linux)
- JavaScript in null undefined summary (Linux)
- Linux SU command security Suggestions (Linux)
- The Java way to stop a thread of execution (Programming)
- Windows 8.1 hard drive to install Ubuntu 14.04 dual system reference tutorials and multi-drive Precautions (Linux)
- Ubuntu 14.04 Boot Repair (Linux)
- How to protect the Apache website under Linux system (Linux)
- CentOS 7 virt-manager can not connect a local hypervisor (Linux)
- How do you know your public IP terminal in Linux (Linux)
- Ubuntu system cp: omitting directory problem (Linux)
- Spring Data JPA @EnableJpaRepositories configuration in detail (Programming)
- Firewall Configuration Red Hat Enterprise Linux 4 (Linux)
- Using IntelliJ IDEA 13 integrated development environment to build Android (Linux)
- Static member variable modified (Programming)
- shell script: MySQL monitoring service is normal (Database)
- Linux system - The understanding cpu load (Linux)
- CentOS set up FTP server (Server)
- Redis data types Introduction (Database)
- MariaDB 10.0.X, the dynamic column support JSON format to obtain data (Database)
- MySQL Basic tutorial: About varchar (N) (Database)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.