Por que, exatamente, você precisa ejetar com segurança a mídia USB?

Índice:

Por que, exatamente, você precisa ejetar com segurança a mídia USB?
Por que, exatamente, você precisa ejetar com segurança a mídia USB?

Vídeo: Por que, exatamente, você precisa ejetar com segurança a mídia USB?

Vídeo: Por que, exatamente, você precisa ejetar com segurança a mídia USB?
Vídeo: Outlook 2010 Create a Send/Receive Group - YouTube 2024, Abril
Anonim
O Windows fica tão irritado quando você não ejeta com segurança a mídia USB, mas isso realmente importa? Qual é o pior que poderia acontecer se você nunca ejetasse com segurança sua unidade USB e outras mídias baseadas em flash?
O Windows fica tão irritado quando você não ejeta com segurança a mídia USB, mas isso realmente importa? Qual é o pior que poderia acontecer se você nunca ejetasse com segurança sua unidade USB e outras mídias baseadas em flash?

A sessão de perguntas e respostas de hoje nos é oferecida por cortesia da SuperUser - uma subdivisão do Stack Exchange, um agrupamento de sites de perguntas e respostas conduzido pela comunidade.

A questão

Leitor de superusuário Simon está realmente curioso sobre o destino que pode acontecer se ele nunca expulsa sua mídia com segurança:

Quite often when I’m in a rush, I automatically pull out a USB pendrive or USB cable from an external hard drive from my desktop PC or laptop, without right-clicking on the safely remove icon in the system tray and unplugging via this route. So far nothing untoward has happened every time I have “been in a rush”.

What is the rationale behind right clicking on the safely remove icon and can I really lose information on USB media if this is not carried out ?

Is the [probability] of losing such information greatly increased, if the USB media is still flashing at the time of pulling it out of the computer (as opposed to non-flashing) ?

Quanto de uma aposta é Simon tomando?

A resposta

O colaborador do SuperUser Dave Rook explica:

Yes it can, it’s about what happens if you remove the device when it’s in use (reading or writing):

When you plug in a USB drive, you give your PC free rein to write and read data from it; some of which is cached.

Caching occurs by not writing information immediately to the USB device, and instead keeping it in your PC’s memory (RAM). If you were to yank the USB drive out of your PC before this information is written, or while its being written, you’ll end up with a corrupted file.

However, Windows automatically disables caching on USB devices, unless you specifically say that you want it enabled. For the most part you don’t have to click the ‘Safely Remove Hardware’ button, if you aren’t writing or reading anything from the device.

Its there simply as an extra level of security preventing you from destroying your own files.

Doing so causes the files to close “gracefully”, preserving data, pointers and file size indicators. When writing to disk the computer doesn’t always “flush” a buffer and only part of the data may have been written. Using the proper procedure will assure that the data and pointers are in good shape.

Source

MSalters oferece uma visão sóbria:

A second reason is that flash drives need to have stable power for ~0.25 seconds after a write command. This is a fundamental physical problem, due random factors some writes may leave a logical 1 bit in a electrical 0.72 state. The fix is easy: just rewrite the bit, perhaps even a few times. Eventually it will stick.

If you’re really unlucky, the bit falling over will be in a filesystem table and corrupt e.g. an entire directory.

Em outras palavras, não vale a pena apostar com qual bit pode ou não estar corrompido: pode ser um arquivo temporário no cache de um aplicativo portátil ou pode ser, como aponta MSalters, um arquivo de sistema crítico.

Para obter mais informações sobre ejeção de mídia segura, verifique: HTG explica: Você realmente precisa remover com segurança os dispositivos USB?

Tem algo a acrescentar à explicação? Soe fora nos comentários. Quer ler mais respostas de outros usuários do Stack Exchange com experiência em tecnologia? Confira o tópico de discussão completo aqui.

Recomendado: