UEFI
windows
自定义设置
更新设置
refer
GPT UEFI
UEFI
UEFI_Bootloaders
EFI Gentoo Quick Install Guid
GRUB UEFI
installing-windows-7-on-uefi-based-computer
archlinux
install
format partion
boot ext2
root ext4
swap
mount root -> /mnt
boot -> /mnt/boot
ESP -> /mnt/boot/efi
swapon /dev/sdaX
install baseos : # pacstrap /mnt base
genfstab -p /mnt >> /mnt/etc/fstab
# arch-chroot /mnt
config
/etc/hostname
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
/etc/locale.conf
echo "LANG=en_US.UTF-8" >> /etc/locale.conf
/etc/locale.gen
en_US.UTF-8 UTF-8 zh_CN.UTF-8 UTF-8 ...
locale-gen
/etc/vconsole.conf
echo -e "KEYMAP=us\nFONT=\nFONT_MAP=\n" >> /etc/vconsole.conf
/etc/mkinitcpio.conf
mkinitcpio -p linux
passwd
pacman -S wpa_supplicant openssh sudo
grub2 UEFI
pacman -S grub-efi-x86_64
check mount /boot/efi
grub-install ...
grub-mkconfig -o /boot/grub/grub.cfg
EXIT chroot , umount /mnt/boot/efi , reboot
post-install
video driver
pacman -S xf86-video-intel
xorg
pacman -S xorg-server xorg-xinit
pacman -S xf86-input-synaptics
KDE
pacman -S kdebase phonon-vlc kdebase-workspace
useradd -m i
passwd i
Create UEFI bootable USB from ISO
BIOS boot ( UEFI mode )
partiton
4k sectors align
AF: 4K native (4Kn) vs 512 emulation (512e)
EFI System Partition (ESP)
partition type code : EF00
parted GPT boot
gdisk -l <device> show partition type code
FAT32
mkfs.vfat -F 32 /dev/sdaX
size:0% ~500MB
4KB-per-sector disk : min size 260 MB
512-byte-per-sector disk : min size 100MB
windows
Configure UEFI/GPT-Based Hard Drive Partitions
FAT32 卷必须至少包含 65,527 个簇
Understanding Disk Partitions
Recommended UEFI-Based Disk-Partition Configurations
archlinux ESP size
gentoo ESP size
gentoo
kernel UEFI config
bootloader
EFI Boot Stub ( no need grub )
EFI stub kernel
UEFI Gentoo Quick Install Guide
UEFI boot GRUB