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