GCFA · Question #79
Which of the following is used to detect the bad sectors in a hard disk under Linux environment?
The correct answer is A. Badblocks. The badblocks command is the standard Linux utility for scanning block devices and identifying unreadable or damaged sectors.
Question
Which of the following is used to detect the bad sectors in a hard disk under Linux environment?
Options
- ABadblocks
- BCheckDisk
- CScanDisk
- DCHKDSK
How the community answered
(42 responses)- A83% (35)
- B2% (1)
- C5% (2)
- D10% (4)
Why each option
The badblocks command is the standard Linux utility for scanning block devices and identifying unreadable or damaged sectors.
Badblocks is a Linux command-line tool that reads every block on a specified device (e.g., /dev/sda) to identify sectors that cannot be reliably read or written, and its output can be passed to e2fsck to permanently mark those blocks as unusable in the file system.
CheckDisk is a Windows graphical disk checking feature and does not exist as a utility in Linux environments.
ScanDisk is a legacy disk repair tool from MS-DOS and early Windows versions and has no equivalent in Linux.
CHKDSK is a Windows command-line tool that checks and repairs NTFS or FAT file system errors and is not available in Linux environments.
Concept tested: Linux bad sector detection with badblocks utility
Source: https://man7.org/linux/man-pages/man8/badblocks.8.html
Topics
Community Discussion
No community discussion yet for this question.