ArchLinux: installing on GPT/LVM/GRUB 2 (no installer)

Boot into ArchLinux ISO

modprobe dm-mod

pacman -Syy

pacman -S gdisk

 

gdisk /dev/sda

o   then "y" to confirm

n

1

<enter>

+32M

ef02

n

2

<enter>

<enter>

8e00

w  then "y"  to confirm

—————

pvcreate /dev/sda2

vgcreate arch /dev/sda2

lvcreate -L 1G -n boot arch

lvcreate -C y -L 4G -n swap arch

lvcreate -L 10G -n root arch

lvcreate -l100%FREE -n home arch

 

————

mkswap /dev/arch/swap

mkfs.xfs /dev/arch/root

mkfs.xfs /dev/arch/home

mkfs.xfs /dev/arch/boot

———————

 

 

INSTALLATION

===============================

mount /dev/arch/root /mnt

cd /mnt

mkdir home boot

mount /dev/arch/boot boot

mount /dev/arch/home home

cd ..

 

pacstrap /mnt base base-devel

———-

genfstab /mnt >> /mnt/etc/fstab

——–

arch-chroot /mnt

 

pacman -Syy

pacman -S grub2-bios

grub-install –boot-directory=/boot –no-floppy –recheck –debug /dev/sda

 

grub-mkconfig -o /boot/grub/grub.cfg

 

nano /etc/mkinitcpio.conf

ADD "lvm2" between sata and filesystems

HOOKS=". . . sata lvm2 filesystems . . ."

 

run

mkinitcpio -p linux

 

 

exit

umount -a

reboot

 

Bookmark the permalink.

2 Responses to ArchLinux: installing on GPT/LVM/GRUB 2 (no installer)

  1. rodarmor says:

    This worked! At least, up to and including the pvcreate and lvcreate stuff. Thank you so much, Mr. Otta. I have named my lvgroup "otta" in your honor.

  2. rodarmor says:

    Travis also approves!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • IGlr