删除驱动精灵睡眠界面_在计算机睡眠时可以安全删除USB驱动器吗?
删除驱动精灵睡眠界面
We have all heard the admonition about safely removing USB devices when we are done with them, but what if an operating system is suspended and you decide to simply unplug the USB device then and there anyway? Today’s SuperUser Q&A post has the answer to a curious reader’s question.
我们都听过有关在完成USB设备安全移除后的警告,但是如果操作系统被挂起并且您决定简单地拔掉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 IQAndreas wants to know if it is safe to remove USB media when a computer is suspended:
超级用户阅读器IQAndreas想知道在计算机挂起时删除USB介质是否安全:
We are often cautioned against unplugging USB drives in case they are currently being read from or written to. When a computer is suspended, hibernated, or asleep, it is obviously not writing any data. It may have been in the middle of a read or write operation, however, and it will have put such an operation on hold.
经常提醒我们不要拔下USB驱动器,以防它们当前正在被读取或写入。 当计算机处于挂起,Hibernate或睡眠状态时,显然不会写入任何数据。 但是,它可能处于读取或写入操作的中间,因此它将暂停此操作。
Since no arms are moving (for USB hard drives), or bytes on the drive flickering on and off (for flash drives), is it then “safe” to unplug the drive in question?
由于没有机械臂移动(对于USB硬盘驱动器),或者驱动器上的字节不停地闪烁(对于闪存驱动器),那么拔下有问题的驱动器是否“安全”?
Is this true even if data was being written to it, but the operation was temporarily suspended? (Assuming you do not mind that specific file having been only half-written to the USB drive.)
即使正在向其写入数据但操作被暂时中止,这是否成立? (假设您不介意仅将特定文件写入USB驱动器的一半。)
Is it safe to remove USB media when a computer is suspended?
挂起计算机时,删除USB介质是否安全?
答案 (The Answer)
SuperUser contributor kinokijuf has the answer for us:
超级用户贡献者kinokijuf为我们提供了答案:
While there are indeed no transfers going on, the reason you do the Safely Remove Hardware dance is not because of the transfers. You are doing this to cleanly unmount the file system. Programs may still be using the USB drive and some files may still be unwritten to the disk, even after the application using them is closed. This is the same reason why you do not just hibernate and switch operating systems. A mounted file system is never guaranteed to be in a consistent state.
尽管确实没有进行任何传输,但是执行“安全删除硬件”之类的原因并不是由于传输。 您这样做是为了彻底卸载文件系统。 程序可能仍在使用USB驱动器,并且即使关闭了使用它们的应用程序,某些文件仍可能未被写入磁盘。 这就是为什么您不只是Hibernate和切换操作系统的相同原因。 永远不能保证已安装的文件系统处于一致状态。
Ever wondered why an operating system slowed down to a crawl when using floppies? It is because the cache was flushed after writing each sector so that the floppy could be removed at any time when not in use.
有没有想过为什么使用软盘时操作系统会慢下来? 这是因为在写入每个扇区后刷新了缓存,以便在不使用软盘时可以随时将其删除。
You will still get a dialog pop-up and your program will hang if you try to access a floppy that was removed behind your back. Just insert the floppy back and be done. This will not work with USB drives because they get a different identifier each time. The program will just crash and the operating system may too if a driver was accessing a file.
如果尝试访问从背后卸下的软盘,仍然会弹出对话框,并且程序将挂起。 只需将软盘插入并完成即可。 这不适用于USB驱动器,因为它们每次都会获得不同的标识符。 如果驱动程序正在访问文件,该程序将仅崩溃,并且操作系统也可能崩溃。
Have something to add to the explanation? Sound off in the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.
有什么补充说明吗? 在评论中听起来不错。 是否想从其他精通Stack Exchange的用户那里获得更多答案? 在此处查看完整的讨论线程 。
Image Credit: Ambuj Saxena (Flickr)
图片来源: Ambuj Saxena(Flickr)
翻译自: https://www.howtogeek.com/286185/is-it-safe-to-remove-usb-drives-when-a-computer-is-suspended/
删除驱动精灵睡眠界面