Forrest logo
back to context overview

badblocks

List of commands for badblocks:

  • badblocks:ai:3aec6 Check disk /dev/sda for bad blocks and show progress
    $ badblocks -s /dev/sda
    try on your machine
    explain this command
  • badblocks:ai:d20b7 Scan for bad blocks on the specified disk (/dev/sdX)
    $ badblocks -v /dev/sdX
    try on your machine
    explain this command
  • badblocks:tldr:2b3ad badblocks: Search an unmounted disk in destructive mode and output found blocks to a file.
    $ sudo badblocks -o ${filename} -w ${-dev-sdX}
    try on your machine
    explain this command
  • badblocks:tldr:55abf badblocks: Search an unmounted disk in destructive mode with improved speed using 4K block size and 64K block count.
    $ sudo badblocks -w -b ${4096} -c ${65536} ${-dev-sdX}
    try on your machine
    explain this command
  • badblocks:tldr:6cb2f badblocks: Search a disk for bad blocks by using a non-destructive read-only test.
    $ sudo badblocks ${-dev-sdX}
    try on your machine
    explain this command
  • badblocks:tldr:6d512 badblocks: Search an unmounted disk for bad blocks with a destructive write test.
    $ sudo badblocks -w ${-dev-sdX}
    try on your machine
    explain this command
  • badblocks:tldr:89d11 badblocks: Search an unmounted disk for bad blocks with a destructive write test and show verbose status.
    $ sudo badblocks -svw ${-dev-sdX}
    try on your machine
    explain this command
  • badblocks:tldr:c8b78 badblocks: Search an unmounted disk for bad blocks with a non-destructive read-write test.
    $ sudo badblocks -n ${-dev-sdX}
    try on your machine
    explain this command
back to context overview