简体   繁体   English

热插拔设备和可移动设备有什么区别?

[英]what is the difference between hot pluggable device and removable device?

I have read that USB HDD are hot-pluggable but not removable whereas USB Flash drives are both removable and hot-pluggable.Internally, the windows DEVICE_OBJECT structure has Characteristics flag that can have a value FILE_REMOVABLE_MEDIA for removable media (not the removable device). 我已经读到USB HDD是可热插拔但不可移动的,而USB闪存驱动器既可移动也可热插拔的。在内部,Windows DEVICE_OBJECT结构具有特征标志,该标志的可移动媒体(不是可移动设备)的值可以为FILE_REMOVABLE_MEDIA。 Also, STORAGE_HOTPLUG_INFO structure has Devicehotplug boolean member that says device is hot pluggable or not. 此外,STORAGE_HOTPLUG_INFO结构具有Devicehotplug布尔成员,该成员表示设备是否可热插拔。 Can you please justify your answer with a little details? 能否请您详细说明一下答案?

David Zeuthen explains it best : David Zeuthen 最好地解释了这一点

[...] "removable" means that the media of the device is removable. …“可移动”是指设备的介质是可移动的。 For example, CD-ROM drives or Nin1 card readers for flash media. 例如,用于闪存介质的CD-ROM驱动器或Nin1读卡器。 [...] ATA disks connected via eSATA aren't removable, you can't remove the platters. 不能通过eSATA连接的ATA磁盘,也不能删除磁盘。

Yet of course, you can intuitively understand that even non-removable devices can be hotpluggable (ie you can plug and unplug the entire device as a whole, as opposed to inserting/removing the media it contains). 当然,您当然可以直观地理解,即使是不可移动的设备也可以热插拔(即,您可以将整个设备作为一个整体进行插拔,而不是插入/移动其中包含的媒体)。

Now, all (modern) buses in use in current systems are hotpluggable - most new systems allow you to add/remove SATA disks while the system is running. 现在,当前系统中使用的所有(现代)总线均可热插拔-大多数新系统允许您在系统运行时添加/删除SATA磁盘。

Indeed you shouldn't have to care much about whether something is hotpluggable or not anymore: virtually all storage devices are. 确实,您不必在乎某个东西是否可以热插拔:实际上,所有存储设备都可以。 (In the past, you had to shutdown the machine to manipulate the storage devices). (过去,您必须关闭计算机才能操作存储设备)。

So, it should follow that external USB drives (either HDDs or flash sticks) for example should be non-removable and hopefully always hotpluggable. 因此,应该遵循这样的原则,例如,外部USB驱动器(HDD或闪存棒)应不可拆卸,并希望始终可热插拔。

Unfortunately: 不幸:

Of course, hardware sucks so virtually all USB keyfobs reports "removable==1" probably because the maker of the device wanted to be "helpful" and make things work better on windows. 当然,硬件很糟糕,因此几乎所有USB密钥卡都报告“ removable == 1”,这可能是因为设备制造商希望“帮助”并使Windows更好地工作。

I have no sources regarding the real reasons, but it turns out that many USB drives report themselves as removable too. 我没有真正原因的消息来源,但事实证明,许多USB驱动器也报告自己可移动。 David's suggestion that it might be because of certain operating systems which didn't use to support hotplugging but did support removable devices (CD-ROMs, etc) sounds reasonable: the manufacturers reused the same technique to trick the OS into letting the user "eject" USB drives. David的建议可能是某些操作系统不支持热插拔,但确实支持可移动设备(CD-ROM等),这听起来很合理:制造商重复使用了相同的技术来欺骗OS,让用户“退出”。 “ USB驱动器。

Nowadays I would guess all modern operating systems make the distinction clear, and this has many advantages from a management standpoint (eg you might have a hotpluggable DVD drive with removable DVDs and you would thus need to be more clear about which you want to interact with). 如今,我猜想所有现代操作系统都可以清楚地区分这一点,从管理的角度来看,这具有许多优势(例如,您可能拥有带有可移动DVD的可热插拔DVD驱动器,因此需要更清楚地了解与之交互的对象)。 )。 Still, older drives and old habits die hard, so you'll still find some "removable" USB drives even if they're really not. 不过,旧的驱动器和旧的习惯会死得很惨,因此,即使实际上不是,您仍然会发现一些“可移动”的USB驱动器。

Note: The bug report linked is about udisks which is more often found in the free software world. 注意:链接的错误报告是关于udisk的,它在自由软件世界中更为常见。 But again, I'm sure all systems make the distinction now even if the terminology is not exactly the same. 但是,我再次保证,即使术语并不完全相同,现在所有系统都可以区分。 Also note that the terminology is really rather arbitrary, though whichever terms you use for these two concepts best be well understood. 还要注意,尽管您对这两个概念使用的任何术语都最好理解,但该术语实际上是相当随意的。

A simple Google search could have answered your question... 一个简单的Google搜索可以回答您的问题...

  • Hot plugging is the ability to replace or install a device without shutting down the attached computer. 热插拔是在不关闭所连接计算机的情况下更换或安装设备的能力。 Hot plugging is implemented when a peripheral device is added or removed; 热插拔是在添加或卸下外围设备时实现的; a device or working system requires reconfiguration; 设备或操作系统需要重新配置; a defective component requires replacement or a device and computer require data synchronization. 有缺陷的组件需要更换,或者设备和计算机需要数据同步。 Also known as hot swapping. 也称为热插拔。 Hot swapping allows easy accessibility to equipment and the convenience of uninterrupted systems. 热插拔可轻松访问设备,并方便使用不间断的系统。
  • Removable media are data storage devices capable of computer system removal without powering off the system. 可移动介质是能够在不关闭系统电源的情况下删除计算机系统的数据存储设备。 Removable media devices are used for backup, storage or transportation of data. 可移动媒体设备用于备份,存储或传输数据。

source: techopedia dot com 资料来源:techopedia dot com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM