当电脑处于睡眠状态时,卸下usb驱动器是否安全?

我们都听到过这样的警告:当我们使用完USB设备后,要安全地将其卸下,但如果操作系统被挂起,而您决定只需在当时或那里拔下USB设备,那该怎么办?今天的超级用户问答帖子回答了一位好奇的读者的问题。...

当电脑处于睡眠状态时,卸下u**驱动器是否安全?

我们都听到过这样的警告:当我们使用完USB设备后,要安全地将其卸下,但如果操作系统被挂起,而您决定只需在当时或那里拔下USB设备,那该怎么办?今天的超级用户问答帖子回答了一位好奇的读者的问题。

今天的问答环节是由SuperUser提供的,SuperUser是Stack Exchange的一个分支,是一个由社区驱动的问答网站分组。

问题

超级用户读者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.

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?

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介质安全吗?

答案

超级用户贡献者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 c***istent state.

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.


有什么要补充的解释吗?在评论中发出声音。想从其他精通技术的Stack Exchange用户那里了解更多答案吗?在这里查看完整的讨论主题。

图片来源:Ambuj Saxena(Flickr)

  • 发表于 2021-04-08 13:29
  • 阅读 ( 197 )
  • 分类:互联网

你可能感兴趣的文章

usb端口不工作?如何诊断和解决问题

...检测到,则设备有故障。(注意,如果无法重新格式化USB驱动器,则需要更换。) ...

  • 发布于 2021-03-11 11:20
  • 阅读 ( 333 )

你应该删除hiberfil.sys公司windows 10中的文件?

... 如果您不确定所有工作是否正常,可以通过在C:驱动器的根目录下查找来验证休眠文件是否已消失。C类:\hiberfil.sys公司是它的位置。 ...

  • 发布于 2021-03-12 07:27
  • 阅读 ( 264 )

锁定windows pc的6种最佳方法

... 对于一个完全不同的采取,你也可以锁定窗口与USB闪存驱动器。像Predator这样的软件可以免费处理所有的工作。只要指定一个USB驱动器作为解锁机器的钥匙,没有它电脑就不能工作。 ...

  • 发布于 2021-03-15 06:46
  • 阅读 ( 195 )

如何修复windows 10睡眠模式问题

让你的电脑进入睡眠状态是一个很好的节能方法,同时确保你可以恢复而不浪费电力。但是,如果你的电脑一直在唤醒或自动进入睡眠状态,你能做些什么呢?有这么多因素在起作用,这可能是一个很难诊断的问题。 ...

  • 发布于 2021-03-18 05:10
  • 阅读 ( 375 )

windows 10无法启动?12个补丁让你的电脑重新运行

... 方法2:使用Windows10恢复驱动器的安全模式 ...

  • 发布于 2021-03-24 07:33
  • 阅读 ( 295 )

如何在windows10上不再“安全地移除”usb驱动器

...和一些时间与这些简单的提示,因为你再也不用弹出闪存驱动器。 在拔掉电源插头之前,务必确保驱动器未被使用 一般来说,移除USB驱动器(如拇指、硬盘等)时对数据的最大威胁是在数据写入时拔掉它的插头。这会中断写...

  • 发布于 2021-04-01 18:49
  • 阅读 ( 150 )

如果我的电脑处于睡眠模式,windows 10会更新吗?

...唤醒计时器,这样就不会有任何东西唤醒您的电脑,甚至驱动器扫描或防病毒扫描。如前所述,此设置位于控制面板中列出的电源计划中。 首先,在任务栏的搜索栏中键入“controlpanel”,然后选择生成的controlpanel桌面应用程序...

  • 发布于 2021-04-03 00:00
  • 阅读 ( 339 )

如何在windows10上优化usb存储以获得更好的性能

...于通过USB或Thunderbolt连接的外部存储设备,无论是USB拇指驱动器还是外部硬盘驱动器,Windows都有不同的“策略”。每个存储设备都有自己的特定策略设置,因此您可以为不同的设备选择不同的策略。 默认情况下,Windows10现在使...

  • 发布于 2021-04-03 17:07
  • 阅读 ( 162 )

htg解释道:windows中的高级电源设置是什么?

...恢复正常需要一段时间。 这个选项只影响内部物理硬盘驱动器,你知道,机械与旋转磁碟机,而不是现代固态驱动器(SSD)。因此,根据您的电脑,此设置可能根本不起任何作用。 Internet Explorer>JavaScript计时器频率:如果...

  • 发布于 2021-04-04 06:34
  • 阅读 ( 203 )

什么是热插拔和冷插拔设备?

...d-swappable)。这就是它的含义。 相关:如何“清洁”闪存驱动器、SD卡或内部驱动器以修复分区和容量问题 最基本的,热插拔意味着你可以在不关闭电脑的情况下**或移除设备。USB驱动器可能是首先想到的,是的,它们是热交换...

  • 发布于 2021-04-06 08:30
  • 阅读 ( 261 )
yseoszcrodof
yseoszcrodof

0 篇文章

相关推荐