User Tools

Site Tools


doc:appunti:hardware:mini_pc_intel_n95

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:hardware:mini_pc_intel_n95 [2023/07/27 18:09] – [Resize partition to accommodate GNU/Linux] niccolodoc:appunti:hardware:mini_pc_intel_n95 [2024/01/26 16:28] (current) – [Secure Boot] niccolo
Line 5: Line 5:
 ^ Hard Disk      | 512 Gb SSD  | ^ Hard Disk      | 512 Gb SSD  |
 ^ Cores/Threads  | 4/4  | ^ Cores/Threads  | 4/4  |
 +^ Video          | Intel  |
 ^ Network        | 2 x Gbit Ethernet, WiFi 2.4G+5G  | ^ Network        | 2 x Gbit Ethernet, WiFi 2.4G+5G  |
 ^ Display        | 1 x HDMI, 1 x DisplayPort  | ^ Display        | 1 x HDMI, 1 x DisplayPort  |
Line 15: Line 16:
 ===== Partition scheme ===== ===== Partition scheme =====
  
-Booting from a GNU/Linux live distro and using **parted** we can see the hard disk partition scheme:+Booting from a GNU/Linux live distro (I used the **Ubuntu-Studio 22.04** for the operations described in this article) and using **parted** we can see the hard disk partition scheme:
  
 <code> <code>
Line 46: Line 47:
  
 ===== Resize partition to accommodate GNU/Linux ===== ===== Resize partition to accommodate GNU/Linux =====
 +
 +==== Backup the existing partitions ====
  
 Once booted into a a GNU/Linux live distro using an USB stick, use the **ntfsclone** tool (from the **ntfs-3g** Debian package) to save an image of the NTFS partitions to an USB mounted external hard disk: Once booted into a a GNU/Linux live distro using an USB stick, use the **ntfsclone** tool (from the **ntfs-3g** Debian package) to save an image of the NTFS partitions to an USB mounted external hard disk:
Line 68: Line 71:
 zip -r /mnt/win11-sda1-fat32-boot-esp.zip . zip -r /mnt/win11-sda1-fat32-boot-esp.zip .
 </code> </code>
 +
 +==== Create the Recovery Drive ====
 +
 +In Windows 11 search for the //Recovery Drive App// and choose to create a **Recovery Drive**, an USB stick with at least 16 Gb of space is required. All data on the USB stick will be deleted. This drive can be used to boot the PC and to restore Windows 11.
 +
 +The efficiency of the process is ridiculous: it required **more than one hour** to copy less than 8 Gb of data!
 +
 +==== Shrink the Windows partition ====
  
 Boot into Windows 11 and run the **Disk Management** tool; right click the **Windows C:** partition and choose **Shrink Volume...**. Type the space you want to free up. Boot into Windows 11 and run the **Disk Management** tool; right click the **Windows C:** partition and choose **Shrink Volume...**. Type the space you want to free up.
  
 +==== Move the free space at the end of the disk ====
 +
 +I wish to create new partitions for the GNU/Linux operating system into the free space I recovered, but the free space is allocated between **sda3** and **sda4**: I prefer to move sda4 just after sda3 and have the free space at the end of the disk.
 +
 +I booted Linux from the live distro and executed **sudo partitionmanager**; then it was possible to right-click on the **sda4** partition and choose **Resize/Move**, setting zero for **Free space before**. The modification must be committed clicking the //Apply// button.
 +
 +{{.:n95-win11:win11-disk-partitionmanager.png?480|PartitionManager on a Windows 11 disk}}
 +
 +==== Create the GNU/Linux partitions ====
 +
 +I opted for creating three partitions: one for the **root fileststem**, one for the **swap** and one for the **home** directories:
 +
 +{{.:n95-win11:win11-linux-partitionmanager.png?480|Windows 11 and GNU/Linux partitions}}
 +
 +For the rootfs partition I reserved about **50 Gb**. For the swap I reserved about **16 Gb**, checking that it is a little more than the system RAM, in this way I can use the **hibernate** function (suspend to disk).
 +
 +===== Secure Boot =====
 +
 +**WARNING**: Hibernation and resume from hibernation is not compatible with Secure Boot.
 +
 +Booting from some GNU/Linux live distribution may require to disable the secure boot option: enter the BIOS configuration program pressing Del or ESC at bootstrap, then //Security// => //Secure Boot// => **Secure Boot** = > **Disabled**.
 +
 +===== Always On =====
 +
 +//Boot// => **State After G3** => **S0 State**.
 +
 +===== Web References =====
 +
 +  * **[[https://wiki.debian.org/SecureBoot|SecureBoot Debian]]**
  
doc/appunti/hardware/mini_pc_intel_n95.1690481387.txt.gz · Last modified: 2023/07/27 18:09 by niccolo