Arch Uefi: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 19: Zeile 19:
  
 
*mount /dev/sda1 /mnt/boot
 
*mount /dev/sda1 /mnt/boot
 +
 +
 +
!!! install as usual
  
 
=install tools=
 
=install tools=
Zeile 30: Zeile 33:
 
mkdir -p /boot/grub/locale
 
mkdir -p /boot/grub/locale
 
cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
 
cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
 +
 +
=uefi startfix=
 +
echo '\EFI\arch_grub\grubx64.efi' > /boot/startup.nsh

Version vom 14. Februar 2015, 16:02 Uhr

partitions layout

Number  Start (sector)    End (sector)  Size       Code  Name
  1            2048         2099199   1024.0 MiB  EF00  EFI System
  2         2099200        10487807   4.0 GiB     8200  Linux swap
  3        10487808        62914526   25.0 GiB    8300  Linux filesystem

format

  • mkfs.fat -F 32 /dev/sda1
  • mkswap /dev/sda2
  • mkfs.ext4 /dev/sda3

mount and swapon

  • mount /dev/sda3 /mnt
  • mkdir /mnt/boot
  • mount /dev/sda1 /mnt/boot


!!! install as usual

install tools

  • pacman -S grub efibootmgr dosfstools

grub-install

  • grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=arch_grub --recheck --debug

locale

mkdir -p /boot/grub/locale cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo

uefi startfix

echo '\EFI\arch_grub\grubx64.efi' > /boot/startup.nsh