История изменений
Исправление Hi, (текущая версия) :
fdisk /dev/sda
g # GPT
n -> 2048 -> 1050623 # Create ESP 512MB
t -> 1 -> 1 # Make the EFI type
n -> „Enter“ -> „Enter“ # Create root from all free sectors
pvcreate /dev/sda2
vgcreate vg /dev/sda2
lvcreate -n root -l100%FREE vg
mkfs.fat -F32 /dev/sda1
mkfs.ext4 -L root /dev/mapper/vg-root
mount /dev/mapper/vg-root /mnt
mkdir /mnt/boot
mkdir /mnt/boot/efi
mount /dev/sda1 /mnt/boot/efi
pacman -Syy
pacstrap /mnt base base-devel
genfstab -U -p /mnt >> /mnt/etc/fstab
arch-chroot /mnt
pacman -S lvm2 grub efibootmgr dosfstools os-prober mtools
nano /etc/mkinitcpio.conf
block lvm2 filesystems
nano /etc/default/grub
GRUB_PRELOAD_MODULES="... lvm"
os-prober
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --removable --recheck
mkinitcpio -p linux
grub-mkconfig -o /boot/grub/grub.cfg
exit
umount /dev/sda1
umount /dev/mapper/vg-root
Исходная версия Hi, :
Исправленный вариант
fdisk /dev/sda
g # GPT
n -> 2048 -> 1050623 # Create ESP 512MB
t -> 1 -> 1 # Make the EFI type
n -> „Enter“ -> „Enter“ # Create root from all free sectors
pvcreate /dev/sda2
vgcreate vg /dev/sda2
lvcreate -n root -l100%FREE vg
mkfs.fat -F32 /dev/sda1
mkfs.ext4 -L root /dev/mapper/vg-root
mount /dev/mapper/vg-root /mnt
mkdir /mnt/boot
mkdir /mnt/boot/efi
mount /dev/sda1 /mnt/boot/efi
pacman -Syy
pacstrap /mnt base base-devel
genfstab -U -p /mnt >> /mnt/etc/fstab
arch-chroot /mnt
pacman -S lvm2 grub efibootmgr dosfstools os-prober mtools
nano /etc/mkinitcpio.conf
block lvm2 filesystems
nano /etc/default/grub
GRUB_PRELOAD_MODULES="... lvm"
os-prober
grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --removable --recheck
mkinitcpio -p linux
grub-mkconfig -o /boot/grub/grub.cfg
exit
[i]umount /dev/sda1[/i]
[i]umount /dev/mapper/vg-root[/i]