Feb 25

Ich mag Linux und seine Entwickler. Während Mac OS und Windows dem User selten ein Werkzeug geben, mit dem dieser etwas wirklich Destruktives tun kann (Letzteres hat dies bis vor kurzem nur über den Umweg über Viren gestattet), drückt Dir Linux gnadenlos eine entsicherte Pistole in die Hand und läßt Dir die freie Wahl, was Du damit anstellst. Also kannst Du entweder in Zielnähe treffen oder Dir mächtig in den eigenen Fuß schießen.

Hier ein Auszug der Manpage zum Programm badblocks, das eine Festplatte auf fehlerhafte Sektoren prüft. Das kann auf mehrere Arten geschehen, abhängig davon, ob bspw. schon Daten auf der Platte liegen. Die Option -f sagt dem Programm, wirklich genau das zu tun, was der User sagt. Egal, ob es sinnvoll ist oder nicht.

Normally, badblocks will refuse to do a read/write or a non-destructive test on a device which is mounted, since either can cause the system to potentially crash and/or damage the filesystem even if it is mounted read-only.  This can be overridden using the -f flag, but should almost never be used — if you think you’re smarter than  the  badblocks  program, you almost certainly aren’t.  The only time when this option might be safe to use is if the /etc/mtab file is incorrect, and the device really isn’t mounted.

Einen Kommentar schreiben