Skip to content

Instantly share code, notes, and snippets.

@maruel
Created December 2, 2023 20:01
Show Gist options
  • Save maruel/912798a7a630086f1b401b205db0a78f to your computer and use it in GitHub Desktop.
Save maruel/912798a7a630086f1b401b205db0a78f to your computer and use it in GitHub Desktop.
tmp
https://man7.org/linux/man-pages/man1/dd.1.html
dd bs=4M if=/dev/nvme2n1 of=/dev/nvme1n1 conv=noerror status=progress
BAD 4M blocks:
565+1 (1.8GiB)
580+2 (2.2GiB)
1639+3 (6.3GiB)
241689+4 (944GiB)
Conversion: 4*1024*1024/512 = 8192
BAD sectors
4634112
4635200
4765184
4766848
13446240
1979948888
En espérant que ce soit bon pour sauver autant qu'on peut:
8192*565 = 4628480
dd if=/dev/nvme2n1 of=/dev/nvme1n1 conv=noerror status=progress
count=8192 seek=4628480 skip=4628480
8192*580 = 4751360
dd if=/dev/nvme2n1 of=/dev/nvme1n1 conv=noerror status=progress
count=8192 seek=4751360 skip=4751360
8192*1639 = 13426688
dd if=/dev/nvme2n1 of=/dev/nvme1n1 conv=noerror status=progress
count=8192 seek=13426688 skip=13426688
8192*241689 = 1979916288
dd if=/dev/nvme2n1 of=/dev/nvme1n1 conv=noerror status=progress
count=8192 seek=1979916288 skip=1979916288
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment