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.

5 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!

  3. betflik slot says:

    I like this web blog very much so much excellent info.

  4. I’m truly enjoying the design and layout of your site. It’s
    a very easy on the eyes which makes it much more enjoyable for me to come here and visit
    more often. Did you hire out a developer to create
    your theme? Great work!

Leave a Reply to betflik slot Cancel reply