-
Notifications
You must be signed in to change notification settings - Fork 0
/
troubleshoot.html
44 lines (39 loc) · 1.63 KB
/
troubleshoot.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!-- chroot/troubleshoot -->
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>chroot</title>
<meta content="width=device-width,initial-scale=1,user-scalable=no" name=viewport>
<script src="style.js" defer></script>
</head><body>
<em>Make sure you are getting the latest iso from your distro's
webpage and write down the version# for any time you have to
use your bootable usb as a medium. That way you know if your
version is up to date or not.</em>
Re-discover an existing filesystem
This example uses a (4) partitioned drive, and (2) on a storage drive:
<b>lsblk -f</b>
<em>mount the root partition first - what holds the root filesystem,
then do the rest.</em>
<b>mount /dev/sda4 /mnt</b>
<b>mount /dev/sda2 /mnt/part2</b>
<b>mount /dev/sda3 /mnt/part3</b>
<b>mount /dev/sdb1 /mnt/example</b>
<b>mount /dev/sdb2 /mnt/part2</b>
<em>access files will be in /mnt</em>
Chroot into mounted system
<b>artix-chroot /mnt</b>
<em>that'll make subsequent commands as if
in your normal filesystem</em>
bash
<b>sudo su -</b>
<em>`sudo su - ` allows you privilege</em>
<b>vi var/log/pacman.log</b> find packages that were installed
<b>downgrade</b> any troublesome packages
<b>exit</b> <em>or <b>ctrl d</b></em>
<b>exit chroot</b>
<b>umount -R /mnt</b>
<em>recursive un-mount any time you mounted, and then shutdown</em>
<b>shutdown -h now</b>
</body></html>