meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
datarecovery:lvm [2023/01/27 08:31] niziakdatarecovery:lvm [2023/01/28 18:52] (current) niziak
Line 92: Line 92:
     Logical volume /dev/pve/data_tdata     Logical volume /dev/pve/data_tdata
     Logical extents 0 to 16297     Logical extents 0 to 16297
 +
 +
 +!!! DONT KNOW HOW TO REMAP LVM SECTORS
  
  
 lvcreate -l1 pve -n bb85984896 /dev/sda3:10367 lvcreate -l1 pve -n bb85984896 /dev/sda3:10367
  
 +
 +===== Zeroing sectors =====
 +
 +Confirm that sector read fails:
 +
 +<code bash>
 +dd if=/dev/sda of=/tmp/dump.raw bs=512 count=1 skip=85981696
 +hdparm --read-sector 85981696 /dev/sda
 +hdparm --write-sector 85981696 --yes-i-know-what-i-am-doing  /dev/sda
 +</code>
 +
 +
 +
 +  40 51 08 b8 06 20 e5  Error: UNC 8 sectors at LBA = 0x052006b8 = 85984952..85984959
 +  40 51 08 b0 06 20 e5  Error: UNC 8 sectors at LBA = 0x052006b0 = 85984944..85984951
 +  40 51 08 a8 06 20 e5  Error: UNC 8 sectors at LBA = 0x052006a8 = 85984936..85984943
 +  40 51 08 a0 06 20 e5  Error: UNC 8 sectors at LBA = 0x052006a0 = 85984928..85984935
 +  40 51 80 80 06 20 e5  Error: UNC 128 sectors at LBA = 0x05200680 = 85984896  to 85985023
 +
 +<code bash>
 +for i in {85984896..85985023}; do echo $i; hdparm --write-sector $i --yes-i-know-what-i-am-doing  /dev/sda; don
 +</code>