Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| hardware:workflow:memtest [2025/08/11 10:31] – fixed layout / code blocks fabricio | hardware:workflow:memtest [2025/09/01 17:11] (current) – removed fabricio | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Isolating and Testing RAM Sticks in Ubuntu ====== | ||
| - | This guide explains how to: | ||
| - | * Boot using only **one RAM stick** (by reserving other address ranges via '' | ||
| - | * Test the remaining sticks with '' | ||
| - | * Cycle through all sticks, including the originally "known good" | ||
| - | * Reset to the normal configuration afterwards | ||
| - | |||
| - | ===== 1. Finding a Bootable Stick ===== | ||
| - | If you are unsure which RAM stick works: | ||
| - | - Power down and remove all but one stick | ||
| - | - Insert into the **primary DIMM slot** (usually nearest the CPU — see your motherboard manual) | ||
| - | - Attempt to boot | ||
| - | * If the system posts and loads an OS, mark this stick **bootable** | ||
| - | * If not, swap in another stick and repeat until one works | ||
| - | |||
| - | (For more on this isolation method, see [[https:// | ||
| - | |||
| - | ===== 2. Determine Memory Layout ===== | ||
| - | |||
| - | 1. With only the bootable stick installed, boot Ubuntu. | ||
| - | |||
| - | 2. Check stick size and slot mapping: | ||
| - | <code bash> | ||
| - | sudo dmidecode --type memory | ||
| - | </ | ||
| - | |||
| - | 3. Record: | ||
| - | - Size of the good stick (e.g. 8 GiB) | ||
| - | - Number and sizes of all sticks when installed | ||
| - | |||
| - | ===== 3. Reserve the Other Sticks' | ||
| - | 1. Install all sticks. | ||
| - | 2. Edit GRUB: | ||
| - | |||
| - | <code bash> | ||
| - | sudo nano / | ||
| - | </ | ||
| - | |||
| - | 3. In: | ||
| - | < | ||
| - | GRUB_CMDLINE_LINUX_DEFAULT=" | ||
| - | </ | ||
| - | |||
| - | | ||
| - | < | ||
| - | memmap=< | ||
| - | </ | ||
| - | |||
| - | | ||
| - | * **SIZE** = total capacity of sticks to test | ||
| - | * **START** = address immediately after the main stick' | ||
| - | |||
| - | | ||
| - | < | ||
| - | GRUB_CMDLINE_LINUX_DEFAULT=" | ||
| - | </ | ||
| - | |||
| - | 4. Save, update GRUB, reboot: | ||
| - | <code bash> | ||
| - | sudo update-grub | ||
| - | sudo reboot | ||
| - | </ | ||
| - | |||
| - | **Sidenote on update-grub**: | ||
| - | After editing ''/ | ||
| - | |||
| - | **Verification: | ||
| - | After rebooting, check reserved memory with: | ||
| - | |||
| - | <code bash> | ||
| - | dmesg | grep -i memmap | ||
| - | free -h # Available RAM should reflect the exclusion | ||
| - | </ | ||
| - | |||
| - | ===== 4. Verify Isolation ===== | ||
| - | <code bash> | ||
| - | free -h | ||
| - | </ | ||
| - | Should show only the good stick' | ||
| - | |||
| - | ===== 5. Test the Other Sticks In‑OS ===== | ||
| - | Install and run: | ||
| - | <code bash> | ||
| - | sudo apt install memtester | ||
| - | memtester < | ||
| - | </ | ||
| - | Where **SIZE-TO-TEST** ≈ reserved size. | ||
| - | |||
| - | **Runtime note:** | ||
| - | * '' | ||
| - | * '' | ||
| - | |||
| - | ===== 6. Cycling Through Sticks ===== | ||
| - | Once a stick passes the in‑OS test: | ||
| - | - Shut down | ||
| - | - Move this passing stick into the **main** slot | ||
| - | - Move the previously main stick into the test slots | ||
| - | - Update the '' | ||
| - | - Repeat testing | ||
| - | |||
| - | This way, you can eventually test **every stick**, including the one you started with. | ||
| - | |||
| - | ===== 7. Restore Normal Operation ===== | ||
| - | 1. Edit ''/ | ||
| - | 2. Update GRUB and reboot: | ||
| - | <code bash> | ||
| - | sudo update-grub | ||
| - | sudo reboot | ||
| - | </ | ||
| - | |||
| - | 3. Verify all RAM is detected: | ||
| - | <code bash> | ||
| - | free -h | ||
| - | </ | ||
| - | |||
| - | ===== 8. Tips ===== | ||
| - | * ECC RAM: Check '' | ||
| - | * Label defective sticks immediately | ||
| - | * If several sticks fail in the same slot, suspect the slot or motherboard | ||
| - | * See [[https:// | ||