Friday, July 20, 2007

Navy Senior Chief Retirement Cake

Linux / Unix is \u200b\u200bidiot proof - Linux / Unix is \u200b\u200bfoolproof

SPANISH VERSION: please download

------------------------------------- ---------------------------------

scsiformat is a Utility for low level formatting partitions. As we all know, Means formatting your data is gone and low level formatting is gone it Means weitere events. But this utility is clever, let's see What Happens When You try to format a partition: # scsiformat

/dev/sda1
About to format SCSI disk /dev/sda on host 2 chan 0 id 0 lu
Short INQUIRY answer :-(i
Partitions:
8: 0 sda 262 MiB
8: 1 sda1 261 MiB

Formatting 262 MiB can take very long. Estimate: 1 min

Warning! About to lowlevel format / partition /dev/sda!

This will erase all data on /dev/sda, on any partition, be
To ensure that you are really awake and as a confirmation,
the solution for this simple multiplication:

21 * 14 = 444

Wrong. You lost, but your data won.




As you can see, the utility asks for a simple question, a multiplication. If you do not answer correctly the partition is not formatted. You lose your data but wins.

But we all know as well that almost every single Linux / Unix program includes a way to force the execution, normally it is either-f or-F. Let's see what the manual says about:


-F arg
forced operation, do not ask prior to format. arg must be 'Ene Mene Meck, and you're gone! " with proper spaces and capitalization. (This is a German child rhyme kissing someone goodbye ...


Of course you can force the execution of the command! You only need the option-F with an extra argument, the German sentence 'Ene Mene Meck, and You're gone! ". You can format your partition but will scsiformat Ensure that You Knew What You Were doing!

------------------------------------------------ -------------------------------------------------- --------------------------------

SPANISH:

scsiformat is a utility to format SCSI low-level partitions. As we all know, format means losing the data and there were low-level format means that are will be lost altogether. But this utlidad is smart, look what happens when we format a partition:

# scsiformat / dev/sda1
About to format SCSI disk / dev / sda on host 2 chan 0 id 0 lu
Short answer :-( i
INQUIRY Partitions:
8: 262 MiB
0 sda 8: 1 sda1 261 MiB

262 MiB Formatting dog take very long. Estimate: 1 min

Warning! About to lowlevel format / partition / dev / sda! This

will erase all data on / dev / sda, On Any partition, be
To Ensure That You Are really awake and as a confirmation,
the solution for this simple multiplication:

21 * 14 = 444

Wrong. You lost, But your data won.




As we can see, the utility asks for the answer to a multiplication, if we do not respond correctly partition is not formatted. The error message is funny: You lost, your data won.

But we all know that virtually all utility Linux / Unix include a form to force their execution, usually with the-f or-F. Let's look at the manual says about it:


-F arg
Forced operation, do not ask prior to format. arg Must Be 'Ene Mene Meck, und Du bist weg! " Proper with spaces and capitalization. (This is a German child rhyme kissing someone goodbye ...


Of course you can force the execution of the command, just a matter of using the option-F together with a well sencillito extra parameter, the German phrase 'Ene Mene Meck, und Du bist weg! '. The partition will be formatted, but scsiformat sure you knew I was doing!