Differences

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

Link to this comparison view

Both sides previous revision Previous revision
software:files [2024/04/22 00:04]
cyril [Tools]
software:files [2024/05/14 21:43]
cyril [Creation]
Line 25: Line 25:
   * If you want to use LVM and don't need to boot on the disk, not much to do in this section, just remove all the existing partitions with ''gparted'', then go directly to the next one to create the LVM volumes directly on the raw device.   * If you want to use LVM and don't need to boot on the disk, not much to do in this section, just remove all the existing partitions with ''gparted'', then go directly to the next one to create the LVM volumes directly on the raw device.
   * Otherwise, create a ''gpt'' partition table with ''gparted''   * Otherwise, create a ''gpt'' partition table with ''gparted''
-  * If you need to boot on the disk, create the required ''boot'' and ''grub'' partitions with ''gparted''+  * If you need to boot on the disk, with ''gparted'': 
 +    * create the EFI partition: set size around 200-400MB, format it to fat32, set ''boot'' and ''esp'' flags 
 +    * create the boot partition: set size around 300-500MB, format it to ext2 
 +    * mount everything: root partition to /mnt, boot partition to /mnt/boot, efi partition to /mnt/boot/efi, ''mount --bind'' /mnt/{dev,proc,sys}, ''mount -t efivarfs efivarfs /mnt/sys/firmware/efi/efivars'' 
 +    * chroot to the new root: ''chroot /mnt'' 
 +    * install grub''grub-install --root-directory=/ --boot-directory=/boot --efi-directory=/boot/efi --bootloader-id=<os-name>'' 
 +    * you can check the EFI install with ''efibootmgr -v'' (and remove an entry with ''efibootmgr -b <0005> -B'' 
 +    * grub-mkconfig -o /boot/grub/grub.cfg
   * If you want to use LVM, create a single large partition with the remaining space with ''gparted'' to create the LVM volumes on this partition.   * If you want to use LVM, create a single large partition with the remaining space with ''gparted'' to create the LVM volumes on this partition.
   * Otherwise create the required system and data partitions with ''gparted''   * Otherwise create the required system and data partitions with ''gparted''
Line 31: Line 38:
 === LVM === === LVM ===
  
-  * create physical volume: ''pvcreate <device-name>''.+  * create physical volume: ''pvcreate <device-name>'' (device can be the whole device if not a boot device, or a partition).
     * Check with ''pvdisplay'' or ''pvs''.     * Check with ''pvdisplay'' or ''pvs''.
     * if it complains with the error ''Cannot use <device-name>: device is partitioned'', you need to remove existing traces of partition table or filesystem with the command ''wipefs --all <device-name>''      * if it complains with the error ''Cannot use <device-name>: device is partitioned'', you need to remove existing traces of partition table or filesystem with the command ''wipefs --all <device-name>'' 
software/files.txt · Last modified: 2024/05/14 21:43 by cyril
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0