
usb无法安全弹出

Windows gets so mad when you don’t safely eject USB media, but does it really matter? What’s the worst that could happen if you never safely ejected your USB drive and other flash-based media?
当您无法安全弹出USB介质时,Windows会发疯,但这真的重要吗? 如果您从不安全弹出USB驱动器和其他基于闪存的媒体,会发生什么最糟糕的情况?
Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.
今天的“问答”环节由SuperUser提供,它是Stack Exchange的一个分支,该社区是由社区驱动的Q&A网站分组。
问题 (The Question)
SuperUser reader Simon is really curious what fate might befall him if he never safely ejects his media:
超级用户读者Simon真的很好奇,如果他从不安全地退出媒体,他将面临怎样的命运:
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”.
我经常在匆忙时自动从台式机或笔记本电脑的外部硬盘驱动器中拔出USB随身碟或USB电缆,而无需右键单击系统托盘中的安全删除图标并通过这种方式拔出。 到目前为止,每次我“匆匆忙忙”时,都没有发生任何不幸的事情。
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 ?
右键单击安全删除图标背后的理由是什么,如果不执行该操作,我真的会丢失USB介质上的信息吗?
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) ?
如果USB介质在从计算机中拉出时仍在闪烁(而不是不闪烁),丢失此类信息的[概率]是否大大提高了?
How much of a gamble is Simon taking?
西蒙要赌多少钱?
答案 (The Answer)
SuperUser contributor Dave Rook explains:
超级用户贡献者Dave Rook解释:
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.
插入USB驱动器后,您便可以自由控制PC来读写数据。 其中一些已缓存。
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.
通过不立即将信息写入USB设备,而是将其保留在PC的内存(RAM)中来进行缓存。 如果要在写入此信息之前或在写入此信息时将USB驱动器从PC中拉出,最终将导致文件损坏。
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.
但是,Windows会自动禁用USB设备上的缓存,除非您明确地说要启用它。 在大多数情况下,如果您未从设备中写入或读取任何内容,则无需单击“安全删除硬件”按钮。
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.
这样做会导致文件“正常”关闭,并保留数据,指针和文件大小指示符。 写入磁盘时,计算机并不总是“刷新”缓冲区,并且可能只写入了部分数据。 使用正确的过程将确保数据和指针的状态良好。
MSalters offers a sobering insight:
MSalters提供了一个清醒的见解:
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.
第二个原因是,写入命令后,闪存驱动器需要在约0.25秒的时间内保持稳定的电源。 这是一个基本的物理问题,由于随机因素的影响,某些写入操作可能会在逻辑0.72的状态下保留逻辑1位。 修复很容易:只需重写一下,甚至几次。 最终它会粘住。
If you’re really unlucky, the bit falling over will be in a filesystem table and corrupt e.g. an entire directory.
如果您真的不走运,那么丢失的位将在文件系统表中并损坏,例如整个目录。
In other words, it’s not worth gambling with which bit might or might not be corrupted: it might be a temporary file in a portable application’s cache or it might be, as MSalters points out, a critical system file.
换句话说,不值得讨论哪个位可能被损坏或未被损坏:它可能是便携式应用程序缓存中的一个临时文件,或者如MSalters所指出的那样,可能是一个关键的系统文件。
For more information about safe media ejection, check out: HTG Explains: Do You Really Need to Safely Remove USB Sticks?
有关安全弹出媒体的更多信息,请查看: HTG解释:您真的需要安全删除USB记忆棒吗?
Have something to add to the explanation? Sound off in the the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.
有什么补充说明吗? 在评论中听起来不对。 是否想从其他精通Stack Exchange的用户那里获得更多答案? 在此处查看完整的讨论线程 。
翻译自: https://www.howtogeek.com/172931/why-exactly-do-you-need-to-safely-eject-usb-media/
usb无法安全弹出