Hallo Gemeinde,
es wäre toll, wenn ihr mir beim Recovery beistehen könntet!
Eben war ich ganz schlau: Ich habe mir auf dem VDR den Bootsektor und die Partitionstabelle überschrieben.
Eigentlich hätte es ein Schreibtest auf eine beschädigte SSD sein sollen, die an sdb hängt. Das kommt davon, wenn man cut & paste macht ohne Nachzudenken! Denn am raspii war dies sda..
root@media-sack2:~# dd if=/dev/zero of=/dev/sda bs=4M
^C719+0 Datensätze
ein
719+0 Datensätze aus
3015704576 Bytes
(3,0 GB) kopiert, 11,5766 s, 261 MB/s
Ich habe keinen Backup der Partionsconfig.
Der Rechner läuft! (noch.. blos nicht booten..), ich kann direkt drauf arbeiten.
TestDisk ist leider nicht installiert, das Repo ist mir aktuell nicht bekannt.
Die Partitionen sehen so aus (Hatte ich vorher dokumentiert):
Konfig auf yavdr 0.5:
root@media-sack2:~# parted /dev/sda
GNU Parted 2.3
Verwende /dev/sda
Willkommen zu GNU Parted! Geben Sie 'help' ein, um eine Liste der verfügbaren Kommados zu erhalten.
(parted) print
Modell: ATA ST4000DM000-1F21 (scsi)
Festplatte /dev/sda: 4001GB
Sektorgröße (logisch/physisch): 512B/4096B
Partitionstabelle: gpt
Nummer Anfang Ende Größe Dateisystem Name Flags
1 1049kB 2149MB 2147MB ext3 Linux filesystem
2 2149MB 4001GB 3999GB Linux LVM LVM
root@media-sack2:~# pvdisplay
--- Physical volume ---
PV Name /dev/sda2
VG Name VolGroup01
PV Size 3,64 TiB / not usable 2,82 MiB
Allocatable yes (but full)
PE Size 4,00 MiB
Total PE 953349
Free PE 0
Allocated PE 953349
PV UUID 0jJsg0-Yo63-g58U-WKI0-kEol-hBE3-ZdMkOI
root@media-sack2:~# lvdisplay
--- Logical volume ---
LV Name /dev/VolGroup01/swap
VG Name VolGroup01
LV UUID lDahek-LEmK-1gCR-KhJS-YmZ9-00KZ-KoZiLX
LV Write Access read/write
LV Status available
# open 2
LV Size 8,00 GiB
Current LE 2048
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:0
--- Logical volume ---
LV Name /dev/VolGroup01/yaVDR1
VG Name VolGroup01
LV UUID BBUJfc-Dg2L-d0B9-Ff2P-VBdL-ZnSC-JretyQ
LV Write Access read/write
LV Status available
# open 0
LV Size 25,00 GiB
Current LE 6400
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1
--- Logical volume ---
LV Name /dev/VolGroup01/yaVDR2
VG Name VolGroup01
LV UUID SVHQGZ-nQGl-pvN6-OjGE-TJMd-zwko-w1qRGU
LV Write Access read/write
LV Status available
# open 1
LV Size 25,00 GiB
Current LE 6400
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:2
und weitere..
Alles anzeigen
Also habe ich folgendes überschrieben:
- bootblock
- Partitionstabelle
- lvm - Informationen
- Teile von swap (Macht nix)
Der aktuelle VDR läuft auf /dev/VolGroup01/yaVDR2, also bei > 30 GB und ist nicht betroffen.
1. Problem: rescue geht nicht, da es gar keine Partitionstabelle gibt:
Ich will da sehr behutsam vorgehen, deshalb frage ich lieber, trail & error ist gerade nicht angesagt... Natürlich recherchiere ich auch selbst dazu, z.B. hier: https://wiki.ubuntuusers.de/Partitionierung/
Aktuelle Fragen:
1. Wie lege ich die Partitionstabelle an?
2. Wie stelle ich den Bootsektor wieder her?
LG
satzgafatz