Root Raid Platte tauschen: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
| (3 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 11: | Zeile 11: | ||
=Partition zurück schreiben= | =Partition zurück schreiben= | ||
*sfdisk --force /dev/sda < partiton.table | *sfdisk --force /dev/sda < partiton.table | ||
| − | = | + | =Partitionstabelle dem Kernel mitteilen= |
*partprobe | *partprobe | ||
| − | |||
=Grub Stage 1 in neue Platte installieren= | =Grub Stage 1 in neue Platte installieren= | ||
*grub-install /dev/sda | *grub-install /dev/sda | ||
| Zeile 20: | Zeile 19: | ||
=Kontrolle= | =Kontrolle= | ||
*cat /proc/mdstat | *cat /proc/mdstat | ||
| + | =Was kann schief gehen?= | ||
| + | *Bootet nicht mehr? | ||
| + | **Neue Platte raus und nochmal testen | ||
| + | **Von Livesystem booten | ||
| + | **[[GRUB2 RAID]] | ||
Aktuelle Version vom 24. November 2022, 15:48 Uhr
Kontrolle
- cat /proc/mdstat
Partition auf faulty setzen
- mdadm /dev/md0 -f /dev/sda1
Partition removen
- mdadm /dev/md0 -r /dev/sda1
Kontrolle ob die Partiton draussen ist
- cat /proc/mdstat
Partitionstabelle von der intakten Platte sichern
- sfdisk -d /dev/sdb > partiton.table
Partition zurück schreiben
- sfdisk --force /dev/sda < partiton.table
Partitionstabelle dem Kernel mitteilen
- partprobe
Grub Stage 1 in neue Platte installieren
- grub-install /dev/sda
Partition hinzufügen
- mdadm /dev/md0 -a /dev/sda1
Kontrolle
- cat /proc/mdstat
Was kann schief gehen?
- Bootet nicht mehr?
- Neue Platte raus und nochmal testen
- Von Livesystem booten
- GRUB2 RAID