how to check bad sector on HDD 6TB
koko@Rumah:~$ sudo badblocks -v /dev/sda2
[sudo] password for koko:
badblocks: Value too large for defined data type invalid end block (5751976960): must be 32-bit value
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityfor me the trick was to simply increase the blocksize:
badblocks -b 4096 -v /dev/sda
4096 x (2^32) = 17592186044416
, or 16 TiB. Your 18 TB disk (18,000,000,000,000 bytes) is 16.37 TiB, so 0.37 TiB too large for 4096 byte blocks at 32-bit. You'll need a larger block size, e.g. 8192 bytes, though I'm not sure what exact size is ideal to use beyond 4096.
badblocks
can't cope with HDDs that large. You'll not get it to run on your 6TB HDD, no matter what you'll do.