Skip to content

Commit 64d4b46

Browse files
committed
updaate codeblocks
1 parent d9353c3 commit 64d4b46

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

_posts/2025-11-23-week-03-arch-linux-install.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ I started with what seemed like a reasonable approach: follow a YouTube tutorial
101101

102102
The tutorial was detailed and professional. It covered disk encryption, LVM volume groups, and bootloader configuration. Perfect for a production system that would run Kubernetes infrastructure, right?
103103

104-
**The installation steps I followed:**
104+
**Main Installation Steps**
105105
1. Created bootable USB with Arch ISO
106106
2. Partitioned disk with encrypted LVM (following tutorial)
107107
3. Installed base system with `pacstrap`
@@ -113,13 +113,13 @@ The tutorial was detailed and professional. It covered disk encryption, LVM volu
113113

114114
**What happened:** The system booted directly into the MSI BIOS, completely bypassing the hard drive.
115115

116-
### Problem 1: MSI Motherboard UEFI Quirk
116+
### Problem: MSI Motherboard UEFI Quirk
117117

118118
My first thought was the bootloader didn't install correctly. After searching, I discovered MSI motherboards have a known quirk: they ignore custom UEFI boot entries and only boot from the fallback path `/EFI/BOOT/BOOTX64.EFI`.
119119

120120
The solution: Install GRUB with the `--removable` flag.
121121

122-
```bash
122+
```shell
123123
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB --removable
124124
```
125125

@@ -135,7 +135,7 @@ But selecting "Arch Linux" from the menu resulted in a blank screen with error m
135135

136136
With GRUB working, the next challenge was getting the system to actually boot. The error messages revealed the core issue (Not exact message):
137137

138-
```
138+
```shell
139139
[ TIME ] Timed out waiting for device /dev/mapper/volgroup0-lv_root
140140
[ DEPEND ] Dependancy failed for File System mk on /dev/mapper/volgroup0-lv_root
141141
[ DEPEND ] Dependancy failed for /sysroot
@@ -202,7 +202,7 @@ Here's the condensed version of what actually worked:
202202
203203
### 1. Partition the Disk
204204
205-
```bash
205+
```shell
206206
fdisk /dev/nvme0n1
207207
208208
# Commands entered:
@@ -231,7 +231,7 @@ w # Write changes
231231
232232
### 2. Format and Mount
233233
234-
```bash
234+
```shell
235235
# Format partitions
236236
mkfs.fat -F32 /dev/nvme0n1p1
237237
mkswap /dev/nvme0n1p2
@@ -251,7 +251,7 @@ mount /dev/nvme0n1p1 /mnt/boot
251251
252252
### 3. Install Base System
253253
254-
```bash
254+
```shell
255255
pacstrap -K /mnt base linux linux-firmware linux-headers linux-lts linux-lts-headers
256256
257257
# Generate fstab
@@ -265,7 +265,7 @@ The `-U` flag uses UUIDs instead of device names, which is more reliable if disk
265265
266266
### 4. Configure System
267267
268-
```bash
268+
```shell
269269
# Chroot into new system
270270
arch-chroot /mnt
271271
@@ -302,7 +302,7 @@ systemctl enable NetworkManager
302302
303303
### 5. Install Bootloader (MSI-Compatible)
304304
305-
```bash
305+
```shell
306306
# Install GRUB with --removable flag for MSI motherboards
307307
grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=GRUB --removable
308308
@@ -315,7 +315,7 @@ grub-mkconfig -o /boot/grub/grub.cfg
315315
316316
### 6. Reboot
317317
318-
```bash
318+
```shell
319319
exit
320320
umount /mnt/boot
321321
umount /mnt
@@ -334,7 +334,7 @@ Success! Well, almost.
334334
335335
The system booted to TTY1 (text login) instead of the graphical GNOME login screen (GDM). After logging in, I checked the status:
336336
337-
```bash
337+
```shell
338338
systemctl status gdm
339339
# Output: loaded (disabled; preset: disabled)
340340
# Active: inactive (dead)
@@ -343,7 +343,7 @@ systemctl status gdm
343343
GDM wasn't enabled, even though I ran `systemctl enable gdm` during installation.
344344
345345
**The fix:**
346-
```bash
346+
```shell
347347
sudo systemctl enable gdm
348348
sudo systemctl start gdm
349349
```
@@ -361,7 +361,7 @@ Well, almost done. After logging into the GNOME desktop, I discovered a few conf
361361
Even though I ran `locale-gen` during installation, the `/etc/locale.conf` file wasn't being read properly.
362362
363363
**The fix:**
364-
```bash
364+
```shell
365365
# Regenerate locales
366366
sudo locale-gen
367367

@@ -375,7 +375,7 @@ localectl status
375375
I assumed setting the timezone during installation would persist, but checking the system time revealed it was using UTC:
376376
377377
**The fix:**
378-
```bash
378+
```shell
379379
# Set timezone (adjust for your region)
380380
sudo ln -sf /usr/share/zoneinfo/Canada/Pacific /etc/localtime
381381

0 commit comments

Comments
 (0)