64 lines
1.1 KiB
Markdown
64 lines
1.1 KiB
Markdown
# Lab OS-2: Recovery and Disk Information
|
|
|
|
Domain:
|
|
- 1.0 Operating Systems
|
|
|
|
Works on:
|
|
- Windows
|
|
- Linux
|
|
|
|
Does not require:
|
|
- macOS
|
|
|
|
## Goal
|
|
|
|
Practice safe commands that help identify recovery status, file corruption, boot configuration, and disk layout.
|
|
|
|
## Windows Steps
|
|
|
|
Run:
|
|
|
|
```powershell
|
|
reagentc /info
|
|
sfc /scannow
|
|
bcdedit
|
|
```
|
|
|
|
Optional repair command:
|
|
|
|
```powershell
|
|
DISM /Online /Cleanup-Image /RestoreHealth
|
|
```
|
|
|
|
Record:
|
|
- Is Windows RE enabled?
|
|
- Did SFC find integrity violations?
|
|
- What boot loader description appears in `bcdedit`?
|
|
- Did DISM complete successfully, if you ran it?
|
|
|
|
Do not edit BCD settings in this lab.
|
|
|
|
## Linux Steps
|
|
|
|
Run:
|
|
|
|
```bash
|
|
lsblk
|
|
df -h
|
|
```
|
|
|
|
Record:
|
|
- Main disk name:
|
|
- Root filesystem:
|
|
- Root filesystem free space:
|
|
- Any mounted removable drives:
|
|
|
|
## What You Should Learn
|
|
|
|
- `reagentc /info` checks Windows Recovery Environment status.
|
|
- `sfc /scannow` checks and repairs protected Windows system files.
|
|
- `DISM /Online /Cleanup-Image /RestoreHealth` repairs the Windows image/component store.
|
|
- `bcdedit` displays boot configuration.
|
|
- `lsblk` shows disks and partitions.
|
|
- `df -h` shows mounted filesystem usage.
|
|
|