Skip to content

Instantly share code, notes, and snippets.

@rplaurindo
Last active October 24, 2024 11:35
Show Gist options
  • Save rplaurindo/aea53b2c84659bb1e2302e6766e87ad6 to your computer and use it in GitHub Desktop.
Save rplaurindo/aea53b2c84659bb1e2302e6766e87ad6 to your computer and use it in GitHub Desktop.

Disabling Fast Boot and Hibernate

Open the console as administrator, so run

$ powercfg /h off

$ powercfg /hibernate off

Disabling the Encryption

If the volume is encrypted with Bitlocker, disable it.

UEFI System Boot

Partitions schema

Type    Mount Point   Format  Device               Flags
fat32   /boot/efi             (SSD 200 MB)        boot, esp
ext4    /             x       (SSD >= 20000 MB)
ext4    /home                 (HDD)
swap                          (HDD 4000 MB)

On the Root Partition

  • Choice the partition that you want to be the root system giving a double click on the partition;
  • In Use as select Ext4 journaling file system;
  • Mark the Format the partition box;
  • Tap / on Mount point.

The Home Partition

  • Choice the partition that you want to be the home path;
  • Top /home on Mount point.

Checking The Boot System

$ [ -d /sys/firmware/efi ] && echo "UEFI boot" || echo "Legacy boot"

The Fstab File

Run on shell

$ sudo <text editor> /etc/fstab
# <file system>     <mount point>   <type>  <options>	<dump>  <pass>
  UUID=             /boot/efi       vfat    defaults    0       0
  UUID=             /               ext4    defaults    0       1
  UUID=             /home           ext4    defaults    0       2
  UUID=             none            swap    sw          0       0
  • options: the default are: rw,auto,nouser,exec,async;
  • dump: 0 to don't trigger and 1 to trigger default backup system of the Operating System;
  • pass: priority order to the FSCK check the disk for errors on the disk initialization. 1 is for the root system, 2 for the others, and 0 to don't check
  • x-gvfs-name=SAMPLE: set the display name to show on mouse over;
  • x-gvfs-show: show in UI;

To know the UUID, open the Disks tool, and select the volume.

See more.

Reparing The Boot

sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt-get update

sudo apt install -y boot-repair && (boot-repair &)

See more here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment