Arch Uefi: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „=partitions layout= Number Start (sector) End (sector) Size Code Name 1 2048 2099199 1024.0 MiB EF00 EFI System 2…“)
 
 
(4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 5: Zeile 5:
 
   3        10487808        62914526  25.0 GiB    8300  Linux filesystem
 
   3        10487808        62914526  25.0 GiB    8300  Linux filesystem
 
=format=
 
=format=
*mkfs.fat -
+
 
 +
*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
 +
 
 +
 
 +
*https://wiki.archlinux.de/title/UEFI_Installation
 +
*http://askubuntu.com/questions/566315/virtualbox-boots-only-in-uefi-interactive-shell

Aktuelle Version vom 14. Februar 2015, 16:04 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