Skip to content

What am I doing wrong in my installation? [ I wrote out all the steps I take.]

Not downloaded yet

So I'm using LVM on LUKS and a separate usr partition. This is the commands i use on my setup

sgdisk -Z /dev/sda

sgdisk -a 2048 -o /dev/sda

gdisk /dev/sda

n

<enter>

+512M

EF00

c

boot

n

1

<enter> <enter> <enter>

c

2

root

w

mkfs.vfat -F32 /dev/sda1

cryptsetup --cipher aes-xts-plain64 --key-size 512 --hash sha512 --iter-time 5000 --use-random --verify-passphrase luksFormat /dev/sda2

cryptsetup luksOpen --allow-discards /dev/sda2 lvm

pvcreate /dev/mapper/lvm

vgcreate vg /dev/mapper/lvm

lvcreate -L 16G -n swap

lvcreate -L 10G -n root

lvcreate -L 50G -n home

lvcreate -L 20G -n usr

lvcreate -L 20G -n opt

lvcreate -L 20G -n var

lvcreate -L 20G -n tmp

mkfs.ext4 -L root /dev/mapper/vg-root

mkfs.ext4 -L home /dev/mapper/vg-home

mkfs.ext4 -L usr /dev/mapper/vg-usr

mkfs.ext4 -L opt /dev/mapper/vg-opt

mkfs.ext4 -L var /dev/mapper/vg-var

mkfs.ext4 -L tmp /dev/mapper/vg-tmp

mkswap -L swap /dev/mapper/vg-swap

swapon -d /dev/mapper/vg-swap

mount /dev/mapper/vg-root /mnt

mkdir -p /mnt/boot/efi

mount /dev/sda1 /mnt/boot/efi

mkdir /mnt/home

mkdir /mnt/usr

mkdir /mnt/opt

mkdir /mnt/var

mkdir /mnt/tmp

mount /dev/mapper/vg-home /mnt/home

mount /dev/mapper/vg-usr /mnt/usr

mount /dev/mapper/vg-opt /mnt/opt

mount /dev/mapper/vg-var /mnt/var

mount /dev/mapper/vg-tmp /mnt/tmp

pacstrap -i /mnt base base-devel bash-completion vim

genfstab -U -p /mnt >> /mnt/etc/fstab

nano /mnt/etc/fstab

ON THE usr Partition, set passno to 0

ON THE swap partition, change default to default,discard

arch-chroot /mnt

nano /etc/mkinitcpio.conf

add modules vfat ext4 dm_mod dm_crypt aes_x86_64 crc32c-intel

hook string = base udev block autodetect modconf encrypt lvm2 resume filesystems keyboard usr fsk shutdown

nano /etc/lvm/lvm.conf

issue_discards 1

use_lvmetad 0

pacman -S grub efibootmgr

nano /etc/default/grub

ADD ON 2nd line GRUB_ENABLE_CRYPTODISK=y

MAKE

GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda1:lvm:allow-discards resume=/dev/mapper/vg-swap"

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

mkinitcpio -p linux

quit

reboot

And then I'm getting the error in the picture after I input my passkey. http://imgur.com/X3Uauzp

EDIT: I think it has to do with my HOOKS string. How do I fix this without a reinstall?

EDIT2: I redid my grub and HOOKS and now I'm getting Now I redid my hooks and GRUB but now I'm getting error: no such device: <UUID> Loading Linux core repo kernel... error: no such partition loading initial ramdisk ... alloc magic is broken at 0xb66218c0: b673f3c0 Aborted. Press any key to exit

EDIT2: FIXED! I FORGOT TO grub-mkconfig -o /boot/grub/grub.cfg!

Edited 6 Jun 2015. We only hold this version.

0 points5 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
0 · 100% up
Kind
Image
ID
38tkff

7 comments

So many key services are on /usr/bin that I don't think it's a good idea to put /usr on a separate partition these days. Remove the /usr and reboot strap(or remount the parition somewhere other than /mnt/usr and manaully copy the contents to /mnt/usr) and it should boot. There might be work around, but these days /usr is not what is was on older unix systems and on modern Linux it's pretty tied in to the core of the os, so it shouldn't really live on its own partition.

5 points

In fact Arch doesn't support a separate /usr partiton. /bin and /sbin are just symlinks to /usr/bin.

2 points

That's what I thought. I knew it didn't work out of the box, but I wasn't certain it if was actually unsupported.

1 points
unknown author

Deleted before we saved it.

-3 points

Stop blowing up this sub with shit you are too lazy or stupid to google.

4 points
unknown author

Deleted before we saved it.

-2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.