Skip to content

Commit 0e200a6

Browse files
committed
fixed spaces
1 parent 9461868 commit 0e200a6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/posts/Grub Rescue setup.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Bind /dev, /proc, /sys, and EFI variables to the chroot environment:
112112
#### **i: /dev directory**
113113
Bind the /dev directory to /mnt/dev for device access in the chroot environment.
114114
```python
115-
sudo mount - -bind /dev /mnt/dev
115+
sudo mount --bind /dev /mnt/dev
116116
```
117117
#### **ii: /proc directory**
118118
Bind the /proc directory to /mnt/proc for process information.
@@ -122,12 +122,12 @@ sudo mount --bind /proc /mnt/proc
122122
#### **iii: /sys directory**
123123
Bind the /sys directory to /mnt/sys for system information.
124124
```python
125-
sudo mount - -bind /sys /mnt/sys
125+
sudo mount --bind /sys /mnt/sys
126126
```
127127
#### **iv: efi variables**
128128
Binds EFI variables to /mnt/sys/firmware/efi/efivars for UEFI systems.
129129
```python
130-
sudo mount - -bind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars
130+
sudo mount --bind /sys/firmware/efi/efivars /mnt/sys/firmware/efi/efivars
131131
```
132132
#### **v: /dev/pts (optional for nvme or gpt file systems)**
133133
If your system uses the pts filesystem or you want a pseudo-terminal support.
@@ -142,7 +142,7 @@ Switches the root directory to /mnt, allowing you to work on the installed syste
142142
sudo chroot /mnt
143143
```
144144
### **Step 7: Reinstall GRUB**
145-
Install the GRUB bootloader for UEFI systems, specifying the target architecture, EFI directory, and a bootloader identifier.
145+
(Arch Based) Install the GRUB bootloader for UEFI systems, specifying the target architecture, EFI directory, and a bootloader identifier.
146146

147147
```python
148148
sudo grub-install - -target=x86_64-efi - -efi-directory=/boot/efi - -bootloader-id=GRUB

0 commit comments

Comments
 (0)