Latest News
- Programming humor
- Programming booleans
- On the last day
- Office 2007: Microsoft shoots itself in the foot?
- Badblocks
- UN General Assembly votes for world wide suspension of executions
- Code snippets
- Why condoms are sold in packs of 3, 6, and 12
- The mystery of the magic file (or how i invented the .rte and .rtg file formats)
- Review: Knocked Up (2/5)
Popular
- New site, new system
- Moblock traffic blocker
- Selfmade proverbs
- Euro English
- The mystery of the magic file (or how i invented the .rte and .rtg file formats)
- The Panda
- American democracy: tasering those who doesn't shut up!
- Review: Knocked Up (2/5)
- China: Tibetan Schoolboys Detained
- BasKet Note Pads - multi-purpose note-taking application
| Badblocks | | Print | |
| Written by Hoakz | |
| Monday, 24 December 2007 | |
|
It took me some time to find out the equivalent of Window's checkdisk/scandisk/chkdisk on Linux, but trust me, there are several. For starters I am going to take a look at badblocks, a command that as the name implies, looks for bad blocks. BadblocksThe basic format of badblocks are: badblocks [options] device If you have a fresh drive with no important data on it you can do: badblocks -s -w /dev/sdb Note however, the -w command will erase all existing data on the drive so do not use it for drives with existing file systems on them. You cannot use -w on a mounted drive, unmount it first. The -s flag makes the command show a progress bar. This could come in handy when you are testing larger drives since even the fastest systems will take at least an hour to test an average sized drive (my 400GB took about 2 hours on a SATAII system). If you want to test the drive without deleting data you can use the -n switch which will use non-destructive write-read mode, however, this switch can, for obvious reasons, not be combined with the -w switch. badblocks -s -n /dev/sdb Linkshttp://linux.die.net/man/8/badblocks http://linux.about.com/library/cmd/blcmdl8_badblocks.htm http://smartmontools.sourceforge.net/BadBlockHowTo.txt
|
|
| Last Updated ( Monday, 24 December 2007 ) |
| < Prev | Next > |
|---|






