CurrentPendingSector - logical or physical?

  • hi there,


    got a bad sector on my OS drive.
    So I reboot the server to the SystemRescueCD thing and ssh'ing to there.
    SO far so good.


    What I want: do a dd to the bad sector(s) so they are remapped.
    Why am I posting: Sector Sizes: 512 bytes logical, 4096 bytes physical


    How do I dd ?
    With the logical or the physical sector size?
    dd if=/dev/zero of=/dev/sdaX bs=4096 count=1 seek=X conv=noerror,sync


    dd if=/dev/zero of=/dev/sdaX bs=512 count=1 seek=X conv=noerror,sync



    Or do I use badblocks:
    badblocks -sv -b 512 /dev/sda


    badblocks -sv -b 4096 /dev/sda
    thank you :)

    HP Z800 Workstation running OMV.

    also running Nextcloud for home home use, Motioneye for CCTV, Ampache for listening my music around the world

    Dual CPU Intel(R) Xeon(R) CPU E5620 @ 2.40GHz

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!