Skip to content

4 comments

unknown author

On a personal note, I always mount /boot and /home as well before chroot'ing. That way I don't accidentally do something later assuming that they're mounted.

Probably should have replied to the comment with instructions.

Oh I'm sorry, I missed your last mount instruction because it's formatted with two commands on one line.

In your LVM on Luks configuration you must have encrypted /boot?

2 points

I got tired of having to figure this out every time I needed it, and it's too simple to automate/not completely possible, so I finally wrote it down. Maybe it can help someone else.

1 points
# Boot off a live usb or similar as if you're installing
# If you're more comfortable with a different keyboard layout
$ loadkeys dvorak
# populate the second argument of the cryptsetup command based on this
$ parted <<<'print'
# the third argument may be anything, it needn't be used later
$ cryptsetup open /dev/sda3 foobar
# check your volume groups to see what to mount
$ ls /dev/vg
# this device path is dependent on the volume group configuration
$ mount /dev/vg/root /mnt
# for good measure, also based on configuration
$ swapon /dev/vg/swap
# this mount can be confirmed in /mnt/etc/fstab
$ mount /dev/sda1 /mnt/esp
$ arch-chroot /mnt
# modify the system as needed
1 points

I don't make separate partitions for /boot or /home anymore as I always found it made more hassle. Certainly though, if you have those, they should be mounted as well.

1 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.